]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mach-k3: am62p: Fixup TF-A/OP-TEE reserved-memory node in FDT
authorBryan Brattlof <bb@ti.com>
Thu, 23 May 2024 16:43:20 +0000 (11:43 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 29 May 2024 17:21:14 +0000 (11:21 -0600)
commit44b1d2210f0aa062c45e39860ebdcdbb22c84933
tree2457dab07eb3895d86598d54c459b6b16c03f948
parent480b2d14ce601592e5a741228251bbed77d6b508
arm: mach-k3: am62p: Fixup TF-A/OP-TEE reserved-memory node in FDT

The address we load TFA and OPTEE is configurable by the
CONFIG_K3_{ATF,OPTEE)_LOAD_ADDR, but the DT node reservations remain
static which can cause some confusion about where exactly these firmware
are exactly. Fix this by updating the reserved-memory{} nodes when the
loaded address does not match the address in DT.

Reported-by: Andrew Davis <afd@ti.com>
Signed-off-by: Bryan Brattlof <bb@ti.com>
arch/arm/mach-k3/Makefile
arch/arm/mach-k3/am62p5_fdt.c [new file with mode: 0644]
arch/arm/mach-k3/am62px/Kconfig