]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
iot2050: Allow for more than 1 USB storage device
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 22 Oct 2023 18:07:26 +0000 (20:07 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 28 Oct 2023 13:18:19 +0000 (09:18 -0400)
This was lost in refactoring while some users of the IOT2050 expect it
to work: Make sure that up to 3 USB storage devices are probed.

Fixes: 53873974a4b0 ("include: armv7: Enable distroboot across all configs")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/configs/iot2050.h

index 4968722d18f654aa1ccc8693d8f1bf144a9ab950..94a9c767882584f0115aa5ae2e58c442d14c5bfe 100644 (file)
 
 #include <configs/ti_armv7_common.h>
 
+/* allow up to 3 USB storage devices */
+#ifdef CONFIG_CMD_USB
+#undef BOOT_TARGET_USB
+#define BOOT_TARGET_USB(func) \
+       func(USB, usb, 0) \
+       func(USB, usb, 1) \
+       func(USB, usb, 2)
+#endif
+
 /*
  * This defines all MMC devices, even if the basic variant has no mmc1.
  * The non-supported device will be removed from the boot targets during