]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: stm32: Add USB host boot support
authorMarek Vasut <marex@denx.de>
Fri, 12 Feb 2021 12:50:52 +0000 (13:50 +0100)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 26 Feb 2021 14:39:12 +0000 (15:39 +0100)
Add support for booting from USB pen drive, since USB host port is
available on the STM32MP1.

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: Patrick Delaunay <patrick.delaunay@foss.st.com>
include/configs/stm32mp1.h

index c5539285af1287653657cb79f91ba78536745955..36e400453ea98291e3ca91799ae6bb13b3818da3 100644 (file)
 #define BOOT_TARGET_UBIFS(func)
 #endif
 
+#ifdef CONFIG_USB
+#define BOOT_TARGET_USB(func)  func(USB, usb, 0)
+#else
+#define BOOT_TARGET_USB(func)
+#endif
+
 #define BOOT_TARGET_DEVICES(func)      \
        BOOT_TARGET_MMC1(func)          \
        BOOT_TARGET_UBIFS(func)         \
        BOOT_TARGET_MMC0(func)          \
        BOOT_TARGET_MMC2(func)          \
+       BOOT_TARGET_USB(func)           \
        BOOT_TARGET_PXE(func)
 
 /*