Merge "feat(stm32mp2): add FWU support" into integration

This commit is contained in:
Manish Pandey 2024-12-16 16:47:02 +01:00 committed by TrustedFirmware Code Review
commit bfaded4061
2 changed files with 13 additions and 0 deletions

View file

@ -385,6 +385,11 @@ int bl2_plat_handle_post_image_load(unsigned int image_id)
break;
case BL33_IMAGE_ID:
#if PSA_FWU_SUPPORT
stm32_fwu_set_boot_idx();
#endif /* PSA_FWU_SUPPORT */
break;
default:
/* Do nothing in default case */
break;

View file

@ -10,6 +10,7 @@
#include <platform_def.h>
#define BKPR_FWU_INFO 48U
#define BKPR_BOOT_MODE 96U
#if defined(IMAGE_BL31)
@ -328,6 +329,13 @@ uintptr_t stm32_get_bkpr_boot_mode_addr(void)
return tamp_bkpr(BKPR_BOOT_MODE);
}
#if PSA_FWU_SUPPORT
uintptr_t stm32_get_bkpr_fwu_info_addr(void)
{
return tamp_bkpr(BKPR_FWU_INFO);
}
#endif /* PSA_FWU_SUPPORT */
uintptr_t stm32_ddrdbg_get_base(void)
{
return DDRDBG_BASE;