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
1 parent 5f441a7 commit 30970e0f2979e297831f8ea27466aa3e67992ce4
@Heiko Stuebner Heiko Stuebner authored on 5 Aug 2019
Showing 4 changed files
View
plat/rockchip/common/bl31_plat_setup.c
View
plat/rockchip/common/include/plat_private.h
View
plat/rockchip/common/params_setup.c
View
plat/rockchip/common/sp_min_plat_setup.c