Commit 55d53ab45e3be3442c7b8555ff059df1d28f2838

Authored by Alison Wang
Committed by York Sun
1 parent 8fc2121a10

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
... ... @@ -5,6 +5,7 @@
5 5 F: include/configs/ls1021atwr.h
6 6 F: configs/ls1021atwr_nor_defconfig
7 7 F: configs/ls1021atwr_nor_SECURE_BOOT_defconfig
  8 +F: configs/ls1021atwr_nor_lpuart_defconfig
8 9 F: configs/ls1021atwr_sdcard_defconfig
9 10 F: configs/ls1021atwr_qspi_defconfig
configs/ls1021atwr_nor_lpuart_defconfig
  1 +CONFIG_SYS_EXTRA_OPTIONS="LPUART"
  2 ++S:CONFIG_ARM=y
  3 ++S:CONFIG_TARGET_LS1021ATWR=y
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