From 3ac6cae9440c66fcc62472fc61aae1ae014864e6 Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Tue, 26 Sep 2023 17:09:21 +0200 Subject: configs: stm32mp13: activate command stm32prog Activate the command stm32prog with CONFIG_CMD_STM32MPROG. The CONFIG_SET_DFU_ALT_INFO is also activated to support the required weak functions for the DFU virtual backen defined in board/st/common/stm32mp_dfu.c. Signed-off-by: Patrick Delaunay Signed-off-by: Patrice Chotard Reviewed-by: Patrick Delaunay --- include/configs/stm32mp13_common.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/configs/stm32mp13_common.h b/include/configs/stm32mp13_common.h index 7c59c69e0bd..d36fbf00548 100644 --- a/include/configs/stm32mp13_common.h +++ b/include/configs/stm32mp13_common.h @@ -41,10 +41,14 @@ /* * default bootcmd for stm32mp13: + * for serial/usb: execute the stm32prog command * for mmc boot (eMMC, SD card), distro boot on the same mmc device */ #define STM32MP_BOOTCMD "bootcmd_stm32mp=" \ "echo \"Boot over ${boot_device}${boot_instance}!\";" \ + "if test ${boot_device} = serial || test ${boot_device} = usb;" \ + "then stm32prog ${boot_device} ${boot_instance}; " \ + "else " \ "run env_check;" \ "if test ${boot_device} = mmc;" \ "then env set boot_targets \"mmc${boot_instance}\"; fi;" \ -- cgit v1.3.1