]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: stm32mp13: add support of usb boot
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 26 Sep 2023 15:09:22 +0000 (17:09 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 4 Oct 2023 11:32:41 +0000 (13:32 +0200)
Add support of USB key boot in distro boot command.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
include/configs/stm32mp13_common.h

index d36fbf005487bf36aae9e14d18b8757db0d51bbc..5b0658ced927983455859574a8c192bd1bc5087b 100644 (file)
 #define BOOT_TARGET_MMC1(func)
 #endif
 
+#ifdef CONFIG_CMD_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_MMC0(func)
+       BOOT_TARGET_MMC0(func)          \
+       BOOT_TARGET_USB(func)
 
 /*
  * default bootcmd for stm32mp13: