Skip to contentSkip to conversation

arm64: versal2: Enable boot from UFS and USB

PATCH Applied Michal Simek 1 participant 4 messages Apr 10, 2025 – Apr 16, 2025

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 arm64: versal2: Add ufs distro boot command

In reply to Michal Simek

From: Venkatesh Yadav Abbarapu <[email protected]>

Adding support for the ufs distro boot command.

---

 include/configs/amd_versal2.h | 9 +++++++++
 1 file changed, 9 insertions(+)
include/configs/amd_versal2.h +9 -0
index 6a40bbdf3a72..e937375ca6e7 100644
@@ -105,6 +105,14 @@
 #define BOOTENV_DEV_NAME_JTAG(devtypeu, devtypel, instance) \
 	"jtag "
 
+#define BOOT_TARGET_DEVICES_UFS(func)	func(UFS, ufs, 0)
+
+#define BOOTENV_DEV_UFS(devtypeu, devtypel, instance) \
+	"bootcmd_" #devtypel "=" #devtypel " init " #instance "; scsi scan;\0"
+
+#define BOOTENV_DEV_NAME_UFS(devtypeu, devtypel, instance) \
+	"ufs "
+
 #define BOOT_TARGET_DEVICES_DFU_USB(func)  func(DFU_USB, dfu_usb, 0)
 
 #define BOOTENV_DEV_DFU_USB(devtypeu, devtypel, instance) \
@@ -120,6 +128,7 @@
 #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_PXE(func) \
Signature · 1 line
2.43.0
#0 lore raw

cover arm64: versal2: Enable boot from UFS and USB

Hi,

these two patches are wiring support for USB and UFS. It is still done via distro boot because we didn't switch our platforms to standard boot yet. But investigation is planned already. To bridge the gap between wire it via already available distro boot.

Thanks,
Michal

Venkatesh Yadav Abbarapu (2):
arm64: versal2: Add ufs distro boot command
arm64: versal2: Add usb distro boot command

 include/configs/amd_versal2.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
Signature · 1 line
2.43.0
#2 lore raw

PATCH 2/2 arm64: versal2: Add usb distro boot command

From: Venkatesh Yadav Abbarapu <[email protected]>

Adding support for the usb distro boot command.

---

 include/configs/amd_versal2.h | 7 +++++++
 1 file changed, 7 insertions(+)
include/configs/amd_versal2.h +7 -0
index e937375ca6e7..1ade6adfa0bc 100644
@@ -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)
 
Signature · 1 line
2.43.0
author Applied
#3 lore raw
In reply to Michal Simek
Quoted 11 lines · Michal Simek

Hi,

these two patches are wiring support for USB and UFS. It is still done via distro boot because we didn't switch our platforms to standard boot yet. But investigation is planned already. To bridge the gap between wire it via already available distro boot.

Thanks,
Michal

Quoted 7 lines

Venkatesh Yadav Abbarapu (2):
arm64: versal2: Add ufs distro boot command
arm64: versal2: Add usb distro boot command

  include/configs/amd_versal2.h | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)

Applied.
M