diff options
author | Heiko Stuebner <heiko@sntech.de> | 2019-03-07 08:07:11 +0100 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2019-03-14 22:45:15 +0100 |
commit | 7029e806833b94f729d9117bd35d488476b0e27e (patch) | |
tree | d7ad7ccdf74d1b3b159fef570425be9a6b11eded /plat/rockchip/rk3328 | |
parent | 4476838ae8c03087c4172de393a9c7c8b13dc393 (diff) | |
download | arm-trusted-firmware-7029e806833b94f729d9117bd35d488476b0e27e.tar.gz |
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>
Diffstat (limited to 'plat/rockchip/rk3328')
-rw-r--r-- | plat/rockchip/rk3328/platform.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plat/rockchip/rk3328/platform.mk b/plat/rockchip/rk3328/platform.mk index ca6345b7e..18b1b9419 100644 --- a/plat/rockchip/rk3328/platform.mk +++ b/plat/rockchip/rk3328/platform.mk @@ -8,6 +8,8 @@ RK_PLAT := plat/rockchip RK_PLAT_SOC := ${RK_PLAT}/${PLAT} RK_PLAT_COMMON := ${RK_PLAT}/common +include lib/libfdt/libfdt.mk + PLAT_INCLUDES := -Idrivers/arm/gic/common/ \ -Idrivers/arm/gic/v2/ \ -I${RK_PLAT_COMMON}/ \ @@ -38,6 +40,7 @@ BL31_SOURCES += ${RK_GIC_SOURCES} \ drivers/delay_timer/generic_delay_timer.c \ lib/cpus/aarch64/aem_generic.S \ lib/cpus/aarch64/cortex_a53.S \ + $(LIBFDT_SRCS) \ ${RK_PLAT_COMMON}/drivers/parameter/ddr_parameter.c \ ${RK_PLAT_COMMON}/aarch64/plat_helpers.S \ ${RK_PLAT_COMMON}/bl31_plat_setup.c \ |