Skip to content
Snippets Groups Projects
Commit 7ae8350f authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

ti: armv7: Move SPL SDRAM init to the right place, drop unused CONFIG_SPL_STACK


Currently in some cases SDRAM init requires global_data to be available
and soon this will not be available prior to board_init_f().  Adjust the
code paths in these cases to be correct.  In some cases we had the SPL
stack be in DDR as we might have large stacks (due to Falcon Mode +
Environment).  In these cases switch to CONFIG_SPL_STACK_R.  In other
cases we had simply been setting CONFIG_SPL_STACK into SRAM.  In these
cases we no longer need to (CONFIG_SYS_INIT_SP_ADDR is used and is also
in SRAM) so drop those lines.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Tested on Beagleboard, Beagleboard xM
Tested-by: default avatarMatt Porter <mporter@konsulko.com>
Tested on Beaglebone Black, AM43xx GP EVM, OMAP5 uEVM, OMAP4 Pandaboard
Tested-by: default avatarTom Rini <trini@konsulko.com>
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent 90594919
No related branches found
No related tags found
Loading
Showing
with 34 additions and 20 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment