]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: dts: k3-binman: Use configs for ATF/OPTEE addresses
authorSuhaas Joshi <s-joshi@ti.com>
Tue, 27 Jan 2026 08:16:43 +0000 (13:46 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 7 Feb 2026 17:50:06 +0000 (11:50 -0600)
Instead of hard-coding ATF and OPTEE addresses in firewall configuration
templates, use K3_*_LOAD_ADDR. Doing so ensures that if someone moves
ATF/OPTEE regions, the change gets picked up by binman without
explicitly having to modify dts files.

Signed-off-by: Suhaas Joshi <s-joshi@ti.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
arch/arm/dts/k3-binman.dtsi

index 761b173046413cad07a1dca1d072f4f45ec21af0..0fd93f9536a2f2f11b2fbd2b4797a0c48a5cde44 100644 (file)
                permissions = <((FWPRIVID_ARMV8 << FWPRIVID_SHIFT) |
                                                FWPERM_SECURE_PRIV_RWCD |
                                                FWPERM_SECURE_USER_RWCD)>;
-               start_address = <0x0 0x70000000>;
-               end_address = <0x0 0x7001ffff>;
+               start_address = <0x0 CONFIG_K3_ATF_LOAD_ADDR>;
+               end_address = <0x0 (CONFIG_K3_ATF_LOAD_ADDR + 0x1ffff)>;
        };
        firewall_armv8_optee_fg: template-8 {
                control = <(FWCTRL_EN | FWCTRL_LOCK |
                permissions = <((FWPRIVID_ARMV8 << FWPRIVID_SHIFT) |
                                                FWPERM_SECURE_PRIV_RWCD |
                                                FWPERM_SECURE_USER_RWCD)>;
-               start_address = <0x0 0x9e800000>;
-               end_address = <0x0 0x9fffffff>;
+               start_address = <0x0 CONFIG_K3_OPTEE_LOAD_ADDR>;
+               end_address = <0x0 (CONFIG_K3_OPTEE_LOAD_ADDR + 0x17fffff)>;
        };
 
        ti_falcon_template: template-9 {