xref: /rk3399_rockchip-uboot/arch/arm/mach-rockchip/Kconfig (revision de4fa2432c987fd9f99e4fba36cdb768bdfd7475)
1if ARCH_ROCKCHIP
2
3config ROCKCHIP_RK3036
4	bool "Support Rockchip RK3036"
5	select CPU_V7
6	select SUPPORT_SPL
7	select SPL
8	help
9	  The Rockchip RK3036 is a ARM-based SoC with a dual-core Cortex-A7
10	  including NEON and GPU, Mali-400 graphics, several DDR3 options
11	  and video codec support. Peripherals include Gigabit Ethernet,
12	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
13
14config ROCKCHIP_RK3128
15	bool "Support Rockchip RK3128"
16	select CPU_V7
17	help
18	  The Rockchip RK3128 is a ARM-based SoC with a quad-core Cortex-A7
19	  including NEON and GPU, Mali-400 graphics, several DDR3 options
20	  and video codec support. Peripherals include Gigabit Ethernet,
21	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
22
23config ROCKCHIP_RK3188
24	bool "Support Rockchip RK3188"
25	select CPU_V7
26	select SPL_BOARD_INIT if SPL
27	select SUPPORT_SPL
28	select SUPPORT_TPL
29	select SPL
30	select TPL
31	select BOARD_LATE_INIT
32	select ROCKCHIP_BROM_HELPER
33	help
34	  The Rockchip RK3188 is a ARM-based SoC with a quad-core Cortex-A9
35	  including NEON and GPU, 512KB L2 cache, Mali-400 graphics, two
36	  video interfaces, several memory options and video codec support.
37	  Peripherals include Fast Ethernet, USB2 host and OTG, SDIO, I2S,
38	  UART, SPI, I2C and PWMs.
39
40config ROCKCHIP_RK322X
41	bool "Support Rockchip RK3228/RK3229"
42	select CPU_V7
43	select SUPPORT_SPL
44	select SUPPORT_TPL
45	select SPL
46	select TPL
47	select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL
48	select TPL_NEEDS_SEPARATE_STACK if TPL
49	select SPL_DRIVERS_MISC_SUPPORT
50	imply SPL_SERIAL_SUPPORT
51	imply TPL_SERIAL_SUPPORT
52	select ROCKCHIP_BROM_HELPER
53	select DEBUG_UART_BOARD_INIT
54	select TPL_LIBCOMMON_SUPPORT
55	select TPL_LIBGENERIC_SUPPORT
56	select GICV2
57	help
58	  The Rockchip RK3229 is a ARM-based SoC with a dual-core Cortex-A7
59	  including NEON and GPU, Mali-400 graphics, several DDR3 options
60	  and video codec support. Peripherals include Gigabit Ethernet,
61	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
62
63config ROCKCHIP_RK3288
64	bool "Support Rockchip RK3288"
65	select CPU_V7
66	select SPL_BOARD_INIT if SPL
67	select SUPPORT_SPL
68	select SPL
69	select GICV2
70	help
71	  The Rockchip RK3288 is a ARM-based SoC with a quad-core Cortex-A17
72	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
73	  video interfaces supporting HDMI and eDP, several DDR3 options
74	  and video codec support. Peripherals include Gigabit Ethernet,
75	  USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs.
76
77config ROCKCHIP_RK3328
78	bool "Support Rockchip RK3328"
79	select ARM64
80	select GICV2
81	help
82	  The Rockchip RK3328 is a ARM-based SoC with a quad-core Cortex-A53.
83	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
84	  video interfaces supporting HDMI and eDP, several DDR3 options
85	  and video codec support. Peripherals include Gigabit Ethernet,
86	  USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs.
87
88config ROCKCHIP_RK3368
89	bool "Support Rockchip RK3368"
90	select ARM64
91	select SUPPORT_SPL
92	select SUPPORT_TPL
93	select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL
94	select TPL_NEEDS_SEPARATE_STACK if TPL
95	imply SPL_SEPARATE_BSS
96	imply SPL_SERIAL_SUPPORT
97	imply TPL_SERIAL_SUPPORT
98	select ENABLE_ARM_SOC_BOOT0_HOOK
99	select DEBUG_UART_BOARD_INIT
100	select SYS_NS16550
101	select GICV2
102	help
103	  The Rockchip RK3368 is a ARM-based SoC with a octa-core (organised
104	  into a big and little cluster with 4 cores each) Cortex-A53 including
105	  AdvSIMD, 512KB L2 cache (for the big cluster) and 256 KB L2 cache
106	  (for the little cluster), PowerVR G6110 based graphics, one video
107	  output processor supporting LVDS/HDMI/eDP, several DDR3 options and
108	  video codec support.
109
110	  On-chip peripherals include Gigabit Ethernet, USB2 host and OTG, SDIO,
111	  I2S, UARTs, SPI, I2C and PWMs.
112
113if ROCKCHIP_RK3368
114
115config TPL_LDSCRIPT
116	default "arch/arm/mach-rockchip/rk3368/u-boot-tpl.lds"
117
118config TPL_TEXT_BASE
119        default 0xff8c1000
120
121config TPL_MAX_SIZE
122        default 28672
123
124config TPL_STACK
125        default 0xff8cffff
126
127endif
128
129config ROCKCHIP_RK3399
130	bool "Support Rockchip RK3399"
131	select ARM64
132	select SUPPORT_SPL
133	select SPL
134	select SPL_SEPARATE_BSS
135	select SPL_SERIAL_SUPPORT
136	select SPL_DRIVERS_MISC_SUPPORT
137	select ENABLE_ARM_SOC_BOOT0_HOOK
138	select DEBUG_UART_BOARD_INIT
139	select GICV3
140	help
141	  The Rockchip RK3399 is a ARM-based SoC with a dual-core Cortex-A72
142	  and quad-core Cortex-A53.
143	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
144	  video interfaces supporting HDMI and eDP, several DDR3 options
145	  and video codec support. Peripherals include Gigabit Ethernet,
146	  USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs.
147
148config ROCKCHIP_RV1108
149	bool "Support Rockchip RV1108"
150	select CPU_V7
151	help
152	  The Rockchip RV1108 is a ARM-based SoC with a single-core Cortex-A7
153	  and a DSP.
154
155config SPL_ROCKCHIP_BACK_TO_BROM
156	bool "SPL returns to bootrom"
157	default y if ROCKCHIP_RK3036
158	select ROCKCHIP_BROM_HELPER
159	depends on SPL
160	help
161	  Rockchip SoCs have ability to load SPL & U-Boot binary. If enabled,
162          SPL will return to the boot rom, which will then load the U-Boot
163          binary to keep going on.
164
165config TPL_ROCKCHIP_BACK_TO_BROM
166	bool "TPL returns to bootrom"
167	default y if ROCKCHIP_RK3368
168	select ROCKCHIP_BROM_HELPER
169	depends on TPL
170	help
171	  Rockchip SoCs have ability to load SPL & U-Boot binary. If enabled,
172          SPL will return to the boot rom, which will then load the U-Boot
173          binary to keep going on.
174
175config ROCKCHIP_SPL_RESERVE_IRAM
176	hex "Size of IRAM reserved in SPL"
177	default 0x4000
178	help
179	  SPL may need reserve memory for firmware loaded by SPL, whose load
180	  address is in IRAM and may overlay with SPL text area if not
181	  reserved.
182
183config ROCKCHIP_BROM_HELPER
184	bool
185
186config SPL_MMC_SUPPORT
187	default y if !SPL_ROCKCHIP_BACK_TO_BROM
188
189config ROCKCHIP_BLOCK_API
190	bool "Rockchip block device api support"
191	help
192	  This enable read access to block device on
193	  rockchip platform.
194
195config ROCKCHIP_PARAM
196	bool "Rockchip parameter support"
197	depends on ROCKCHIP_BLOCK_API
198	help
199	  This enable support to get partition from rockchip
200	  parameter
201
202config ROCKCHIP_RESOURCE_IMAGE
203	bool "Enable support for rockchip resource image"
204	depends on ROCKCHIP_PARAM
205	help
206	  This enables support to get dtb or logo files from
207	  rockchip resource image format partition.
208
209config ROCKCHIP_PARTITION_BOOT
210	bool "Enable support for booting system from rockchip format partition"
211	depends on ROCKCHIP_RESOURCE_IMAGE
212	help
213	  This enables support for bootimg system from rockchip format partition
214
215config GICV2
216	bool "ARM GICv2"
217
218config GICV3
219	bool "ARM GICv3"
220
221source "arch/arm/mach-rockchip/rk3036/Kconfig"
222source "arch/arm/mach-rockchip/rk3128/Kconfig"
223source "arch/arm/mach-rockchip/rk3188/Kconfig"
224source "arch/arm/mach-rockchip/rk322x/Kconfig"
225source "arch/arm/mach-rockchip/rk3288/Kconfig"
226source "arch/arm/mach-rockchip/rk3328/Kconfig"
227source "arch/arm/mach-rockchip/rk3368/Kconfig"
228source "arch/arm/mach-rockchip/rk3399/Kconfig"
229source "arch/arm/mach-rockchip/rv1108/Kconfig"
230endif
231