Re: [U-Boot] [PATCH v4 15/18] arm: ls102xa: Add LETECH support for LS1021AQDS/TWR board

2014-08-16 Thread AlisonWang
 From: Wang Huan [hidden email] 
 
 This patch is to add LETECH support for LS1021AQDS/TWR board. 
 For LETECH, lpuart is used as console. 
 

I suggest you update README to add some information about this LETECH. I
have no 
idea what it is until I dig into some internal documents.

[Alison Wang] Ok, I will add. Thanks.

Alison 



--
View this message in context: 
http://u-boot.10912.n7.nabble.com/PATCH-v4-0-18-arm-ls102xa-Add-Freescale-LS102xA-SoC-and-LS1021AQDS-TWR-board-support-tp186703p186811.html
Sent from the U-Boot mailing list archive at Nabble.com.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v4 15/18] arm: ls102xa: Add LETECH support for LS1021AQDS/TWR board

2014-08-14 Thread Alison Wang
From: Wang Huan b18...@freescale.com

This patch is to add LETECH support for LS1021AQDS/TWR board.
For LETECH, lpuart is used as console.

Signed-off-by: Jason Jin jason@freescale.com
Signed-off-by: Yuan Yao yao.y...@freescale.com
Signed-off-by: Alison Wang alison.w...@freescale.com
---
Change log:
 v4: No change.
 v3: New file.

 board/freescale/ls1021aqds/MAINTAINERS |  1 +
 board/freescale/ls1021atwr/MAINTAINERS |  1 +
 configs/ls1021aqds_letech_defconfig|  3 +++
 configs/ls1021atwr_letech_defconfig|  3 +++
 include/configs/ls1021aqds.h   | 13 +
 include/configs/ls1021atwr.h   | 12 
 6 files changed, 33 insertions(+)
 create mode 100644 configs/ls1021aqds_letech_defconfig
 create mode 100644 configs/ls1021atwr_letech_defconfig

diff --git a/board/freescale/ls1021aqds/MAINTAINERS 
b/board/freescale/ls1021aqds/MAINTAINERS
index 021d82b..590b89b 100644
--- a/board/freescale/ls1021aqds/MAINTAINERS
+++ b/board/freescale/ls1021aqds/MAINTAINERS
@@ -4,3 +4,4 @@ S:  Maintained
 F: board/freescale/ls1021aqds/
 F: include/configs/ls1021aqds.h
 F: configs/ls1021aqds_nor_defconfig
+F: configs/ls1021aqds_letech_defconfig
diff --git a/board/freescale/ls1021atwr/MAINTAINERS 
b/board/freescale/ls1021atwr/MAINTAINERS
index 4e5bc15..14a7441 100644
--- a/board/freescale/ls1021atwr/MAINTAINERS
+++ b/board/freescale/ls1021atwr/MAINTAINERS
@@ -4,3 +4,4 @@ S:  Maintained
 F: board/freescale/ls1021atwr/
 F: include/configs/ls1021atwr.h
 F: configs/ls1021atwr_nor_defconfig
+F: configs/ls1021atwr_letech_defconfig
diff --git a/configs/ls1021aqds_letech_defconfig 
b/configs/ls1021aqds_letech_defconfig
new file mode 100644
index 000..b70971e
--- /dev/null
+++ b/configs/ls1021aqds_letech_defconfig
@@ -0,0 +1,3 @@
+CONFIG_SYS_EXTRA_OPTIONS=LETECH
++S:CONFIG_ARM=y
++S:CONFIG_TARGET_LS1021AQDS=y
diff --git a/configs/ls1021atwr_letech_defconfig 
b/configs/ls1021atwr_letech_defconfig
new file mode 100644
index 000..4b187b3
--- /dev/null
+++ b/configs/ls1021atwr_letech_defconfig
@@ -0,0 +1,3 @@
+CONFIG_SYS_EXTRA_OPTIONS=LETECH
++S:CONFIG_ARM=y
++S:CONFIG_TARGET_LS1021ATWR=y
diff --git a/include/configs/ls1021aqds.h b/include/configs/ls1021aqds.h
index 856fdfc..5a8bf21 100644
--- a/include/configs/ls1021aqds.h
+++ b/include/configs/ls1021aqds.h
@@ -279,11 +279,16 @@ unsigned long get_board_ddr_clk(void);
 /*
  * Serial Port
  */
