]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mach-k3: Add default ATF location for AM62/AM62a
authorAndrew Davis <afd@ti.com>
Wed, 14 Feb 2024 16:30:04 +0000 (10:30 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 6 Mar 2024 14:09:00 +0000 (09:09 -0500)
There is a default ATF load address that is used for devices that have
ATF running in SRAM. For AM62 and AM62a, ATF runs from DRAM. Instead
of having to override the address in every defconfig, make add a
default for these ATF in DRAM devices.

Signed-off-by: Andrew Davis <afd@ti.com>
Acked-by: Bryan Brattlof <bb@ti.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
arch/arm/mach-k3/Kconfig
configs/am62ax_evm_a53_defconfig
configs/am62x_beagleplay_a53_defconfig
configs/am62x_evm_a53_defconfig
configs/phycore_am62x_a53_defconfig
configs/verdin-am62_a53_defconfig

index 03898424c9546dd16017173ec604103151b226a3..0bd3f9fa12dc55d250c1ea9c12c8f949c2af144c 100644 (file)
@@ -123,10 +123,11 @@ config SYS_K3_SPL_ATF
 
 config K3_ATF_LOAD_ADDR
        hex "Load address of ATF image"
+       default 0x9e780000 if (SOC_K3_AM625 || SOC_K3_AM62A7)
        default 0x70000000
        help
-         The load address for the ATF image. This value defaults to 0x70000000
-         if not provided in the board defconfig file.
+         The load address for the ATF image. This value is used to build the
+         FIT image header that places ATF in memory where it will run.
 
 config K3_DM_FW
        bool "Separate DM firmware image"
index 38083586a3ec68bb755b651cc55ed011ec17dde8..03b2dea7d512a847264ad79e3340744e569dbbf2 100644 (file)
@@ -5,7 +5,6 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_SOC_K3_AM62A7=y
-CONFIG_K3_ATF_LOAD_ADDR=0x9e780000
 CONFIG_TARGET_AM62A7_A53_EVM=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80480000
index 0be20045a974cbaea51fa47ae017696be1a76063..122c1ba9299c51b5d8da6db3d6f90b1f16dded83 100644 (file)
@@ -6,7 +6,6 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_SOC_K3_AM625=y
-CONFIG_K3_ATF_LOAD_ADDR=0x9e780000
 CONFIG_TARGET_AM625_A53_BEAGLEPLAY=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80b80000
index 457931faf2100af4a55675644bfaf38445a6c1a8..e29df6ec52306a28b168bf56b9e8147ec73c8930 100644 (file)
@@ -5,7 +5,6 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_SOC_K3_AM625=y
-CONFIG_K3_ATF_LOAD_ADDR=0x9e780000
 CONFIG_TARGET_AM625_A53_EVM=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80b80000
index 2d5d906a9d779329efbb7db0275eeb518e54180d..5ba0844026881784a6618d55cc12c58e29eba040 100644 (file)
@@ -5,7 +5,6 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_SOC_K3_AM625=y
-CONFIG_K3_ATF_LOAD_ADDR=0x9e780000
 CONFIG_TARGET_PHYCORE_AM62X_A53=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80b80000
index 956e3a1ad75eec90a3380fcae1627f0b2dbd3744..2003a530c7da2d993e8d4cdf7b0991af7d864a15 100644 (file)
@@ -8,7 +8,6 @@ CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
 CONFIG_NR_DRAM_BANKS=2
 CONFIG_SOC_K3_AM625=y
-CONFIG_K3_ATF_LOAD_ADDR=0x9e780000
 CONFIG_TARGET_VERDIN_AM62_A53=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80b80000