diff options
author | Heiko Stuebner <heiko@sntech.de> | 2019-08-05 14:46:00 +0200 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2019-08-05 17:52:06 +0200 |
commit | 30970e0f2979e297831f8ea27466aa3e67992ce4 (patch) | |
tree | 9888dcd14e15205c239aa972120aa35ee64df374 /plat/rockchip/common/bl31_plat_setup.c | |
parent | 5f441a7b3db705cd1dd546f6e623586801da6c07 (diff) | |
download | trusted-firmware-a-30970e0f2979e297831f8ea27466aa3e67992ce4.tar.gz |
rockchip: make uart baudrate configurable
A previous patch already allowed to configure the uart output from the
devicetree, but on Rockchip platforms we also have the issue of different
vendors using different baudrates for their uarts.
For example, rk3399 has a default baudrate of 115200 which is true for
ChromeOS-devices and boards from Theobroma-Systems, while all the boards
using the vendor boot chain actually use a baudrate of 1500000.
Similarly the newly added px30 has a default of said 1500000 but some
boards may want to use the more widely used 115200.
The devicetree stdout-path node already contains the desired baudrate,
so add simple code to parse it from there and override the default,
which stays unchanged.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Change-Id: I7412139c3df3073a1996eb508ec08642ec6af90d
Diffstat (limited to 'plat/rockchip/common/bl31_plat_setup.c')
-rw-r--r-- | plat/rockchip/common/bl31_plat_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/rockchip/common/bl31_plat_setup.c b/plat/rockchip/common/bl31_plat_setup.c index a13ee495a2..b04c08a4f9 100644 --- a/plat/rockchip/common/bl31_plat_setup.c +++ b/plat/rockchip/common/bl31_plat_setup.c @@ -70,7 +70,7 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, &console); #else console_16550_register(rockchip_get_uart_base(), PLAT_RK_UART_CLOCK, - PLAT_RK_UART_BAUDRATE, &console); + rockchip_get_uart_baudrate(), &console); #endif VERBOSE("bl31_setup\n"); |