mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-04 04:57:47 +01:00
At present SPL uses a single stack, either CONFIG_SPL_STACK or CONFIG_SYS_INIT_SP_ADDR. Since some SPL features (such as MMC and environment) require a lot of stack, some boards set CONFIG_SPL_STACK to point into SDRAM. They then set up SDRAM very early, before board_init_f(), so that the larger stack can be used. This is an abuse of lowlevel_init(). That function should only be used for essential start-up code which cannot be delayed. An example of a valid use is when only part of the SPL code is visible/executable, and the SoC must be set up so that board_init_f() can be reached. It should not be used for SDRAM init, console init, etc. Add a CONFIG_SPL_STACK_R option, which allows the stack to be moved to a new address before board_init_r() is called in SPL. The expected SPL flow (for CONFIG_SPL_FRAMEWORK) is documented in the README. Signed-off-by: Simon Glass <sjg@chromium.org> For version 1: Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net> Reviewed-by: Stefan Roese <sr@denx.de> Tested-by: Bo Shen <voice.shen@atmel.com> Acked-by: Bo Shen <voice.shen@atmel.com> Acked-by: Heiko Schocher <hs@denx.de> Tested-by: Heiko Schocher <hs@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com> |
||
|---|---|---|
| .. | ||
| _ashldi3.S | ||
| _ashrdi3.S | ||
| _divsi3.S | ||
| _lshrdi3.S | ||
| _modsi3.S | ||
| _udivsi3.S | ||
| _umodsi3.S | ||
| asm-offsets.c | ||
| board.c | ||
| bootm-fdt.c | ||
| bootm.c | ||
| cache-cp15.c | ||
| cache-pl310.c | ||
| cache.c | ||
| crt0.S | ||
| crt0_64.S | ||
| debug.S | ||
| div0.c | ||
| eabi_compat.c | ||
| gic_64.S | ||
| interrupts.c | ||
| interrupts_64.c | ||
| Makefile | ||
| memcpy.S | ||
| memset.S | ||
| relocate.S | ||
| relocate_64.S | ||
| reset.c | ||
| sections.c | ||
| semihosting.c | ||
| spl.c | ||
| stack.c | ||
| vectors.S | ||