tf-a-stm32mp: add USB boot support to 'opteemin' flavor of nand

OP-TEE comes in two flavors: optee and opteemin
For NAND-boot images, add support for USB boot as well,
so that the default tf-a image is valid for booting from
either NAND or USB.
We had this for 'optee' flavor but not for 'opteemin'.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2025-05-12 13:19:30 +02:00
parent 7d076d76a5
commit fdec14adc9
1 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,12 @@ TF_A_CONFIG[optee-nand] = "\
${TF_A_CONFIG_BASENAME_BIN},\
${TF_A_CONFIG_MAKE_TARGET},\
${TF_A_CONFIG_DEPLOY_FTYPE} ${TF_A_CONFIG_DEPLOY_EXTRA}"
TF_A_CONFIG[opteemin-nand] ?= "\
${STM32MP_DT_FILES_NAND},\
${TF_A_CONFIG_OPTS_optee} ${TF_A_CONFIG_OPTS_features} ${TF_A_CONFIG_OPTS_fwupdate} STM32MP_RAW_NAND=1 STM32MP_USB_PROGRAMMER=1 ${@'STM32MP_FORCE_MTD_START_OFFSET=${TF_A_MTD_START_OFFSET_NAND}' if ${TF_A_MTD_START_OFFSET_NAND} else ''},\
${TF_A_CONFIG_BASENAME_BIN},\
${TF_A_CONFIG_MAKE_TARGET},\
${TF_A_CONFIG_DEPLOY_FTYPE} ${TF_A_CONFIG_DEPLOY_EXTRA}"
# TF_A_CONFIG[uart] (same as 'optee-programmer-uart')
TF_A_CONFIG[uart] ?= "\
${STM32MP_DEVICETREE_PROGRAMMER},\