]> git.ipfire.org Git - thirdparty/u-boot.git/commit
ti: k3: abstract common fdt api for reserved mem fixups
authorAnshul Dalal <anshuld@ti.com>
Thu, 4 Dec 2025 11:11:55 +0000 (16:41 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 16 Dec 2025 17:36:48 +0000 (11:36 -0600)
commit6c8dee07c346fcca8f851e18ea554c81f3483d09
tree90fe58ce32408a9e2bd25e1590f471fcae9ede36
parenteb52d3fe8a591d6daf6d01570ed19ae88b1e934d
ti: k3: abstract common fdt api for reserved mem fixups

The usage of fdt_fixup_reserved is repeated for ATF and OP-TEE for
multiple platforms, this patch creates a single fdt API for fixing up
the reserved-memory node with added error handling.

All k3 platforms already share a common tispl template which ensures
binaries are loaded as per the respective CONFIG_*_LOAD_ADDR. And the
provided new_size for the fixup is overridden by the size from fdt node
anyways. This allows for safe abstraction of the reserved memory fixups
for all current platforms.

fdt_fixup_reserved now abstracts the ATF and OP-TEE fixups by calling
the renamed static fdt_fixup_reserved_memory function with the required
parameters.

Signed-off-by: Anshul Dalal <anshuld@ti.com>
arch/arm/mach-k3/am62ax/am62a7_fdt.c
arch/arm/mach-k3/am62px/am62p5_fdt.c
arch/arm/mach-k3/am62x/am625_fdt.c
arch/arm/mach-k3/common.c
arch/arm/mach-k3/common_fdt.c
arch/arm/mach-k3/include/mach/k3-common-fdt.h
arch/arm/mach-k3/j722s/j722s_fdt.c