aboutsummaryrefslogtreecommitdiff
path: root/common/spl
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2023-10-31 00:17:38 -0500
committerAndre Przywara <andre.przywara@arm.com>2024-01-29 14:30:59 +0000
commitd72494a06443061f150742910e9441fe9c9e14f3 (patch)
tree00b500c45a2bf343d09ec48aa5a18dea28061619 /common/spl
parent57b6eb900559bf6998fd962e3860af36937ccd50 (diff)
downloadu-boot-d72494a06443061f150742910e9441fe9c9e14f3.zip
u-boot-d72494a06443061f150742910e9441fe9c9e14f3.tar.gz
u-boot-d72494a06443061f150742910e9441fe9c9e14f3.tar.bz2
sunxi: spl: Disable padding from SPL_PAD_TO
Starting with H6, Allwinner removed the artificial 32 KiB SPL size limit from the boot ROM. Now SPL size is only limited by the available SRAM. This limit ranges from 152 KiB on H6 to a whopping 2052 KiB on R329. To take advantage of this additional space, we must increase SPL_MAX_SIZE. Since we do not want to unnecessarily pad SPL out to these giant sizes, we must set SPL_PAD_TO to zero. This causes no problems because binman already takes care of appending the SPL payload at the right offset. Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'common/spl')
-rw-r--r--common/spl/Kconfig3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index e7b84fc..ff77534 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -97,8 +97,7 @@ config SPL_PAD_TO
default 0x31000 if ARCH_MX6 && MX6_OCRAM_256KB
default 0x11000 if ARCH_MX7 || (ARCH_MX6 && !MX6_OCRAM_256KB)
default 0x10000 if ARCH_KEYSTONE
- default 0x8000 if ARCH_SUNXI && !MACH_SUN50I_H616
- default 0x0 if ARCH_MTMIPS
+ default 0x0 if ARCH_MTMIPS || ARCH_SUNXI
default TPL_MAX_SIZE if TPL_MAX_SIZE > SPL_MAX_SIZE
default SPL_MAX_SIZE
help