From 89c2e7f77de98a89bfe57a8e40bfb99ced2bb2e3 Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Tue, 25 Jul 2017 14:05:26 -0700 Subject: rockchip/rk3399: Pass coreboot table pointer to ARM TF This patch passes the coreboot table base address to ARM TF on RK3399 devices to be able to use the new coreboot table parsing support. Change-Id: I5cb2f13ce71e374207d0fa7a71c38852d680dc56 Signed-off-by: Julius Werner Reviewed-on: https://review.coreboot.org/23557 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi Reviewed-by: Paul Menzel --- src/soc/rockchip/rk3399/bl31_plat_params.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/soc/rockchip/rk3399/bl31_plat_params.c') diff --git a/src/soc/rockchip/rk3399/bl31_plat_params.c b/src/soc/rockchip/rk3399/bl31_plat_params.c index 583eac8059..647566ba2d 100644 --- a/src/soc/rockchip/rk3399/bl31_plat_params.c +++ b/src/soc/rockchip/rk3399/bl31_plat_params.c @@ -16,6 +16,7 @@ #include #include +#include #include static struct bl31_plat_param *plat_params; @@ -28,5 +29,13 @@ void register_bl31_param(struct bl31_plat_param *param) void *soc_get_bl31_plat_params(bl31_params_t *bl31_params) { + static struct bl31_u64_param cbtable_param = { + .h = { .type = PARAM_COREBOOT_TABLE, }, + }; + if (!cbtable_param.value) { + cbtable_param.value = (uint64_t)cbmem_find(CBMEM_ID_CBTABLE); + if (cbtable_param.value) + register_bl31_param(&cbtable_param.h); + } return plat_params; } -- cgit v1.2.3