[PATCH 2/2] arm64: versal2: Add usb distro boot command
Michal Simek
michal.simek at amd.com
Thu Apr 10 10:30:55 CEST 2025
From: Venkatesh Yadav Abbarapu <venkatesh.abbarapu at amd.com>
Adding support for the usb distro boot command.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu at amd.com>
Signed-off-by: Michal Simek <michal.simek at amd.com>
---
include/configs/amd_versal2.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/configs/amd_versal2.h b/include/configs/amd_versal2.h
index e937375ca6e7..1ade6adfa0bc 100644
--- a/include/configs/amd_versal2.h
+++ b/include/configs/amd_versal2.h
@@ -125,12 +125,19 @@
#define BOOTENV_DEV_NAME_DFU_USB(devtypeu, devtypel, instance) \
""
+#if defined(CONFIG_USB_STORAGE)
+#define BOOT_TARGET_DEVICES_USB(func) func(USB, usb, 0) func(USB, usb, 1)
+#else
+#define BOOT_TARGET_DEVICES_USB(func)
+#endif
+
#define BOOT_TARGET_DEVICES(func) \
BOOT_TARGET_DEVICES_JTAG(func) \
BOOT_TARGET_DEVICES_MMC(func) \
BOOT_TARGET_DEVICES_UFS(func) \
BOOT_TARGET_DEVICES_XSPI(func) \
BOOT_TARGET_DEVICES_DFU_USB(func) \
+ BOOT_TARGET_DEVICES_USB(func) \
BOOT_TARGET_DEVICES_PXE(func) \
BOOT_TARGET_DEVICES_DHCP(func)
--
2.43.0
More information about the U-Boot
mailing list