Commit 55d53ab45e3be3442c7b8555ff059df1d28f2838
Committed by
York Sun
1 parent
8fc2121a10
Exists in
v2017.01-smarct4x
and in
37 other branches
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>
Showing 3 changed files with 16 additions and 0 deletions Side-by-side Diff
board/freescale/ls1021atwr/MAINTAINERS
configs/ls1021atwr_nor_lpuart_defconfig
include/configs/ls1021atwr.h
... | ... | @@ -186,11 +186,16 @@ |
186 | 186 | /* |
187 | 187 | * Serial Port |
188 | 188 | */ |
189 | +#ifdef CONFIG_LPUART | |
190 | +#define CONFIG_FSL_LPUART | |
191 | +#define CONFIG_LPUART_32B_REG | |
192 | +#else | |
189 | 193 | #define CONFIG_CONS_INDEX 1 |
190 | 194 | #define CONFIG_SYS_NS16550 |
191 | 195 | #define CONFIG_SYS_NS16550_SERIAL |
192 | 196 | #define CONFIG_SYS_NS16550_REG_SIZE 1 |
193 | 197 | #define CONFIG_SYS_NS16550_CLK get_serial_clock() |
198 | +#endif | |
194 | 199 | |
195 | 200 | #define CONFIG_BAUDRATE 115200 |
196 | 201 | |
197 | 202 | |
... | ... | @@ -325,10 +330,17 @@ |
325 | 330 | |
326 | 331 | #define CONFIG_BOOTDELAY 3 |
327 | 332 | |
333 | +#ifdef CONFIG_LPUART | |
334 | +#define CONFIG_EXTRA_ENV_SETTINGS \ | |
335 | + "bootargs=root=/dev/ram0 rw console=ttyLP0,115200\0" \ | |
336 | + "initrd_high=0xcfffffff\0" \ | |
337 | + "fdt_high=0xcfffffff\0" | |
338 | +#else | |
328 | 339 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
329 | 340 | "bootargs=root=/dev/ram0 rw console=ttyS0,115200\0" \ |
330 | 341 | "initrd_high=0xcfffffff\0" \ |
331 | 342 | "fdt_high=0xcfffffff\0" |
343 | +#endif | |
332 | 344 | |
333 | 345 | /* |
334 | 346 | * Miscellaneous configurable options |