diff mbox

[U-Boot] omap3_logic: Move SPL Stack into SDRAM

Message ID 1488943672-2338-1-git-send-email-aford173@gmail.com
State Accepted
Commit ae29c3d4f4e00cb016518a64ae8fb1be3a0b76c9
Delegated to: Tom Rini
Headers show

Commit Message

Adam Ford March 8, 2017, 3:27 a.m. UTC
A previous patch broke the board. This patch will add missing part
from the previous patch and also move the SPL Stack into SDRAM at
0x82000000.

Tested with GCC 4.8.2 and GCC 6.2

Fixes: 0959649dc6d9 ("omap3_logic: Switch to simple malloco in SPL")

Signed-off-by: Adam Ford <aford173@gmail.com>

Changes in V2:
  - Keep CONFIG_SPL_SYS_MALLOC_SIMPLE
  - Add CONFIG_SYS_MALLOC_F_LEN=0x2000 (8 MB)

Comments

Tom Rini March 9, 2017, 1:07 p.m. UTC | #1
On Tue, Mar 07, 2017 at 09:27:52PM -0600, Adam Ford wrote:

> A previous patch broke the board. This patch will add missing part
> from the previous patch and also move the SPL Stack into SDRAM at
> 0x82000000.
> 
> Tested with GCC 4.8.2 and GCC 6.2
> 
> Fixes: 0959649dc6d9 ("omap3_logic: Switch to simple malloco in SPL")
> 
> Signed-off-by: Adam Ford <aford173@gmail.com>
> 
> Changes in V2:
>   - Keep CONFIG_SPL_SYS_MALLOC_SIMPLE
>   - Add CONFIG_SYS_MALLOC_F_LEN=0x2000 (8 MB)
> 
> diff --git a/configs/omap3_logic_defconfig b/configs/omap3_logic_defconfig
> index fe762c0..6fad8ce 100644

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/configs/omap3_logic_defconfig b/configs/omap3_logic_defconfig
index fe762c0..6fad8ce 100644
--- a/configs/omap3_logic_defconfig
+++ b/configs/omap3_logic_defconfig
@@ -6,6 +6,9 @@  CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_SPL=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SPL_STACK_R=y
+CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
 CONFIG_HUSH_PARSER=y