From 26850d71ec16ba3874522ae286af2b8cb07056f7 Mon Sep 17 00:00:00 2001 From: Manish V Badarkhe <Manish.Badarkhe@arm.com> Date: Wed, 16 Mar 2022 13:51:26 +0000 Subject: [PATCH] refactor(st): update set_config_info function call Pass NS-load address as ~0UL to the 'set_config_info' function while updating FW_CONFIG device tree information since it is always loaded into secure memory. Change-Id: Ieeaf9c97085128d7b7339d34495bdd58cd9fcf8a Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com> --- plat/st/stm32mp1/bl2_plat_setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plat/st/stm32mp1/bl2_plat_setup.c b/plat/st/stm32mp1/bl2_plat_setup.c index 88d0f8a8c..0d554bda9 100644 --- a/plat/st/stm32mp1/bl2_plat_setup.c +++ b/plat/st/stm32mp1/bl2_plat_setup.c @@ -432,7 +432,8 @@ int bl2_plat_handle_post_image_load(unsigned int image_id) #if !STM32MP_USE_STM32IMAGE case FW_CONFIG_ID: /* Set global DTB info for fixed fw_config information */ - set_config_info(STM32MP_FW_CONFIG_BASE, STM32MP_FW_CONFIG_MAX_SIZE, FW_CONFIG_ID); + set_config_info(STM32MP_FW_CONFIG_BASE, ~0UL, STM32MP_FW_CONFIG_MAX_SIZE, + FW_CONFIG_ID); fconf_populate("FW_CONFIG", STM32MP_FW_CONFIG_BASE); idx = dyn_cfg_dtb_info_get_index(TOS_FW_CONFIG_ID);