rockchip: px30: add uart5 as option for serial output
authorHeiko Stuebner <[email protected]>
Mon, 5 Aug 2019 07:45:09 +0000 (09:45 +0200)
committerHeiko Stuebner <[email protected]>
Mon, 5 Aug 2019 07:45:09 +0000 (09:45 +0200)
The px30 mini-evb can use either uart2 (muxed with the sd-card pins) or
uart5 via its pin header for serial output. Uart5 is especially useful
when needing to boot from the sd-card, where uart2 obviously is not
useable.

So add the uart5 constants and it as uart option for the serial-param
handler.

Signed-off-by: Heiko Stuebner <[email protected]>
Change-Id: Ib88df7a55d761ee104d312c9953a13de3beba1c4

plat/rockchip/common/params_setup.c
plat/rockchip/px30/px30_def.h

index d0fea4ffa6500dd91d3a69bf539a5fa62fb02e99..708dc48b2b7135f482dff2f5f0559e6fe2d16745 100644 (file)
@@ -95,6 +95,11 @@ static void plat_rockchip_dt_process_fdt_uart(void *fdt)
        case 4:
                uart_base = UART4_BASE;
                break;
+#endif
+#ifdef UART5_BASE
+       case 5:
+               uart_base = UART5_BASE;
+               break;
 #endif
        default:
                return;
index 021165a4a3cb5954063c296d61a803eaac2b58e3..9b8ccfca63cef3cd7af51dcb68ecdd801ab2ef08 100644 (file)
@@ -54,6 +54,9 @@
 #define UART2_BASE             0xff160000
 #define UART2_SIZE             SIZE_K(64)
 
+#define UART5_BASE             0xff178000
+#define UART5_SIZE             SIZE_K(64)
+
 #define I2C0_BASE              0xff180000
 #define I2C0_SIZE              SIZE_K(64)