rockchip: make uart baudrate configurable
authorHeiko Stuebner <[email protected]>
Mon, 5 Aug 2019 12:46:00 +0000 (14:46 +0200)
committerHeiko Stuebner <[email protected]>
Mon, 5 Aug 2019 15:52:06 +0000 (17:52 +0200)
commit30970e0f2979e297831f8ea27466aa3e67992ce4
tree9888dcd14e15205c239aa972120aa35ee64df374
parent5f441a7b3db705cd1dd546f6e623586801da6c07
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 <[email protected]>
Change-Id: I7412139c3df3073a1996eb508ec08642ec6af90d
plat/rockchip/common/bl31_plat_setup.c
plat/rockchip/common/include/plat_private.h
plat/rockchip/common/params_setup.c
plat/rockchip/common/sp_min_plat_setup.c