diff options
author | Christoph Muellner <christoph.muellner@theobroma-systems.com> | 2019-05-07 10:58:43 +0200 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2019-05-30 18:22:35 +0800 |
commit | 78a1ac33cb9621f3fde31fa747a4b03ae0772d7f (patch) | |
tree | f57e02070c66c916a2cd9b5e9fc61ef6df6c83f3 /arch | |
parent | dee5ad5ae70310b0476288900f902be7fdc70fe3 (diff) | |
download | u-boot-78a1ac33cb9621f3fde31fa747a4b03ae0772d7f.zip u-boot-78a1ac33cb9621f3fde31fa747a4b03ae0772d7f.tar.gz u-boot-78a1ac33cb9621f3fde31fa747a4b03ae0772d7f.tar.bz2 |
rockchip: rk3399: Add option to print on UART3.
The RK3399 SPL does not use a pinctrl driver to setup the UART pins.
Instead it works based on config macros, which set the base address
of the actual UART block.
Currently the RK3399 SPL support UART0 and UART2.
This patch adds UART3 in the same way as UART0.
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-rockchip/rk3399/rk3399.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3399/rk3399.c index a7ccd4f..e1f9f8b 100644 --- a/arch/arm/mach-rockchip/rk3399/rk3399.c +++ b/arch/arm/mach-rockchip/rk3399/rk3399.c @@ -80,6 +80,14 @@ void board_debug_uart_init(void) rk_clrsetreg(&grf->gpio2c_iomux, GRF_GPIO2C1_SEL_MASK, GRF_UART0BT_SOUT << GRF_GPIO2C1_SEL_SHIFT); +#elif defined(CONFIG_DEBUG_UART_BASE) && (CONFIG_DEBUG_UART_BASE == 0xff1B0000) + /* Enable early UART3 on the RK3399 */ + rk_clrsetreg(&grf->gpio3b_iomux, + GRF_GPIO3B6_SEL_MASK, + GRF_UART3_SIN << GRF_GPIO3B6_SEL_SHIFT); + rk_clrsetreg(&grf->gpio3b_iomux, + GRF_GPIO3B7_SEL_MASK, + GRF_UART3_SOUT << GRF_GPIO3B7_SEL_SHIFT); #else # ifdef CONFIG_TARGET_CHROMEBOOK_BOB rk_setreg(&grf->io_vsel, 1 << 0); |