mach-k3: add carveouts for TFA and optee
authorAnshul Dalal <anshuld@ti.com>
Fri, 17 Oct 2025 13:15:32 +0000 (18:45 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 22 Oct 2025 18:05:52 +0000 (12:05 -0600)
commit4f5285f0e640c3e9b40420ba3b11358446646b11
treef1d8791ea49aae538b856d7d52ee964f06e1fe03
parent859f68ed2ee7a0c1f88efaeb769202df01ef7a97
mach-k3: add carveouts for TFA and optee

K3 platforms have reserved memory regions for TFA and OPTEE which should
be unmapped for U-Boot. While other "no-map" memory regions like the
memory pools for remote cores should not be unmapped to allow U-Boot to
load firmware during remoteproc.

Therefore this patch adds the necessary fdt fixups to properly set the
load address for TFA/OPTEE and unmaps both by mmu_unmap_reserved_mem.

Reviewed-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Anshul Dalal <anshuld@ti.com>
Tested-by: Wadim Egorov <w.egorov@phytec.de>
arch/arm/mach-k3/common.c