]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
igep00x0: Use the SRAM available for SPL.
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 3 May 2016 06:59:24 +0000 (08:59 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 3 May 2016 16:17:13 +0000 (12:17 -0400)
Move CONFIG_SPL_TEXT_BASE down to 0x40200000 and set CONFIG_SPL_MAX_SIZE
to (SRAM_SCRATCH_SPACE_ADDR - CONFIG_SPL_TEXT_BASE), so that it's clear
what the limit is.

This will also help some compilers to fit all the code into the allocated
space.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
include/configs/omap3_igep00x0.h

index 5da50a50948a43b4e17453340ed5f9d157da7d66..9bd891586cd86e6b8596535fea995c5a03fae6db 100644 (file)
 #include <configs/ti_omap3_common.h>
 #include <asm/mach-types.h>
 
+/* SRAM starts at 0x40200000 and ends at 0x4020FFFF (64KB) */
+#undef CONFIG_SPL_MAX_SIZE
+#undef CONFIG_SPL_TEXT_BASE
+
+#define CONFIG_SPL_MAX_SIZE            (SRAM_SCRATCH_SPACE_ADDR - CONFIG_SPL_TEXT_BASE)
+#define CONFIG_SPL_TEXT_BASE           0x40200000
+
 /*
  * Display CPU and Board information
  */