xref: /rk3399_rockchip-uboot/arch/arm/mach-rockchip/Kconfig (revision 08dcd37c063a8e4bf7d302c7b128af3d070b4e8b)
12444dae5SSimon Glassif ARCH_ROCKCHIP
22444dae5SSimon Glass
3041cdb5fSHeiko Stübnerconfig ROCKCHIP_RK3036
4041cdb5fSHeiko Stübner	bool "Support Rockchip RK3036"
5041cdb5fSHeiko Stübner	select CPU_V7
6a381bcf5SKever Yang	select SUPPORT_SPL
7a381bcf5SKever Yang	select SPL
8041cdb5fSHeiko Stübner	help
9041cdb5fSHeiko Stübner	  The Rockchip RK3036 is a ARM-based SoC with a dual-core Cortex-A7
10041cdb5fSHeiko Stübner	  including NEON and GPU, Mali-400 graphics, several DDR3 options
11041cdb5fSHeiko Stübner	  and video codec support. Peripherals include Gigabit Ethernet,
12041cdb5fSHeiko Stübner	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
13041cdb5fSHeiko Stübner
140a2be69fSHeiko Stübnerconfig ROCKCHIP_RK3188
150a2be69fSHeiko Stübner	bool "Support Rockchip RK3188"
160a2be69fSHeiko Stübner	select CPU_V7
170680f1b1SLey Foon Tan	select SPL_BOARD_INIT if SPL
180a2be69fSHeiko Stübner	select SUPPORT_SPL
190a2be69fSHeiko Stübner	select SUPPORT_TPL
200a2be69fSHeiko Stübner	select SPL
210a2be69fSHeiko Stübner	select TPL
22008a610bSHeiko Stübner	select BOARD_LATE_INIT
230a2be69fSHeiko Stübner	select ROCKCHIP_BROM_HELPER
240a2be69fSHeiko Stübner	help
250a2be69fSHeiko Stübner	  The Rockchip RK3188 is a ARM-based SoC with a quad-core Cortex-A9
260a2be69fSHeiko Stübner	  including NEON and GPU, 512KB L2 cache, Mali-400 graphics, two
270a2be69fSHeiko Stübner	  video interfaces, several memory options and video codec support.
280a2be69fSHeiko Stübner	  Peripherals include Fast Ethernet, USB2 host and OTG, SDIO, I2S,
290a2be69fSHeiko Stübner	  UART, SPI, I2C and PWMs.
300a2be69fSHeiko Stübner
31168eef7aSKever Yangconfig ROCKCHIP_RK322X
32168eef7aSKever Yang	bool "Support Rockchip RK3228/RK3229"
33168eef7aSKever Yang	select CPU_V7
34168eef7aSKever Yang	select SUPPORT_SPL
3506d27531SKever Yang	select SUPPORT_TPL
36168eef7aSKever Yang	select SPL
3706d27531SKever Yang	select TPL
3806d27531SKever Yang	select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL
3906d27531SKever Yang	select TPL_NEEDS_SEPARATE_STACK if TPL
4006d27531SKever Yang	select SPL_DRIVERS_MISC_SUPPORT
4106d27531SKever Yang	imply SPL_SERIAL_SUPPORT
4206d27531SKever Yang	imply TPL_SERIAL_SUPPORT
43168eef7aSKever Yang	select ROCKCHIP_BROM_HELPER
44168eef7aSKever Yang	select DEBUG_UART_BOARD_INIT
4506d27531SKever Yang	select TPL_LIBCOMMON_SUPPORT
4606d27531SKever Yang	select TPL_LIBGENERIC_SUPPORT
47168eef7aSKever Yang	help
48168eef7aSKever Yang	  The Rockchip RK3229 is a ARM-based SoC with a dual-core Cortex-A7
49168eef7aSKever Yang	  including NEON and GPU, Mali-400 graphics, several DDR3 options
50168eef7aSKever Yang	  and video codec support. Peripherals include Gigabit Ethernet,
51168eef7aSKever Yang	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
52168eef7aSKever Yang
532444dae5SSimon Glassconfig ROCKCHIP_RK3288
542444dae5SSimon Glass	bool "Support Rockchip RK3288"
55e0f5dbcbSAndreas Färber	select CPU_V7
560680f1b1SLey Foon Tan	select SPL_BOARD_INIT if SPL
57a381bcf5SKever Yang	select SUPPORT_SPL
58a381bcf5SKever Yang	select SPL
592444dae5SSimon Glass	help
602444dae5SSimon Glass	  The Rockchip RK3288 is a ARM-based SoC with a quad-core Cortex-A17
612444dae5SSimon Glass	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
622444dae5SSimon Glass	  video interfaces supporting HDMI and eDP, several DDR3 options
632444dae5SSimon Glass	  and video codec support. Peripherals include Gigabit Ethernet,
64ef904bf2SAndreas Färber	  USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs.
652444dae5SSimon Glass
6685a3cfb8SKever Yangconfig ROCKCHIP_RK3328
6785a3cfb8SKever Yang	bool "Support Rockchip RK3328"
6885a3cfb8SKever Yang	select ARM64
6985a3cfb8SKever Yang	help
7085a3cfb8SKever Yang	  The Rockchip RK3328 is a ARM-based SoC with a quad-core Cortex-A53.
7185a3cfb8SKever Yang	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
7285a3cfb8SKever Yang	  video interfaces supporting HDMI and eDP, several DDR3 options
7385a3cfb8SKever Yang	  and video codec support. Peripherals include Gigabit Ethernet,
7485a3cfb8SKever Yang	  USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs.
7585a3cfb8SKever Yang
7637a0c600SAndreas Färberconfig ROCKCHIP_RK3368
7737a0c600SAndreas Färber	bool "Support Rockchip RK3368"
7837a0c600SAndreas Färber	select ARM64
795071457eSPhilipp Tomsich	select SUPPORT_SPL
805071457eSPhilipp Tomsich	select SUPPORT_TPL
814cf4378eSPhilipp Tomsich	select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL
824cf4378eSPhilipp Tomsich	select TPL_NEEDS_SEPARATE_STACK if TPL
835071457eSPhilipp Tomsich	imply SPL_SEPARATE_BSS
845071457eSPhilipp Tomsich	imply SPL_SERIAL_SUPPORT
855071457eSPhilipp Tomsich	imply TPL_SERIAL_SUPPORT
865071457eSPhilipp Tomsich	select ENABLE_ARM_SOC_BOOT0_HOOK
875071457eSPhilipp Tomsich	select DEBUG_UART_BOARD_INIT
8837a0c600SAndreas Färber	select SYS_NS16550
8937a0c600SAndreas Färber	help
909a8f009fSPhilipp Tomsich	  The Rockchip RK3368 is a ARM-based SoC with a octa-core (organised
919a8f009fSPhilipp Tomsich	  into a big and little cluster with 4 cores each) Cortex-A53 including
929a8f009fSPhilipp Tomsich	  AdvSIMD, 512KB L2 cache (for the big cluster) and 256 KB L2 cache
939a8f009fSPhilipp Tomsich	  (for the little cluster), PowerVR G6110 based graphics, one video
949a8f009fSPhilipp Tomsich	  output processor supporting LVDS/HDMI/eDP, several DDR3 options and
959a8f009fSPhilipp Tomsich	  video codec support.
969a8f009fSPhilipp Tomsich
979a8f009fSPhilipp Tomsich	  On-chip peripherals include Gigabit Ethernet, USB2 host and OTG, SDIO,
989a8f009fSPhilipp Tomsich	  I2S, UARTs, SPI, I2C and PWMs.
9937a0c600SAndreas Färber
100d9d1242bSPhilipp Tomsichif ROCKCHIP_RK3368
101d9d1242bSPhilipp Tomsich
102d9d1242bSPhilipp Tomsichconfig TPL_LDSCRIPT
103d9d1242bSPhilipp Tomsich	default "arch/arm/mach-rockchip/rk3368/u-boot-tpl.lds"
104d9d1242bSPhilipp Tomsich
1055aa49af3SPhilipp Tomsichconfig TPL_TEXT_BASE
1065aa49af3SPhilipp Tomsich        default 0xff8c1000
1075aa49af3SPhilipp Tomsich
1085aa49af3SPhilipp Tomsichconfig TPL_MAX_SIZE
1095aa49af3SPhilipp Tomsich        default 28672
1105aa49af3SPhilipp Tomsich
1115aa49af3SPhilipp Tomsichconfig TPL_STACK
1125aa49af3SPhilipp Tomsich        default 0xff8cffff
1135aa49af3SPhilipp Tomsich
114d9d1242bSPhilipp Tomsichendif
115d9d1242bSPhilipp Tomsich
116a381bcf5SKever Yangconfig ROCKCHIP_RK3399
117a381bcf5SKever Yang	bool "Support Rockchip RK3399"
118a381bcf5SKever Yang	select ARM64
11966e87cc8SKever Yang	select SUPPORT_SPL
12066e87cc8SKever Yang	select SPL
12166e87cc8SKever Yang	select SPL_SEPARATE_BSS
122c0508e42SPhilipp Tomsich	select SPL_SERIAL_SUPPORT
123c0508e42SPhilipp Tomsich	select SPL_DRIVERS_MISC_SUPPORT
1243d54eabcSPhilipp Tomsich	select ENABLE_ARM_SOC_BOOT0_HOOK
1257ee16de5SPhilipp Tomsich	select DEBUG_UART_BOARD_INIT
126a381bcf5SKever Yang	help
127a381bcf5SKever Yang	  The Rockchip RK3399 is a ARM-based SoC with a dual-core Cortex-A72
128a381bcf5SKever Yang	  and quad-core Cortex-A53.
129a381bcf5SKever Yang	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
130a381bcf5SKever Yang	  video interfaces supporting HDMI and eDP, several DDR3 options
131a381bcf5SKever Yang	  and video codec support. Peripherals include Gigabit Ethernet,
132a381bcf5SKever Yang	  USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs.
133a381bcf5SKever Yang
1342c1e11ddSAndy Yanconfig ROCKCHIP_RV1108
1352c1e11ddSAndy Yan	bool "Support Rockchip RV1108"
1362c1e11ddSAndy Yan	select CPU_V7
1372c1e11ddSAndy Yan	help
1382c1e11ddSAndy Yan	  The Rockchip RV1108 is a ARM-based SoC with a single-core Cortex-A7
1392c1e11ddSAndy Yan	  and a DSP.
1402c1e11ddSAndy Yan
141ee14d29dSPhilipp Tomsichconfig SPL_ROCKCHIP_BACK_TO_BROM
142b47ea792SXu Ziyuan	bool "SPL returns to bootrom"
143b47ea792SXu Ziyuan	default y if ROCKCHIP_RK3036
1441d845947SHeiko Stübner	select ROCKCHIP_BROM_HELPER
145ee14d29dSPhilipp Tomsich	depends on SPL
146ee14d29dSPhilipp Tomsich	help
147ee14d29dSPhilipp Tomsich	  Rockchip SoCs have ability to load SPL & U-Boot binary. If enabled,
148ee14d29dSPhilipp Tomsich          SPL will return to the boot rom, which will then load the U-Boot
149ee14d29dSPhilipp Tomsich          binary to keep going on.
150ee14d29dSPhilipp Tomsich
151ee14d29dSPhilipp Tomsichconfig TPL_ROCKCHIP_BACK_TO_BROM
152ee14d29dSPhilipp Tomsich	bool "TPL returns to bootrom"
153ee14d29dSPhilipp Tomsich	default y if ROCKCHIP_RK3368
154ee14d29dSPhilipp Tomsich	select ROCKCHIP_BROM_HELPER
155ee14d29dSPhilipp Tomsich	depends on TPL
156b47ea792SXu Ziyuan	help
157b47ea792SXu Ziyuan	  Rockchip SoCs have ability to load SPL & U-Boot binary. If enabled,
158b47ea792SXu Ziyuan          SPL will return to the boot rom, which will then load the U-Boot
159b47ea792SXu Ziyuan          binary to keep going on.
160b47ea792SXu Ziyuan
161fa1392a2SKever Yangconfig ROCKCHIP_SPL_RESERVE_IRAM
162fa1392a2SKever Yang	hex "Size of IRAM reserved in SPL"
163fa1392a2SKever Yang	default 0x4000
164fa1392a2SKever Yang	help
165fa1392a2SKever Yang	  SPL may need reserve memory for firmware loaded by SPL, whose load
166fa1392a2SKever Yang	  address is in IRAM and may overlay with SPL text area if not
167fa1392a2SKever Yang	  reserved.
168fa1392a2SKever Yang
1691d845947SHeiko Stübnerconfig ROCKCHIP_BROM_HELPER
1701d845947SHeiko Stübner	bool
1711d845947SHeiko Stübner
172230e0e09SSandy Pattersonconfig SPL_MMC_SUPPORT
173ee14d29dSPhilipp Tomsich	default y if !SPL_ROCKCHIP_BACK_TO_BROM
174230e0e09SSandy Patterson
175f4ee26b1SAndy Yanconfig ROCKCHIP_BLOCK_API
176f4ee26b1SAndy Yan	bool "Rockchip block device api support"
177f4ee26b1SAndy Yan	help
178f4ee26b1SAndy Yan	  This enable read access to block device on
179f4ee26b1SAndy Yan	  rockchip platform.
180f4ee26b1SAndy Yan
181fb11f32bSAndy Yanconfig ROCKCHIP_PARAM
182fb11f32bSAndy Yan	bool "Rockchip parameter support"
183fb11f32bSAndy Yan	depends on ROCKCHIP_BLOCK_API
184fb11f32bSAndy Yan	help
185fb11f32bSAndy Yan	  This enable support to get partition from rockchip
186fb11f32bSAndy Yan	  parameter
187fb11f32bSAndy Yan
188*08dcd37cSAndy Yanconfig ROCKCHIP_RESOURCE_IMAGE
189*08dcd37cSAndy Yan	bool "Enable support for rockchip resource image"
190*08dcd37cSAndy Yan	depends on ROCKCHIP_PARAM
191*08dcd37cSAndy Yan	help
192*08dcd37cSAndy Yan	  This enables support to get dtb or logo files from
193*08dcd37cSAndy Yan	  rockchip resource image format partition.
194*08dcd37cSAndy Yan
195be1d5e03Shuang linsource "arch/arm/mach-rockchip/rk3036/Kconfig"
1960a2be69fSHeiko Stübnersource "arch/arm/mach-rockchip/rk3188/Kconfig"
197b24a8ec1SKever Yangsource "arch/arm/mach-rockchip/rk322x/Kconfig"
198041cdb5fSHeiko Stübnersource "arch/arm/mach-rockchip/rk3288/Kconfig"
19985a3cfb8SKever Yangsource "arch/arm/mach-rockchip/rk3328/Kconfig"
20037a0c600SAndreas Färbersource "arch/arm/mach-rockchip/rk3368/Kconfig"
201a381bcf5SKever Yangsource "arch/arm/mach-rockchip/rk3399/Kconfig"
2022c1e11ddSAndy Yansource "arch/arm/mach-rockchip/rv1108/Kconfig"
2032444dae5SSimon Glassendif
204