arm64: versal2: Enable boot from UFS and USB
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
PATCH 1/2 arm64: versal2: Add ufs distro boot command
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
@@ -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
PATCH 2/2 arm64: versal2: Add usb distro boot command
In reply to Michal SimekFrom: 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
@@ -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
Michal Simek
AppliedQuoted 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 commandinclude/configs/amd_versal2.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
Applied.
M