[PATCH next] arm: mach-k3: use Kconfig options for ATF/OPTEE size
Anshul Dalal
anshuld at ti.com
Wed Mar 11 13:10:51 CET 2026
On Wed Mar 11, 2026 at 12:04 PM IST, Francesco Dolcini wrote:
> On Tue, Mar 10, 2026 at 02:36:27PM +0530, Anshul Dalal wrote:
>> The reserved memory sizes for ATF and OPTEE were hard-coded for K3
>> devices, this patch replaces them with a Kconfig option allowing for
>> easier modifications.
>>
>> Signed-off-by: Anshul Dalal <anshuld at ti.com>
>
> ...
>
>> diff --git a/arch/arm/mach-k3/Kconfig b/arch/arm/mach-k3/Kconfig
>> index 1b8c0b1eb96..ba1130a7996 100644
>> --- a/arch/arm/mach-k3/Kconfig
>> +++ b/arch/arm/mach-k3/Kconfig
>> @@ -130,6 +130,14 @@ config K3_ATF_LOAD_ADDR
>> 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_ATF_RESERVED_SIZE
>> + hex "Reserved DDR size for ATF"
>> + default 0x80000 if (SOC_K3_AM625 || SOC_K3_AM62A7 || SOC_K3_AM62P5 || SOC_K3_J722S)
>> + default 0x20000
>
> This means that J784S4 has 0x20000? Is this wanted?
As per the DT[1], J784S4 also has 0x20000 bytes reserved for TFA.
[1]: https://github.com/torvalds/linux/blob/b29fb8829bff243512bb8c8908fd39406f9fd4c3/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi#L36
>
> Francesco
More information about the U-Boot
mailing list