#define STM32MP_BOARD_EXTRA_ENV \
"usb_pgood_delay=1000\0" \
- "update_sf=" /* Erase SPI NOR and install U-Boot from SD */ \
+ "dh_update_sd_to_sf=" /* Erase SPI NOR and install U-Boot from SD */ \
"setexpr loadaddr1 ${loadaddr} + 0x1000000 && " \
"load mmc 0:4 ${loadaddr1} /boot/u-boot-spl.stm32 && " \
"env set filesize1 ${filesize} && " \
"sf update ${loadaddr1} 0 ${filesize1} && " \
"sf update ${loadaddr1} 0x40000 ${filesize1} && " \
"sf update ${loadaddr} 0x80000 ${filesize} && " \
- "env set filesize1 && env set loadaddr1\0"
+ "env set filesize1 && env set loadaddr1\0" \
+ "update_sf=run dh_update_sd_to_sf\0"
+
#include <configs/stm32mp15_common.h>