stm32mp: stm32prog: handle U-Boot script in flashlayout alternate

Update the stm32prog command to allow the reception of U-Boot script in
the FlashLayout alternate during the first USB enumeration.

This patch is aligned with the last TF-A behavior: the Flashlayout
is now loaded by U-Boot; it is no more present at STM32_DDR_BASE when
the stm32prog is launched after a serial boot, on UART or on USB.

The received script must be a U-Boot legacy image, no more need to add
a stm32image header.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
This commit is contained in:
Patrick Delaunay
2022-03-28 19:25:32 +02:00
committed by Patrice Chotard
parent 7f1121a85a
commit 152576a598
3 changed files with 13 additions and 7 deletions

View File

@@ -170,6 +170,8 @@ struct stm32prog_data {
u32 initrd;
u32 initrd_size;
u32 script;
/* OPTEE PTA NVMEM */
struct udevice *tee;
u32 tee_session;