]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
spl: Kconfig: k3: Increase malloc size after relocation for R5
authorAndrew Davis <afd@ti.com>
Mon, 8 Dec 2025 19:06:33 +0000 (13:06 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 31 Dec 2025 16:13:00 +0000 (10:13 -0600)
Seems the "generous 2MB space" is no longer enough for SPL on some K3 R5
platforms so let's increase this to 4MB. That matches what we give to
ARM64 SPL, so combine these.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
common/spl/Kconfig
configs/am64x_evm_r5_defconfig

index 3b7b6cafef882c7ac5a69d4689d8a07d5a31e866..0411a5edc9fd5e083ea9d152b197053776eef234 100644 (file)
@@ -465,8 +465,7 @@ config SPL_STACK_R_ADDR
 config SPL_STACK_R_MALLOC_SIMPLE_LEN
        depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
        hex "Size of malloc_simple heap after switching to DRAM SPL stack"
-       default 0x400000 if ARCH_K3 && ARM64
-       default 0x200000 if ARCH_K3 && CPU_V7R
+       default 0x400000 if ARCH_K3
        default 0x100000
        help
          Specify the amount of the stack to use as memory pool for
index a675ea84fca59dab76107e3ff429bf226bd7c04a..e1a748de5a90bb146cc98fc0c5b5a6b26dcec45e 100644 (file)
@@ -23,7 +23,6 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x7019b800
 CONFIG_SPL_BSS_MAX_SIZE=0x4000
 CONFIG_SPL_STACK_R=y
-CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x400000
 CONFIG_SPL_SIZE_LIMIT=0x190000
 CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x4000
 CONFIG_SPL_FS_FAT=y