feat(stm32mp2): add FWU support
Add stm32_get_bkpr_fwu_info_addr() function.
Call stm32_fwu_set_boot_idx() in bl2_plat_handle_post_image_load().
Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
Change-Id: Ieb57dffa4ce784d1ed61b401dc17376fe745c111
diff --git a/plat/st/stm32mp2/bl2_plat_setup.c b/plat/st/stm32mp2/bl2_plat_setup.c
index 2fabc41..621b784 100644
--- a/plat/st/stm32mp2/bl2_plat_setup.c
+++ b/plat/st/stm32mp2/bl2_plat_setup.c
@@ -385,6 +385,11 @@
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;