summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorAlison Wang <b18965@freescale.com>2015-01-04 15:30:59 +0800
committerYork Sun <yorksun@freescale.com>2015-01-23 22:29:15 -0600
commit55d53ab45e3be3442c7b8555ff059df1d28f2838 (patch)
tree9f94e778d5f320bfb9ccf94d7b1b5c91cbd66ab6 /include/configs
parent8fc2121a10e92bfd7cb1db50fb110d3ca9acfbda (diff)
downloadu-boot-imx-55d53ab45e3be3442c7b8555ff059df1d28f2838.zip
u-boot-imx-55d53ab45e3be3442c7b8555ff059df1d28f2838.tar.gz
u-boot-imx-55d53ab45e3be3442c7b8555ff059df1d28f2838.tar.bz2
arm: ls102xa: Add LPUART support for LS1021ATWR board
This patch adds LPUART support for LS1021ATWR board. For ls1021atwr_nor_lpuart_defconfig, LPUART is used as the console. Signed-off-by: Alison Wang <alison.wang@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/ls1021atwr.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h
index 66954d0..0a0bb5f 100644
--- a/include/configs/ls1021atwr.h
+++ b/include/configs/ls1021atwr.h
@@ -186,11 +186,16 @@
/*
* Serial Port
*/
+#ifdef CONFIG_LPUART
+#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_SIZE 1
#define CONFIG_SYS_NS16550_CLK get_serial_clock()
+#endif
#define CONFIG_BAUDRATE 115200
@@ -325,10 +330,17 @@
#define CONFIG_BOOTDELAY 3
+#ifdef CONFIG_LPUART
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "bootargs=root=/dev/ram0 rw console=ttyLP0,115200\0" \
+ "initrd_high=0xcfffffff\0" \
+ "fdt_high=0xcfffffff\0"
+#else
#define CONFIG_EXTRA_ENV_SETTINGS \
"bootargs=root=/dev/ram0 rw console=ttyS0,115200\0" \
"initrd_high=0xcfffffff\0" \
"fdt_high=0xcfffffff\0"
+#endif
/*
* Miscellaneous configurable options