stm32mp1: stm32prog: remove stm32prog_get_tee_partitions when FIP is used

The MTD tee partitions used to save the OP-TEE binary are needed when
TF-A doesn't use the FIP container to load binaries.

This path removes the associated code in command stm32prog.

Change-Id: I1aeda5b6cc2115de802f79656884387d7a7ca94c
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/184635
Reviewed-by: CITOOLS <smet-aci-reviews@lists.codex.cro.st.com>
Reviewed-by: CIBUILD <smet-aci-builds@lists.codex.cro.st.com>
Reviewed-by: Patrick DELAUNAY <patrick.delaunay@st.com>
Tested-by: Patrick DELAUNAY <patrick.delaunay@st.com>
This commit is contained in:
Patrick Delaunay
2020-11-16 11:26:02 +01:00
committed by Patrick Delaunay
parent 530378050a
commit a9a6ef9f26
4 changed files with 9 additions and 0 deletions

View File

@ -803,7 +803,9 @@ static int treat_partition_list(struct stm32prog_data *data)
INIT_LIST_HEAD(&data->dev[j].part_list);
}
#ifdef CONFIG_STM32MP15x_STM32IMAGE
data->tee_detected = false;
#endif
data->fsbl_nor_detected = false;
for (i = 0; i < data->part_nb; i++) {
part = &data->part_array[i];
@ -857,10 +859,12 @@ static int treat_partition_list(struct stm32prog_data *data)
/* fallthrough */
case STM32PROG_NAND:
case STM32PROG_SPI_NAND:
#ifdef CONFIG_STM32MP15x_STM32IMAGE
if (!data->tee_detected &&
!strncmp(part->name, "tee", 3))
data->tee_detected = true;
break;
#endif
default:
break;
}