arm-trusted-firmware/plat/rockchip/common
Christoph Müllner 220c33a2c5 rockchip: Allow console device to be set by DTB.
Currently the compile-time constant PLAT_RK_UART_BASE defines
which UART is used as console device. E.g. on RK3399 it is set
to UART2. That means, that a single bl31 image can not be used
for two boards, which just differ on the UART console.

This patch addresses this limitation by parsing the "stdout-path"
property from the "chosen" node in the DTB. The expected property
string is expected to have the form "serialN:XXX", with
N being either 0, 1, 2, 3 or 4. When the property is found, it will
be used to override PLAT_RK_UART_BASE.

Tested on RK3399-Q7, with a stdout-path of "serial0:115200n8".

Signed-off-by: Christoph Müllner <christophm30@gmail.com>
Change-Id: Iafe1320e77ab006c121f8d52745d54cef68a48c7
2019-05-01 17:52:53 +02:00
..
aarch32 rockchip: add common aarch32 support 2019-04-25 13:37:56 +02:00
aarch64 rockchip: move pmusram assembler code to a aarch64 subdir 2019-04-25 13:37:56 +02:00
drivers rockchip: Allow socs with undefined wfe check bits 2019-04-25 13:37:56 +02:00
include rockchip: Allow console device to be set by DTB. 2019-05-01 17:52:53 +02:00
bl31_plat_setup.c rockchip: Allow console device to be set by DTB. 2019-05-01 17:52:53 +02:00
params_setup.c rockchip: Allow console device to be set by DTB. 2019-05-01 17:52:53 +02:00
plat_pm.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
plat_topology.c rockchip: add common aarch32 support 2019-04-25 13:37:56 +02:00
rockchip_gicv2.c rockchip: Fix GICv2 interrupts 2019-01-28 14:35:50 +00:00
rockchip_gicv3.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
rockchip_sip_svc.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
sp_min_plat_setup.c rockchip: Allow console device to be set by DTB. 2019-05-01 17:52:53 +02:00