Skip to content
Snippets Groups Projects
Commit 55d53ab4 authored by Alison Wang's avatar Alison Wang Committed by York Sun
Browse files

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: default avatarAlison Wang <alison.wang@freescale.com>
Reviewed-by: default avatarYork Sun <yorksun@freescale.com>
parent 8fc2121a
No related branches found
No related tags found
No related merge requests found
...@@ -5,5 +5,6 @@ F: board/freescale/ls1021atwr/ ...@@ -5,5 +5,6 @@ F: board/freescale/ls1021atwr/
F: include/configs/ls1021atwr.h F: include/configs/ls1021atwr.h
F: configs/ls1021atwr_nor_defconfig F: configs/ls1021atwr_nor_defconfig
F: configs/ls1021atwr_nor_SECURE_BOOT_defconfig F: configs/ls1021atwr_nor_SECURE_BOOT_defconfig
F: configs/ls1021atwr_nor_lpuart_defconfig
F: configs/ls1021atwr_sdcard_defconfig F: configs/ls1021atwr_sdcard_defconfig
F: configs/ls1021atwr_qspi_defconfig F: configs/ls1021atwr_qspi_defconfig
CONFIG_SYS_EXTRA_OPTIONS="LPUART"
+S:CONFIG_ARM=y
+S:CONFIG_TARGET_LS1021ATWR=y
...@@ -186,11 +186,16 @@ ...@@ -186,11 +186,16 @@
/* /*
* Serial Port * Serial Port
*/ */
#ifdef CONFIG_LPUART
#define CONFIG_FSL_LPUART
#define CONFIG_LPUART_32B_REG
#else
#define CONFIG_CONS_INDEX 1 #define CONFIG_CONS_INDEX 1
#define CONFIG_SYS_NS16550 #define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_SERIAL #define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE 1 #define CONFIG_SYS_NS16550_REG_SIZE 1
#define CONFIG_SYS_NS16550_CLK get_serial_clock() #define CONFIG_SYS_NS16550_CLK get_serial_clock()
#endif
#define CONFIG_BAUDRATE 115200 #define CONFIG_BAUDRATE 115200
...@@ -325,10 +330,17 @@ ...@@ -325,10 +330,17 @@
#define CONFIG_BOOTDELAY 3 #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 \ #define CONFIG_EXTRA_ENV_SETTINGS \
"bootargs=root=/dev/ram0 rw console=ttyS0,115200\0" \ "bootargs=root=/dev/ram0 rw console=ttyS0,115200\0" \
"initrd_high=0xcfffffff\0" \ "initrd_high=0xcfffffff\0" \
"fdt_high=0xcfffffff\0" "fdt_high=0xcfffffff\0"
#endif
/* /*
* Miscellaneous configurable options * Miscellaneous configurable options
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment