* [U-Boot] [PATCH] igep00x0: Use the SRAM available for SPL.
@ 2016-05-03 6:59 Enric Balletbo i Serra
2016-05-03 16:17 ` Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Enric Balletbo i Serra @ 2016-05-03 6:59 UTC (permalink / raw)
To: u-boot
From: Enric Balletbo i Serra <enric.balletbo@collabora.com>
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 | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h
index 5da50a5..9bd8915 100644
--- a/include/configs/omap3_igep00x0.h
+++ b/include/configs/omap3_igep00x0.h
@@ -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
*/
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] igep00x0: Use the SRAM available for SPL.
2016-05-03 6:59 [U-Boot] [PATCH] igep00x0: Use the SRAM available for SPL Enric Balletbo i Serra
@ 2016-05-03 16:17 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2016-05-03 16:17 UTC (permalink / raw)
To: u-boot
On Tue, May 03, 2016 at 08:59:24AM +0200, Enric Balletbo i Serra wrote:
> From: Enric Balletbo i Serra <enric.balletbo@collabora.com>
>
> 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>
Applied to u-boot/master, thanks!
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-03 16:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-03 6:59 [U-Boot] [PATCH] igep00x0: Use the SRAM available for SPL Enric Balletbo i Serra
2016-05-03 16:17 ` Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox