]> git.ipfire.org Git - thirdparty/u-boot.git/commit
arm: socfpga: put initial U-Boot stack into DDR
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Tue, 9 Apr 2019 19:02:04 +0000 (21:02 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 24 Apr 2019 22:00:49 +0000 (00:00 +0200)
commit4399e48deb55a5786515e089fe9f0aa6e0ce5d6a
tree306c997d04a89fa24c62f7b2de95cd902401906d
parent798baf7ca35f81eab27dc49289745b19bde3cd39
arm: socfpga: put initial U-Boot stack into DDR

If SPL post-reloc stage puts the stack into DDR, U-Boot should be able to
do that, too.

The reason to do so is that this way, U-Boot initial stack can be larger
than SPL initial stack. In situations where we want to save the SPL
in SRAM for next boot without reloading, this prevents overwriting the
SPL DTB in SRAM if U-Boot stack usage gets too high.

To achieve this, the malloc definition for a10 is moved up and sligthly
changed to ensure CONFIG_SYS_INIT_RAM_SIZE is the remaining available size.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Acked-by: Marek Vasut <marex@denx.de>
include/configs/socfpga_common.h