mach-k3: fix reading size and addr from fdt on R5
authorAnshul Dalal <anshuld@ti.com>
Wed, 3 Sep 2025 11:17:02 +0000 (16:47 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 15 Sep 2025 23:08:02 +0000 (17:08 -0600)
commit7aa5271def6ba16ff4426aa164b7bb743673b3c3
tree82e8ee78be9324a26de6f3e1a147a2d3843055ee
parent83bb1c438486a03184795b0dfa970271496b24bf
mach-k3: fix reading size and addr from fdt on R5

fdtdec_get_addr_size uses architecture dependent datatypes which causes
the 32-bit R5 to fail when reading the 64-bit size and addr fields of
reg nodes from the fdt.

Therefore change it to a common api for both 64 and 32 bit platforms to
allow for fdt fixups from R5.

Fixes: 8b0fc29de0e3 ("arm: mach-k3: am62: Fixup TF-A/OP-TEE reserved-memory node in FDT")
Signed-off-by: Anshul Dalal <anshuld@ti.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
arch/arm/mach-k3/common_fdt.c