* [PATCH 1/2] arm64: versal2: Add ufs distro boot command
2025-04-10 8:30 [PATCH 0/2] arm64: versal2: Enable boot from UFS and USB Michal Simek
@ 2025-04-10 8:30 ` Michal Simek
2025-04-10 8:30 ` [PATCH 2/2] arm64: versal2: Add usb " Michal Simek
2025-04-16 11:37 ` [PATCH 0/2] arm64: versal2: Enable boot from UFS and USB Michal Simek
2 siblings, 0 replies; 4+ messages in thread
From: Michal Simek @ 2025-04-10 8:30 UTC (permalink / raw)
To: u-boot, git; +Cc: Venkatesh Yadav Abbarapu, Marek Vasut, Tom Rini
From: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Adding support for the ufs distro boot command.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
---
include/configs/amd_versal2.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/include/configs/amd_versal2.h b/include/configs/amd_versal2.h
index 6a40bbdf3a72..e937375ca6e7 100644
--- a/include/configs/amd_versal2.h
+++ b/include/configs/amd_versal2.h
@@ -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) \
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] arm64: versal2: Add usb distro boot command
2025-04-10 8:30 [PATCH 0/2] arm64: versal2: Enable boot from UFS and USB Michal Simek
2025-04-10 8:30 ` [PATCH 1/2] arm64: versal2: Add ufs distro boot command Michal Simek
@ 2025-04-10 8:30 ` Michal Simek
2025-04-16 11:37 ` [PATCH 0/2] arm64: versal2: Enable boot from UFS and USB Michal Simek
2 siblings, 0 replies; 4+ messages in thread
From: Michal Simek @ 2025-04-10 8:30 UTC (permalink / raw)
To: u-boot, git; +Cc: Venkatesh Yadav Abbarapu, Marek Vasut, Tom Rini
From: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Adding support for the usb distro boot command.
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Signed-off-by: Michal Simek <michal.simek@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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] arm64: versal2: Enable boot from UFS and USB
2025-04-10 8:30 [PATCH 0/2] arm64: versal2: Enable boot from UFS and USB Michal Simek
2025-04-10 8:30 ` [PATCH 1/2] arm64: versal2: Add ufs distro boot command Michal Simek
2025-04-10 8:30 ` [PATCH 2/2] arm64: versal2: Add usb " Michal Simek
@ 2025-04-16 11:37 ` Michal Simek
2 siblings, 0 replies; 4+ messages in thread
From: Michal Simek @ 2025-04-16 11:37 UTC (permalink / raw)
To: u-boot, git; +Cc: Marek Vasut, Tom Rini, Venkatesh Yadav Abbarapu
On 4/10/25 10:30, Michal Simek wrote:
> 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(+)
>
Applied.
M
^ permalink raw reply [flat|nested] 4+ messages in thread