mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 10:24:49 +00:00

Currently the following memory layout is typically used on RK3308: [ 0, 256K) - SPL binary [ 256K, 2M) - TF-A / reserved [ -X, 4M) - SPL pre-reloc stack (SPL_STACK) [ -8K, 4M) - pre-reloc malloc heap (SPL_SYS_MALLOC_F_LEN) [ 4M, +8K) - SPL bss (SPL_BSS_START_ADDR, SPL_BSS_MAX_SIZE) [ 6M, +X) - U-Boot proper binary (TEXT_BASE) [ -X, 8M) - U-Boot proper pre-reloc stack (CUSTOM_SYS_INIT_SP_ADDR) [ -8K, 8M) - pre-reloc malloc heap (SYS_MALLOC_F_LEN) [ -X, 12M) - SPL reloc stack (SPL_STACK_R_ADDR) [ 11M, 12M) - reloc malloc heap (SPL_STACK_R_MALLOC_SIMPLE_LEN) SPL can safely load U-Boot proper + FDT to [6M, 8M-8K) with this layout. Migrate to use common bss, stack and malloc heap size and addresses to remove this size limitation and extend the malloc heap size being used. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
32 lines
522 B
Text
32 lines
522 B
Text
if ROCKCHIP_RK3308
|
|
|
|
config TARGET_EVB_RK3308
|
|
bool "EVB_RK3308"
|
|
select BOARD_LATE_INIT
|
|
|
|
config TARGET_ROC_RK3308_CC
|
|
bool "Firefly roc-rk3308-cc"
|
|
select BOARD_LATE_INIT
|
|
|
|
config ROCKCHIP_BOOT_MODE_REG
|
|
default 0xff000500
|
|
|
|
config ROCKCHIP_STIMER_BASE
|
|
default 0xff1b00a0
|
|
|
|
config SYS_SOC
|
|
default "rk3308"
|
|
|
|
config ROCKCHIP_COMMON_STACK_ADDR
|
|
default y
|
|
|
|
config TEXT_BASE
|
|
default 0x00600000
|
|
|
|
config SPL_SERIAL
|
|
default y
|
|
|
|
source "board/rockchip/evb_rk3308/Kconfig"
|
|
source "board/firefly/firefly-rk3308/Kconfig"
|
|
|
|
endif
|