diff options
author | Shaohui Xie <Shaohui.Xie@freescale.com> | 2016-01-21 17:14:53 +0800 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-01-27 08:13:12 -0800 |
commit | 8c35cc3b7e2ff1d9bf44af5805e8ef5c4536ce81 (patch) | |
tree | 66f29b6b373184ce15a9eb206c4517824613f08f /board | |
parent | e978a31b631ac40d786f80b4254c323dcc4e1a82 (diff) | |
download | u-boot-imx-8c35cc3b7e2ff1d9bf44af5805e8ef5c4536ce81.zip u-boot-imx-8c35cc3b7e2ff1d9bf44af5805e8ef5c4536ce81.tar.gz u-boot-imx-8c35cc3b7e2ff1d9bf44af5805e8ef5c4536ce81.tar.bz2 |
armv8/ls1043aqds: Select lpuart pins of various muxes
Set Board Configuration Register to select the lpuart pins of various
muxes.
Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: Mingkai Hu <Mingkai.Hu@freescale.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/ls1043aqds/ls1043aqds.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/board/freescale/ls1043aqds/ls1043aqds.c b/board/freescale/ls1043aqds/ls1043aqds.c index 576fa46..bb14447 100644 --- a/board/freescale/ls1043aqds/ls1043aqds.c +++ b/board/freescale/ls1043aqds/ls1043aqds.c @@ -40,6 +40,9 @@ enum { #define CFG_SD_MUX3_MUX4 0x1 /* MUX4 */ #define CFG_SD_MUX4_SLOT3 0x0 /* SLOT3 TX/RX1 */ #define CFG_SD_MUX4_SLOT1 0x1 /* SLOT1 TX/RX3 */ +#define CFG_UART_MUX_MASK 0x6 +#define CFG_UART_MUX_SHIFT 1 +#define CFG_LPUART_EN 0x1 int checkboard(void) { @@ -218,7 +221,17 @@ void board_retimer_init(void) int board_early_init_f(void) { +#ifdef CONFIG_LPUART + u8 uart; +#endif fsl_lsch2_early_init_f(); +#ifdef CONFIG_LPUART + /* We use lpuart0 as system console */ + uart = QIXIS_READ(brdcfg[14]); + uart &= ~CFG_UART_MUX_MASK; + uart |= CFG_LPUART_EN << CFG_UART_MUX_SHIFT; + QIXIS_WRITE(brdcfg[14], uart); +#endif return 0; } |