]> git.baikalelectronics.ru Git - arm-tf.git/commit
rockchip: add an fdt parsing stub for platform param
authorHeiko Stuebner <heiko@sntech.de>
Thu, 7 Mar 2019 07:07:11 +0000 (08:07 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 14 Mar 2019 21:45:15 +0000 (22:45 +0100)
commit7029e806833b94f729d9117bd35d488476b0e27e
treed7ad7ccdf74d1b3b159fef570425be9a6b11eded
parent4476838ae8c03087c4172de393a9c7c8b13dc393
rockchip: add an fdt parsing stub for platform param

The Rockchip ATF platform can be entered from both Coreboot and U-Boot.
While Coreboot does submit the list of linked parameter structs as
platform param, upstream u-boot actually always provides a pointer
to a devicetree as parameter.
This results in current ATF not running at all when started from U-Boot.

To fix this, add a stub that checks if the parameter is a fdt so we
can at least boot and not get stuck. Later on we can extend this with
actual parsing of information from the devicetree.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
plat/rockchip/common/params_setup.c
plat/rockchip/rk3328/platform.mk
plat/rockchip/rk3368/platform.mk
plat/rockchip/rk3399/platform.mk