summaryrefslogtreecommitdiff
path: root/plat/rockchip
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko@sntech.de>2019-08-05 09:45:09 +0200
committerHeiko Stuebner <heiko@sntech.de>2019-08-05 09:45:09 +0200
commit5f441a7b3db705cd1dd546f6e623586801da6c07 (patch)
tree1ded35c961fe1696e72751fd7ff4e1453fa43283 /plat/rockchip
parent3ee48f40f50bd3cea6fbb824bbc5ce0a43802d78 (diff)
rockchip: px30: add uart5 as option for serial output
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 <heiko@sntech.de> Change-Id: Ib88df7a55d761ee104d312c9953a13de3beba1c4
Diffstat (limited to 'plat/rockchip')
-rw-r--r--plat/rockchip/common/params_setup.c5
-rw-r--r--plat/rockchip/px30/px30_def.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/plat/rockchip/common/params_setup.c b/plat/rockchip/common/params_setup.c
index d0fea4ff..708dc48b 100644
--- a/plat/rockchip/common/params_setup.c
+++ b/plat/rockchip/common/params_setup.c
@@ -96,6 +96,11 @@ static void plat_rockchip_dt_process_fdt_uart(void *fdt)
uart_base = UART4_BASE;
break;
#endif
+#ifdef UART5_BASE
+ case 5:
+ uart_base = UART5_BASE;
+ break;
+#endif
default:
return;
}
diff --git a/plat/rockchip/px30/px30_def.h b/plat/rockchip/px30/px30_def.h
index 021165a4..9b8ccfca 100644
--- a/plat/rockchip/px30/px30_def.h
+++ b/plat/rockchip/px30/px30_def.h
@@ -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)