]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm: socfpga: provide default SPL_SIZE_LIMIT for gen5
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Thu, 13 Jun 2019 19:50:28 +0000 (21:50 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 14 Jun 2019 10:41:26 +0000 (12:41 +0200)
This provides an SPL_SIZE_LIMIT that makes the build check that the SPL
binary loaded from flash fits into the SRAM (64 KiB) and leaves enough
room for global data, heap  and stack (512 bytes assumed stack usage).

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
arch/arm/mach-socfpga/Kconfig

index 48f02f08d4454a992b29c5e1eaeb49ab5d6ee3f7..1d914648e314fbfde805c3947c2a1d927b3fb486 100644 (file)
@@ -3,6 +3,12 @@ if ARCH_SOCFPGA
 config NR_DRAM_BANKS
        default 1
 
+config SPL_SIZE_LIMIT
+       default 65536 if TARGET_SOCFPGA_GEN5
+
+config SPL_SIZE_LIMIT_PROVIDE_STACK
+       default 0x200 if TARGET_SOCFPGA_GEN5
+
 config SPL_STACK_R_ADDR
        default 0x00800000 if TARGET_SOCFPGA_GEN5
 
@@ -49,6 +55,8 @@ config TARGET_SOCFPGA_GEN5
        bool
        select SPL_ALTERA_SDRAM
        imply FPGA_SOCFPGA
+       imply SPL_SIZE_LIMIT_SUBTRACT_GD
+       imply SPL_SIZE_LIMIT_SUBTRACT_MALLOC
        imply SPL_STACK_R
        imply SPL_SYS_MALLOC_SIMPLE
        imply USE_TINY_PRINTF