arm: mach-k3: am62a7: Provide a way to obtain boot device for non SPLs
authorGarrett Giordano <ggiordano@phytec.com>
Thu, 31 Oct 2024 16:21:03 +0000 (09:21 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 14 Dec 2024 02:08:59 +0000 (20:08 -0600)
commit5c54452042cec311addc4aa7bf9626231dacf5af
tree58902d334889ce5dfc62d6f2b1e251f7297c5c0d
parent53d5f896e99b69b7b57f3319033965790bfb999b
arm: mach-k3: am62a7: Provide a way to obtain boot device for non SPLs

Introduce get_boot_device() to obtain the booting device. Make it also
available for non SPL builds so u-boot can also know the device it
is booting from.

Signed-off-by: Garrett Giordano <ggiordano@phytec.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
Reviewed-by: Andrew Davis <afd@ti.com>
arch/arm/mach-k3/am62ax/Makefile
arch/arm/mach-k3/am62ax/am62a7_init.c
arch/arm/mach-k3/am62ax/boot.c [new file with mode: 0644]