feat(st): add FWU configurations
Test Firmware Update configurations (with PSA_FWU_SUPPORT=1).
Add one FWU config for STM32MP15 on SD-card.
To avoid adding too much configurations, update all STM32MP13 configs
to use FWU and change STM32MP15 boot on raw NAND to use it as well,
as there is some dedicated code for this use case.
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: I4deb3fe3ca79a45ac7b95c976f44fcd457d4872b
diff --git a/tf_config/stm32mp1-fwu b/tf_config/stm32mp1-fwu
new file mode 100644
index 0000000..20c5cd5
--- /dev/null
+++ b/tf_config/stm32mp1-fwu
@@ -0,0 +1,9 @@
+AARCH32_SP=sp_min
+ARCH=aarch32
+ARM_ARCH_MAJOR=7
+CROSS_COMPILE=arm-none-eabi-
+DTB_FILE_NAME=stm32mp157c-ev1.dtb
+PLAT=stm32mp1
+PSA_FWU_SUPPORT=1
+STM32MP_EMMC=1
+STM32MP_SDMMC=1
diff --git a/tf_config/stm32mp1-mp13 b/tf_config/stm32mp1-mp13
index 489e9a0..4247300 100644
--- a/tf_config/stm32mp1-mp13
+++ b/tf_config/stm32mp1-mp13
@@ -2,8 +2,9 @@
ARCH=aarch32
ARM_ARCH_MAJOR=7
CROSS_COMPILE=arm-none-eabi-
+DTB_FILE_NAME=stm32mp135f-dk.dtb
PLAT=stm32mp1
+PSA_FWU_SUPPORT=1
STM32MP13=1
STM32MP_EMMC=1
STM32MP_SDMMC=1
-DTB_FILE_NAME=stm32mp135f-dk.dtb
diff --git a/tf_config/stm32mp1-mp13-tbb b/tf_config/stm32mp1-mp13-tbb
index f8b295d..fd91f0c 100644
--- a/tf_config/stm32mp1-mp13-tbb
+++ b/tf_config/stm32mp1-mp13-tbb
@@ -2,9 +2,10 @@
ARCH=aarch32
ARM_ARCH_MAJOR=7
CROSS_COMPILE=arm-none-eabi-
+DTB_FILE_NAME=stm32mp135f-dk.dtb
PLAT=stm32mp1
+PSA_FWU_SUPPORT=1
STM32MP13=1
STM32MP_EMMC=1
STM32MP_SDMMC=1
-DTB_FILE_NAME=stm32mp135f-dk.dtb
TRUSTED_BOARD_BOOT=1
diff --git a/tf_config/stm32mp1-mp13-tbb-decrypt b/tf_config/stm32mp1-mp13-tbb-decrypt
index 9755e40..46467ca 100644
--- a/tf_config/stm32mp1-mp13-tbb-decrypt
+++ b/tf_config/stm32mp1-mp13-tbb-decrypt
@@ -6,6 +6,7 @@
DTB_FILE_NAME=stm32mp135f-dk.dtb
ENCRYPT_BL32=1
PLAT=stm32mp1
+PSA_FWU_SUPPORT=1
STM32MP13=1
STM32MP_EMMC=1
STM32MP_SDMMC=1
diff --git a/tf_config/stm32mp1-mp13-tbb-ecdsa-regular b/tf_config/stm32mp1-mp13-tbb-ecdsa-regular
index 9a771ca..a94d3f8 100644
--- a/tf_config/stm32mp1-mp13-tbb-ecdsa-regular
+++ b/tf_config/stm32mp1-mp13-tbb-ecdsa-regular
@@ -2,10 +2,11 @@
ARCH=aarch32
ARM_ARCH_MAJOR=7
CROSS_COMPILE=arm-none-eabi-
+DTB_FILE_NAME=stm32mp135f-dk.dtb
+KEY_ALG=ecdsa-brainpool-regular
PLAT=stm32mp1
+PSA_FWU_SUPPORT=1
STM32MP13=1
STM32MP_EMMC=1
STM32MP_SDMMC=1
-DTB_FILE_NAME=stm32mp135f-dk.dtb
TRUSTED_BOARD_BOOT=1
-KEY_ALG=ecdsa-brainpool-regular
diff --git a/tf_config/stm32mp1-mp13-tbb-ecdsa-twisted b/tf_config/stm32mp1-mp13-tbb-ecdsa-twisted
index 991a167..775be1f 100644
--- a/tf_config/stm32mp1-mp13-tbb-ecdsa-twisted
+++ b/tf_config/stm32mp1-mp13-tbb-ecdsa-twisted
@@ -2,10 +2,11 @@
ARCH=aarch32
ARM_ARCH_MAJOR=7
CROSS_COMPILE=arm-none-eabi-
+DTB_FILE_NAME=stm32mp135f-dk.dtb
+KEY_ALG=ecdsa-brainpool-twisted
PLAT=stm32mp1
+PSA_FWU_SUPPORT=1
STM32MP13=1
STM32MP_EMMC=1
STM32MP_SDMMC=1
-DTB_FILE_NAME=stm32mp135f-dk.dtb
TRUSTED_BOARD_BOOT=1
-KEY_ALG=ecdsa-brainpool-twisted
diff --git a/tf_config/stm32mp1-raw-nand b/tf_config/stm32mp1-raw-nand
index de4dcd6..2449e90 100644
--- a/tf_config/stm32mp1-raw-nand
+++ b/tf_config/stm32mp1-raw-nand
@@ -2,6 +2,7 @@
ARCH=aarch32
ARM_ARCH_MAJOR=7
CROSS_COMPILE=arm-none-eabi-
-PLAT=stm32mp1
-STM32MP_RAW_NAND=1
DTB_FILE_NAME=stm32mp157c-ev1.dtb
+PLAT=stm32mp1
+PSA_FWU_SUPPORT=1
+STM32MP_RAW_NAND=1