[PATCH 0/3] mach-k3: Rework spl/get_boot_device()
Wadim Egorov
w.egorov at phytec.de
Thu Oct 2 15:04:52 CEST 2025
This may need an rebase after the MMC macros fixup patch from Judith [1].
Also, if we want to extend it to all K3 SoCs, some of the Jacinto devices
would need an update of their DEVSTAT masks to be relativ to the
bootmode config.
RFC: https://lists.denx.de/pipermail/u-boot/2025-August/596543.html
v1:
Update based on suggestions from Anshul:
- Use k3_get_boot_device_info() to get rid of multiple extern variables
- Implement k3_get_boot_device_info() for am62x/boot.c
- Removed k3_boot_device_info[] array
- Add info param to bootmedia functions
- Apply to AM64x and AM62Ax
[1] https://lists.denx.de/pipermail/u-boot/2025-September/598239.html
Wadim Egorov (3):
arm: mach-k3: Rework spl/get_boot_device()
arm: mach-k3: am62ax: Switch to boot-device helper
arm: mach-k3: am64x: Switch to boot-device helper
arch/arm/mach-k3/Makefile | 2 +-
arch/arm/mach-k3/am62ax/boot.c | 141 ++++++------------
arch/arm/mach-k3/am62x/boot.c | 141 ++++++------------
arch/arm/mach-k3/am64x/boot.c | 139 +++++------------
arch/arm/mach-k3/boot-device.c | 90 +++++++++++
arch/arm/mach-k3/boot-device.h | 34 +++++
arch/arm/mach-k3/include/mach/am62_hardware.h | 1 +
7 files changed, 252 insertions(+), 296 deletions(-)
create mode 100644 arch/arm/mach-k3/boot-device.c
create mode 100644 arch/arm/mach-k3/boot-device.h
--
2.48.1
More information about the U-Boot
mailing list