]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: stm32mp: Fix USB boot device report
authorMarek Vasut <marex@denx.de>
Mon, 6 Dec 2021 20:58:08 +0000 (21:58 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Mon, 24 Jan 2022 09:52:49 +0000 (10:52 +0100)
commit757c8387be4e406dc8ceb05672b7f1601c42fcde
treee6993a95d9e971940a41d8c39dd447bec2fbb27b
parentd323242b62920be08e3a2efb1a61bd9bdf9ed583
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 <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/spl.c