Skip to contentSkip to conversation

igep00x0: Use the SRAM available for SPL.

PATCH New Enric Balletbo i Serra 2 participants 2 messages May 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 igep00x0: Use the SRAM available for SPL.

From: Enric Balletbo i Serra <[email protected]>

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.

---
 include/configs/omap3_igep00x0.h | 7 +++++++
 1 file changed, 7 insertions(+)
include/configs/omap3_igep00x0.h +7 -0
index 5da50a5..9bd8915 100644
@@ -19,6 +19,13 @@
 #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
  */
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 igep00x0: Use the SRAM available for SPL.

Quoted 10 lines · Enric Balletbo i Serra

From: Enric Balletbo i Serra <[email protected]>

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160503/2f4ed9da/attachment.sig>