[PATCH] iot2050: Allow for more than 1 USB storage device

Jan Kiszka jan.kiszka at siemens.com
Sun Oct 22 17:18:31 CEST 2023


From: Jan Kiszka <jan.kiszka at siemens.com>

This was lost via 53873974a4b0 while some users of the IOT2050 expect it
to work: Make sure that up to 3 USB storage devices are probed.

Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
---
 include/configs/iot2050.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/configs/iot2050.h b/include/configs/iot2050.h
index 4968722d18f..1d444d02c83 100644
--- a/include/configs/iot2050.h
+++ b/include/configs/iot2050.h
@@ -15,6 +15,15 @@
 
 #include <configs/ti_armv7_common.h>
 
+/* allow up to 3 USB storage devcies */
+#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
-- 
2.35.3


More information about the U-Boot mailing list