]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
am335x_evm: Allow booting from usb-storage device
authorMatwey V. Kornilov <matwey.kornilov@gmail.com>
Mon, 24 Aug 2020 18:00:33 +0000 (21:00 +0300)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 15 Sep 2020 13:21:53 +0000 (18:51 +0530)
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
include/configs/am335x_evm.h

index 9c4ef369c5cf37eafbc1e4622c34c13e4ce25fea..103c046137465ae49ba5d207f349abf6ae28f425 100644 (file)
 #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
        #devtypel #instance " "
 
+#if CONFIG_IS_ENABLED(CMD_USB)
+# define BOOT_TARGET_USB(func) func(USB, usb, 0)
+#else
+# define BOOT_TARGET_USB(func)
+#endif
+
 #if CONFIG_IS_ENABLED(CMD_PXE)
 # define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
 #else
@@ -84,6 +90,7 @@
        func(MMC, mmc, 1) \
        func(LEGACY_MMC, legacy_mmc, 1) \
        func(NAND, nand, 0) \
+       BOOT_TARGET_USB(func) \
        BOOT_TARGET_PXE(func) \
        BOOT_TARGET_DHCP(func)