From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Wed, 27 Apr 2016 06:25:38 +0200 Subject: [U-Boot] [PATCH] igep00x0: Use all SRAM available for SPL. In-Reply-To: <1461683133-16676-1-git-send-email-enric.balletbo@collabora.com> References: <1461683133-16676-1-git-send-email-enric.balletbo@collabora.com> Message-ID: <57203F42.60803@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Enric, Am 26.04.2016 um 17:05 schrieb Enric Balletbo i Serra: > Internal SRAM starts at 0x40200000 and ends at 0x4020FFFF, so there > are 64KB available to be used for SPL. This will also help some > compilers to fit all the code into the allocated space. > > Signed-off-by: Enric Balletbo i Serra > --- > 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..2459064 100644 > --- a/include/configs/omap3_igep00x0.h > +++ b/include/configs/omap3_igep00x0.h > @@ -19,6 +19,13 @@ > #include > #include > > +/* SRAM starts at 0x40200000 and ends at 0x4020FFFF (64KB) */ > +#undef CONFIG_SPL_MAX_SIZE > +#undef CONFIG_SPL_TEXT_BASE > + > +#define CONFIG_SPL_MAX_SIZE (64*1024) > +#define CONFIG_SPL_TEXT_BASE 0x40200000 Hmm... risky, as the SPL needs at last some bytes for stack, until RAM is initialized and stack moved to it ... or do I miss something? bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany