Skip to content

Commit

Permalink
rockchip: Kconfig: enable TPL/SPL support for rk3328
Browse files Browse the repository at this point in the history
Enable TPL/SPL support and some related option in Kconfig.

Change-Id: Ifde2835d06cfd69933487a66ebce63956b12407e
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
  • Loading branch information
keveryang committed Nov 7, 2017
1 parent df4f40a commit 430b014
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion arch/arm/mach-rockchip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,41 @@ config ROCKCHIP_RK3328
bool "Support Rockchip RK3328"
select ARM64
select GICV2
select SUPPORT_SPL
select SUPPORT_TPL
select SPL
select TPL
select TPL_NEEDS_SEPARATE_TEXT_BASE if TPL
select TPL_NEEDS_SEPARATE_STACK if TPL
imply SPL_SERIAL_SUPPORT
imply TPL_SERIAL_SUPPORT
imply SPL_SEPARATE_BSS
select ENABLE_ARM_SOC_BOOT0_HOOK
select DEBUG_UART_BOARD_INIT
select SYS_NS16550
help
The Rockchip RK3328 is a ARM-based SoC with a quad-core Cortex-A53.
including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
video interfaces supporting HDMI and eDP, several DDR3 options
and video codec support. Peripherals include Gigabit Ethernet,
USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs.

if ROCKCHIP_RK3328

config TPL_LDSCRIPT
default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"

config TPL_TEXT_BASE
default 0xff091000

config TPL_MAX_SIZE
default 28672

config TPL_STACK
default 0xff098000

endif

config ROCKCHIP_RK3368
bool "Support Rockchip RK3368"
select ARM64
Expand Down Expand Up @@ -165,7 +193,7 @@ config SPL_ROCKCHIP_BACK_TO_BROM

config TPL_ROCKCHIP_BACK_TO_BROM
bool "TPL returns to bootrom"
default y if ROCKCHIP_RK3368
default y if ROCKCHIP_RK3368 || ROCKCHIP_RK3328
select ROCKCHIP_BROM_HELPER
depends on TPL
help
Expand Down

0 comments on commit 430b014

Please sign in to comment.