+#ifdef CONFIG_LETECH
+#define CONFIG_FSL_LPUART
+#define CONFIG_LPUART_32B_REG
+#else
 #define CONFIG_CONS_INDEX  1
 #define CONFIG_SYS_NS16550
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE1
 #define CONFIG_SYS_NS16550_CLK get_serial_clock()
+#endif
 
 #define CONFIG_BAUDRATE115200
 
@@ -367,11 +372,19 @@ unsigned long get_board_ddr_clk(void);
 
 #define CONFIG_BOOTDELAY   3
 
+#ifdef CONFIG_LETECH
+#define CONFIG_EXTRA_ENV_SETTINGS  \
+   bootargs=root=/dev/ram0 rw console=ttyLP0,115200\0 \
+   fdt_high=0xcfff\0 \
+   initrd_high=0xcfff\0  \
+   hwconfig=fsl_ddr:ctlr_intlv=null,bank_intlv=null\0
+#else
 #define CONFIG_EXTRA_ENV_SETTINGS  \
bootargs=root=/dev/ram0 rw console=ttyS0,115200\0 \
fdt_high=0xcfff\0 \
initrd_high=0xcfff\0  \
hwconfig=fsl_ddr:ctlr_intlv=null,bank_intlv=null\0
+#endif
 
 /*
  * Miscellaneous configurable options
diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h
index f8cbe32..b268a70 100644
--- a/include/configs/ls1021atwr.h
+++ b/include/configs/ls1021atwr.h
@@ -147,11 +147,16 @@ unsigned long get_board_ddr_clk(void);
 /*
  * Serial Port
  */
+#ifdef CONFIG_LETECH
+#define CONFIG_FSL_LPUART
+#define CONFIG_LPUART_32B_REG
+#else
 #define CONFIG_CONS_INDEX  1
 #define CONFIG_SYS_NS16550
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_REG_SIZE1
 #define CONFIG_SYS_NS16550_CLK get_serial_clock()
+#endif
 
 #define CONFIG_BAUDRATE115200
 
@@ -228,10 +233,17 @@ unsigned long get_board_ddr_clk(void);
 
 #define CONFIG_BOOTDELAY   3
 
+#ifdef CONFIG_LETECH
+#define CONFIG_EXTRA_ENV_SETTINGS  \
+   bootargs=root=/dev/ram0 rw console=ttyLP0,115200\0 \
+   initrd_high=0xcfff\0  \
+   fdt_high=0xcfff\0
+#else
 #define CONFIG_EXTRA_ENV_SETTINGS  \
bootargs=root=/dev/ram0 rw console=ttyS0,115200\0 \
initrd_high=0xcfff\0  \
fdt_high=0xcfff\0
+#endif
 
 /*
  * Miscellaneous configurable options
-- 
1.8.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4 15/18] arm: ls102xa: Add LETECH support for LS1021AQDS/TWR board

2014-08-14 Thread York Sun
On 08/13/2014 11:45 PM, Alison Wang wrote:
 From: Wang Huan b18...@freescale.com
 
 This patch is to add LETECH support for LS1021AQDS/TWR board.
 For LETECH, lpuart is used as console.
 
 Signed-off-by: Jason Jin jason@freescale.com
 Signed-off-by: Yuan Yao yao.y...@freescale.com
 Signed-off-by: Alison Wang alison.w...@freescale.com
 ---
 Change log:
  v4: No change.
  v3: New file.
 
  board/freescale/ls1021aqds/MAINTAINERS |  1 +
  board/freescale/ls1021atwr/MAINTAINERS |  1 +
  configs/ls1021aqds_letech_defconfig|  3 +++
  configs/ls1021atwr_letech_defconfig|  3 +++
  include/configs/ls1021aqds.h   | 13 +
  include/configs/ls1021atwr.h   | 12 
  6 files changed, 33 insertions(+)
  create mode 100644 configs/ls1021aqds_letech_defconfig
  create mode 100644 configs/ls1021atwr_letech_defconfig

I suggest you update README to add some information about this LETECH. I have no
idea what it is until I dig into some internal documents.

York

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot