Skip to contentSkip to conversation

ti: j721e_evm: Add USB to the default boot order

PATCH In review Tom Rini 1 participant 2 messages Jan 25, 2023 – Feb 7, 2023

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 ti: j721e_evm: Add USB to the default boot order

This family of platforms typically has a USB port, and so attempting to boot from it, and making it first, will provide a better overall user experience.

---
 include/configs/j721e_evm.h | 7 +++++++
 1 file changed, 7 insertions(+)
include/configs/j721e_evm.h +7 -0
index a7210b5cf3ae..48b1cea6e394 100644
@@ -161,7 +161,14 @@
 # define BOOT_TARGET_DHCP(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_USB(func) \
 	func(MMC, mmc, 1) \
 	func(MMC, mmc, 0) \
 	BOOT_TARGET_PXE(func) \
Signature · 1 line
2.34.1
author
#1 lore raw
Quoted 5 lines · Tom Rini

This family of platforms typically has a USB port, and so attempting to boot from it, and making it first, will provide a better overall user experience.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom