-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
u-boot-iot2050: Add patch to restore up to 3 USB storag devices
Also pending upstream. Signed-off-by: Jan Kiszka <[email protected]>
- Loading branch information
1 parent
51b3c0b
commit e1ccc56
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
recipes-bsp/u-boot/files/0005-iot2050-Allow-for-more-than-1-USB-storage-device.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Jan Kiszka <[email protected]> | ||
Date: Sun, 22 Oct 2023 17:09:33 +0200 | ||
Subject: [PATCH] iot2050: Allow for more than 1 USB storage device | ||
|
||
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 <[email protected]> | ||
Reviewed-by: Heinrich Schuchardt <[email protected]> | ||
--- | ||
include/configs/iot2050.h | 9 +++++++++ | ||
1 file changed, 9 insertions(+) | ||
|
||
diff --git a/include/configs/iot2050.h b/include/configs/iot2050.h | ||
index 4968722d18f..94a9c767882 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 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters