mach-k3: common: support only MMC in R5 falcon mode
authorAnshul Dalal <anshuld@ti.com>
Fri, 31 Oct 2025 07:37:54 +0000 (13:07 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 6 Nov 2025 23:39:49 +0000 (17:39 -0600)
commit18a3a7a9b82a8f01ca22f5c1979145a28805ad46
treea5811cbea9a556b9d7674ddd9506524999c10bd4
parente40c406914aeadbb82cd84fe4d9f48efbcb1c68b
mach-k3: common: support only MMC in R5 falcon mode

To simplify the boot process and prevent the R5 SPL size from growing,
this patch restricts the boot media to load the next stage payload
(tifalcon.bin and kernel FIT) to MMC only.

We select between eMMC/SD by checking "mmcdev" in env to conform with
how U-Boot proper handles loading binaries from MMC1 or MMC2.

Note that tiboot3.bin (the initial bootloader) can be loaded from any
boot mode supported by the ROM since the restriction only applies to
tifalcon.bin and fitImage.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
arch/arm/mach-k3/am62ax/am62a7_init.c
arch/arm/mach-k3/am62px/am62p5_init.c
arch/arm/mach-k3/am62x/am625_init.c
arch/arm/mach-k3/common.h
arch/arm/mach-k3/r5/common.c