summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2021-12-06 21:58:08 +0100
committerPatrice Chotard <[email protected]>2022-01-24 10:52:49 +0100
commit757c8387be4e406dc8ceb05672b7f1601c42fcde (patch)
treee6993a95d9e971940a41d8c39dd447bec2fbb27b
parentd323242b62920be08e3a2efb1a61bd9bdf9ed583 (diff)
arm: stm32mp: Fix USB boot device report
In case the SoC reports the boot device type is USB, it means the SPL was loaded via BootROM DFU mode. Currently the spl_boot_device() returns boot device as USB host, change it to DFU instead, so the SPL can continue the DFU boot and load U-Boot via DFU. Signed-off-by: Marek Vasut <[email protected]> Cc: Patrice Chotard <[email protected]> Cc: Patrick Delaunay <[email protected]> Reviewed-by: Patrice Chotard <[email protected]>
-rw-r--r--arch/arm/mach-stm32mp/spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c
index 405eff68a3b..51fe0698fab 100644
--- a/arch/arm/mach-stm32mp/spl.c
+++ b/arch/arm/mach-stm32mp/spl.c
@@ -43,7 +43,7 @@ u32 spl_boot_device(void)
case BOOT_SERIAL_UART_8:
return BOOT_DEVICE_UART;
case BOOT_SERIAL_USB_OTG:
- return BOOT_DEVICE_USB;
+ return BOOT_DEVICE_DFU;
case BOOT_FLASH_NAND_FMC:
return BOOT_DEVICE_NAND;
case BOOT_FLASH_NOR_QSPI: