diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/rockchip/rk3399/bl31_plat_params.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <arm_tf.h> #include <assert.h> +#include <cbmem.h> #include <soc/bl31_plat_params.h> 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; } |