xref: /rk3399_rockchip-uboot/arch/arm/mach-rockchip/Kconfig (revision a03ccd5bcc98e007d41e65eac2b0772e112e468e)
12444dae5SSimon Glassif ARCH_ROCKCHIP
22444dae5SSimon Glass
310e73f7bSKever Yangconfig ROCKCHIP_PX30
410e73f7bSKever Yang	bool "Support Rockchip PX30"
56db22b33SJoseph Chen	select ARM64 if !ARM64_BOOT_AARCH32
660848109SJoseph Chen	select GICV2
793f9f019SJoseph Chen	select ARM_SMCCC
8f6d4196eSYouMin Chen	select SUPPORT_SPL
9f6d4196eSYouMin Chen	select SUPPORT_TPL
106db22b33SJoseph Chen	select SPL if !ARM64_BOOT_AARCH32
116db22b33SJoseph Chen	select TPL if !ARM64_BOOT_AARCH32
12f6d4196eSYouMin Chen	select TPL_TINY_FRAMEWORK if TPL
13f6d4196eSYouMin Chen
141024781fSKever Yang	imply SPL_SEPARATE_BSS
15f6d4196eSYouMin Chen	imply SPL_SERIAL_SUPPORT
16f6d4196eSYouMin Chen	imply TPL_SERIAL_SUPPORT
1710e73f7bSKever Yang	help
1810e73f7bSKever Yang	  The Rockchip PX30 is a ARM-based SoC with a quad-core Cortex-A35
1910e73f7bSKever Yang	  including NEON and GPU, Mali-400 graphics, several DDR3 options
2010e73f7bSKever Yang	  and video codec support. Peripherals include Gigabit Ethernet,
2110e73f7bSKever Yang	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
2210e73f7bSKever Yang
23a08ded54SJoseph Chenif ROCKCHIP_PX30
24a08ded54SJoseph Chen
25f6d4196eSYouMin Chenconfig TPL_LDSCRIPT
26f6d4196eSYouMin Chen	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
27f6d4196eSYouMin Chen
28f6d4196eSYouMin Chenconfig TPL_TEXT_BASE
29f6d4196eSYouMin Chen	default 0xff0e1000
30f6d4196eSYouMin Chen
31f6d4196eSYouMin Chenconfig TPL_MAX_SIZE
32f6d4196eSYouMin Chen	default 10240
33f6d4196eSYouMin Chen
34a08ded54SJoseph Chenconfig ROCKCHIP_RK3326
35a08ded54SJoseph Chen	bool "Support Rockchip RK3326 "
36a08ded54SJoseph Chen	help
37a08ded54SJoseph Chen	  RK3326 can use most code from PX30, but at some situations we have
38a08ded54SJoseph Chen	  to distinguish between RK3326 and PX30, so this macro gives help.
39a08ded54SJoseph Chen	  It is usually selected in rk3326 board defconfig.
40a08ded54SJoseph Chenendif
41a08ded54SJoseph Chen
42041cdb5fSHeiko Stübnerconfig ROCKCHIP_RK3036
43041cdb5fSHeiko Stübner	bool "Support Rockchip RK3036"
44041cdb5fSHeiko Stübner	select CPU_V7
45a381bcf5SKever Yang	select SUPPORT_SPL
46cdfcfbccSDavid Wu	select SUPPORT_TPL
47a381bcf5SKever Yang	select SPL
48cdfcfbccSDavid Wu	select TPL
49cdfcfbccSDavid Wu	select BOARD_LATE_INIT
50cdfcfbccSDavid Wu	select ROCKCHIP_BROM_HELPER
51cdfcfbccSDavid Wu	select TPL_NEEDS_SEPARATE_TEXT_BASE if TPL
52cdfcfbccSDavid Wu	select TPL_NEEDS_SEPARATE_STACK if TPL
536ba2d5cbSJoseph Chen	select ARM_SMCCC
54041cdb5fSHeiko Stübner	help
55041cdb5fSHeiko Stübner	  The Rockchip RK3036 is a ARM-based SoC with a dual-core Cortex-A7
56041cdb5fSHeiko Stübner	  including NEON and GPU, Mali-400 graphics, several DDR3 options
57041cdb5fSHeiko Stübner	  and video codec support. Peripherals include Gigabit Ethernet,
58041cdb5fSHeiko Stübner	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
59041cdb5fSHeiko Stübner
606a13bde3SKever Yangconfig ROCKCHIP_RK3128
616a13bde3SKever Yang	bool "Support Rockchip RK3128"
626a13bde3SKever Yang	select CPU_V7
63f3d84b4aSJoseph Chen	select GICV2
64965c1b10SJoseph Chen	select ARM_SMCCC
656a13bde3SKever Yang	help
666a13bde3SKever Yang	  The Rockchip RK3128 is a ARM-based SoC with a quad-core Cortex-A7
676a13bde3SKever Yang	  including NEON and GPU, Mali-400 graphics, several DDR3 options
686a13bde3SKever Yang	  and video codec support. Peripherals include Gigabit Ethernet,
696a13bde3SKever Yang	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
706a13bde3SKever Yang
71e1048023SJoseph Chenif ROCKCHIP_RK3128
72e1048023SJoseph Chen
73e1048023SJoseph Chenconfig ROCKCHIP_RK3126
74e1048023SJoseph Chen	bool "Support Rockchip RK3126 "
75e1048023SJoseph Chen	help
76e1048023SJoseph Chen	  RK3126 can use most code from RK3128, but at some situations we have
77e1048023SJoseph Chen	  to distinguish between RK3126 and RK3128, so this macro gives help.
78e1048023SJoseph Chen	  It is usually selected in rk3126 board defconfig.
79f094cb29SShunqian Zheng
80f094cb29SShunqian Zhengconfig ROCKCHIP_PX3SE
81f094cb29SShunqian Zheng	bool "Support Rockchip PX3SE"
82f094cb29SShunqian Zheng	help
83f094cb29SShunqian Zheng	  PX3SE is a variant of RK3128, it shares codes with RK3128, but we still
84f094cb29SShunqian Zheng	  need this macro to distinguish PX3SE and RK3128.
85e1048023SJoseph Chenendif
86e1048023SJoseph Chen
87578306eaSPaweł Jaroszconfig ROCKCHIP_RK3066
88578306eaSPaweł Jarosz	bool "Support Rockchip RK3066"
89578306eaSPaweł Jarosz	select CPU_V7
90578306eaSPaweł Jarosz	select SUPPORT_SPL
91578306eaSPaweł Jarosz	select SUPPORT_TPL
92578306eaSPaweł Jarosz	select SPL
93578306eaSPaweł Jarosz	select TPL
94578306eaSPaweł Jarosz	select BOARD_LATE_INIT
95578306eaSPaweł Jarosz	select ROCKCHIP_BROM_HELPER
96ffb06671SKever Yang	select SPL_ROCKCHIP_EARLYRETURN_TO_BROM
97578306eaSPaweł Jarosz	help
98578306eaSPaweł Jarosz	  The Rockchip RK3066 is a ARM-based SoC with a dual-core Cortex-A9
99578306eaSPaweł Jarosz	  including NEON and GPU, Mali-400 graphics, several DDR3 options
100578306eaSPaweł Jarosz	  and video codec support. Peripherals include ethernet, USB2 host
101578306eaSPaweł Jarosz	  and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
102578306eaSPaweł Jarosz
1030a2be69fSHeiko Stübnerconfig ROCKCHIP_RK3188
1040a2be69fSHeiko Stübner	bool "Support Rockchip RK3188"
1050a2be69fSHeiko Stübner	select CPU_V7
1060680f1b1SLey Foon Tan	select SPL_BOARD_INIT if SPL
1070a2be69fSHeiko Stübner	select SUPPORT_SPL
1080a2be69fSHeiko Stübner	select SPL
109397403c7SPhilipp Tomsich	select SPL_CLK
110397403c7SPhilipp Tomsich	select SPL_REGMAP
111397403c7SPhilipp Tomsich	select SPL_SYSCON
112397403c7SPhilipp Tomsich	select SPL_RAM
113397403c7SPhilipp Tomsich	select SPL_DRIVERS_MISC_SUPPORT
114885cc66fSPhilipp Tomsich	select SPL_ROCKCHIP_EARLYRETURN_TO_BROM
115008a610bSHeiko Stübner	select BOARD_LATE_INIT
1160a2be69fSHeiko Stübner	select ROCKCHIP_BROM_HELPER
1170a2be69fSHeiko Stübner	help
1180a2be69fSHeiko Stübner	  The Rockchip RK3188 is a ARM-based SoC with a quad-core Cortex-A9
1190a2be69fSHeiko Stübner	  including NEON and GPU, 512KB L2 cache, Mali-400 graphics, two
1200a2be69fSHeiko Stübner	  video interfaces, several memory options and video codec support.
1210a2be69fSHeiko Stübner	  Peripherals include Fast Ethernet, USB2 host and OTG, SDIO, I2S,
1220a2be69fSHeiko Stübner	  UART, SPI, I2C and PWMs.
1230a2be69fSHeiko Stübner
124168eef7aSKever Yangconfig ROCKCHIP_RK322X
125168eef7aSKever Yang	bool "Support Rockchip RK3228/RK3229"
126168eef7aSKever Yang	select CPU_V7
127168eef7aSKever Yang	select SUPPORT_SPL
12806d27531SKever Yang	select SUPPORT_TPL
129168eef7aSKever Yang	select SPL
13006d27531SKever Yang	select TPL
13106d27531SKever Yang	select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL
13206d27531SKever Yang	select TPL_NEEDS_SEPARATE_STACK if TPL
13306d27531SKever Yang	select SPL_DRIVERS_MISC_SUPPORT
13406d27531SKever Yang	imply SPL_SERIAL_SUPPORT
13506d27531SKever Yang	imply TPL_SERIAL_SUPPORT
136168eef7aSKever Yang	select ROCKCHIP_BROM_HELPER
13706d27531SKever Yang	select TPL_LIBCOMMON_SUPPORT
13806d27531SKever Yang	select TPL_LIBGENERIC_SUPPORT
139d1d395d7SJoseph Chen	select GICV2
1406ba2d5cbSJoseph Chen	select ARM_SMCCC
141168eef7aSKever Yang	help
142168eef7aSKever Yang	  The Rockchip RK3229 is a ARM-based SoC with a dual-core Cortex-A7
143168eef7aSKever Yang	  including NEON and GPU, Mali-400 graphics, several DDR3 options
144168eef7aSKever Yang	  and video codec support. Peripherals include Gigabit Ethernet,
145168eef7aSKever Yang	  USB2 host and OTG, SDIO, I2S, UART, SPI, I2C and PWMs.
146168eef7aSKever Yang
147ad9ba815SJoseph Chenif ROCKCHIP_RK322X
148ad9ba815SJoseph Chen
149ad9ba815SJoseph Chenconfig ROCKCHIP_RK3128X
150ad9ba815SJoseph Chen	bool "Support Rockchip RK3128X "
151ad9ba815SJoseph Chen	help
152ad9ba815SJoseph Chen	  RK3128X can use most code from RK322X, but at some situations we have
153ad9ba815SJoseph Chen	  to distinguish between RK3128X and RK322X, so this macro gives help.
154ad9ba815SJoseph Chen	  It is usually selected in RK3128X board defconfig.
155ad9ba815SJoseph Chenendif
156ad9ba815SJoseph Chen
1572444dae5SSimon Glassconfig ROCKCHIP_RK3288
1582444dae5SSimon Glass	bool "Support Rockchip RK3288"
159e0f5dbcbSAndreas Färber	select CPU_V7
1600680f1b1SLey Foon Tan	select SPL_BOARD_INIT if SPL
161a381bcf5SKever Yang	select SUPPORT_SPL
1620adb4998SKever Yang	select SUPPORT_TPL
163a381bcf5SKever Yang	select SPL
1640adb4998SKever Yang	select TPL
1650adb4998SKever Yang	select TPL_NEEDS_SEPARATE_TEXT_BASE if TPL
1660adb4998SKever Yang	select TPL_NEEDS_SEPARATE_STACK if TPL
1670adb4998SKever Yang	imply TPL_SERIAL_SUPPORT
16886a31622SJoseph Chen	select GICV2
1696ba2d5cbSJoseph Chen	select ARM_SMCCC
1703ddbcffeSKever Yang	select SPL_OPTEE
1713ddbcffeSKever Yang	select FIT
1723ddbcffeSKever Yang	select SPL_LOAD_FIT
1730adb4998SKever Yang	select TPL_LIBCOMMON_SUPPORT
1740adb4998SKever Yang	select TPL_LIBGENERIC_SUPPORT
1750adb4998SKever Yang	select TPL_SYS_MALLOC_SIMPLE
1760adb4998SKever Yang	select TPL_BOOTROM_SUPPORT
1770adb4998SKever Yang	select TPL_DRIVERS_MISC_SUPPORT
1780adb4998SKever Yang	select TPL_OF_CONTROL
1790adb4998SKever Yang	select TPL_DM
1800adb4998SKever Yang	select TPL_REGMAP
1810adb4998SKever Yang	select TPL_SYSCON
1820adb4998SKever Yang	select TPL_RAM
1830adb4998SKever Yang	select TPL_CLK
1840adb4998SKever Yang	select TPL_TINY_MEMSET
1852444dae5SSimon Glass	help
1862444dae5SSimon Glass	  The Rockchip RK3288 is a ARM-based SoC with a quad-core Cortex-A17
1872444dae5SSimon Glass	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
1882444dae5SSimon Glass	  video interfaces supporting HDMI and eDP, several DDR3 options
1892444dae5SSimon Glass	  and video codec support. Peripherals include Gigabit Ethernet,
190ef904bf2SAndreas Färber	  USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs.
1912444dae5SSimon Glass
1920adb4998SKever Yangif ROCKCHIP_RK3288
1933ddbcffeSKever Yangconfig SPL_FIT_GENERATOR
1943ddbcffeSKever Yang	default "arch/arm/mach-rockchip/make_fit_optee.sh"
1950adb4998SKever Yang
1960adb4998SKever Yangconfig TPL_LDSCRIPT
1970adb4998SKever Yang	default "arch/arm/mach-rockchip/u-boot-tpl.lds"
1980adb4998SKever Yang
1990adb4998SKever Yangconfig TPL_TEXT_BASE
2000adb4998SKever Yang	default 0xff704000
2010adb4998SKever Yang
2020adb4998SKever Yangconfig TPL_MAX_SIZE
203231617c5SKever Yang	default 32768
2040adb4998SKever Yang
2050adb4998SKever Yangconfig TPL_STACK
2060adb4998SKever Yang	default 0xff718000
2070adb4998SKever Yang
2080adb4998SKever Yangendif
2090adb4998SKever Yang
2103d78ac3eSAndy Yanconfig ROCKCHIP_RK3308
2113d78ac3eSAndy Yan	bool "Support Rockchip RK3308"
212b4bed602SAndy Yan	select ARM64 if !ARM64_BOOT_AARCH32
2136ba2d5cbSJoseph Chen	select ARM_SMCCC
214ba572d7cSJoseph Chen	imply GICV2
215951488b0SAndy Yan	select SUPPORT_SPL if !ARM64_BOOT_AARCH32
216951488b0SAndy Yan	select SUPPORT_TPL if !ARM64_BOOT_AARCH32
217951488b0SAndy Yan	select SPL if !ARM64_BOOT_AARCH32
218951488b0SAndy Yan	select TPL if !ARM64_BOOT_AARCH32
219951488b0SAndy Yan	imply SPL_CLK
220951488b0SAndy Yan	imply SPL_REGMAP
221951488b0SAndy Yan	imply SPL_SYSCON
222951488b0SAndy Yan	imply SPL_RAM
223951488b0SAndy Yan	imply SPL_SERIAL_SUPPORT
224951488b0SAndy Yan	imply TPL_SERIAL_SUPPORT
225951488b0SAndy Yan	imply SPL_SEPARATE_BSS
2263d78ac3eSAndy Yan	help
2273d78ac3eSAndy Yan	  The Rockchip RK3308 is a ARM-based Soc which embeded with quad
2283d78ac3eSAndy Yan	  Cortex-A35 and highly integrated audio interfaces.
2293d78ac3eSAndy Yan
230379e9cabSZhihuan Heif ROCKCHIP_RK3308
231379e9cabSZhihuan He
232379e9cabSZhihuan Heconfig TPL_LDSCRIPT
233379e9cabSZhihuan He	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
234379e9cabSZhihuan He
235379e9cabSZhihuan Heconfig TPL_TEXT_BASE
236379e9cabSZhihuan He	default 0xfff81000
237379e9cabSZhihuan He
238379e9cabSZhihuan Heconfig TPL_MAX_SIZE
239355cdcf3SZhihuan He	default 10240
240379e9cabSZhihuan He
241379e9cabSZhihuan Heconfig TPL_STACK
242379e9cabSZhihuan He	default 0xfff84000
243379e9cabSZhihuan He
244379e9cabSZhihuan Heendif
245379e9cabSZhihuan He
24685a3cfb8SKever Yangconfig ROCKCHIP_RK3328
24785a3cfb8SKever Yang	bool "Support Rockchip RK3328"
24885a3cfb8SKever Yang	select ARM64
24955da6f73SJoseph Chen	select GICV2
250430b0146SKever Yang	select SUPPORT_SPL
251430b0146SKever Yang	select SUPPORT_TPL
252430b0146SKever Yang	select SPL
253430b0146SKever Yang	select TPL
254430b0146SKever Yang	select TPL_NEEDS_SEPARATE_TEXT_BASE if TPL
255430b0146SKever Yang	select TPL_NEEDS_SEPARATE_STACK if TPL
256430b0146SKever Yang	imply SPL_SERIAL_SUPPORT
257430b0146SKever Yang	imply TPL_SERIAL_SUPPORT
258430b0146SKever Yang	imply SPL_SEPARATE_BSS
2596ba2d5cbSJoseph Chen	select ARM_SMCCC
26085a3cfb8SKever Yang	help
26185a3cfb8SKever Yang	  The Rockchip RK3328 is a ARM-based SoC with a quad-core Cortex-A53.
26285a3cfb8SKever Yang	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
26385a3cfb8SKever Yang	  video interfaces supporting HDMI and eDP, several DDR3 options
26485a3cfb8SKever Yang	  and video codec support. Peripherals include Gigabit Ethernet,
26585a3cfb8SKever Yang	  USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs.
26685a3cfb8SKever Yang
267430b0146SKever Yangif ROCKCHIP_RK3328
268430b0146SKever Yang
269430b0146SKever Yangconfig TPL_LDSCRIPT
270430b0146SKever Yang	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
271430b0146SKever Yang
272430b0146SKever Yangconfig TPL_TEXT_BASE
273430b0146SKever Yang        default 0xff091000
274430b0146SKever Yang
275430b0146SKever Yangconfig TPL_MAX_SIZE
276430b0146SKever Yang        default 28672
277430b0146SKever Yang
278430b0146SKever Yangconfig TPL_STACK
279430b0146SKever Yang        default 0xff098000
280430b0146SKever Yang
281430b0146SKever Yangendif
282430b0146SKever Yang
28337a0c600SAndreas Färberconfig ROCKCHIP_RK3368
28437a0c600SAndreas Färber	bool "Support Rockchip RK3368"
28537a0c600SAndreas Färber	select ARM64
2865071457eSPhilipp Tomsich	select SUPPORT_SPL
2875071457eSPhilipp Tomsich	select SUPPORT_TPL
2884cf4378eSPhilipp Tomsich	select TPL_NEEDS_SEPARATE_TEXT_BASE if SPL
2894cf4378eSPhilipp Tomsich	select TPL_NEEDS_SEPARATE_STACK if TPL
2905071457eSPhilipp Tomsich	imply SPL_SEPARATE_BSS
2915071457eSPhilipp Tomsich	imply SPL_SERIAL_SUPPORT
2925071457eSPhilipp Tomsich	imply TPL_SERIAL_SUPPORT
293503f955fSJoseph Chen	select GICV2
2946ba2d5cbSJoseph Chen	select ARM_SMCCC
29537a0c600SAndreas Färber	help
2969a8f009fSPhilipp Tomsich	  The Rockchip RK3368 is a ARM-based SoC with a octa-core (organised
2979a8f009fSPhilipp Tomsich	  into a big and little cluster with 4 cores each) Cortex-A53 including
2989a8f009fSPhilipp Tomsich	  AdvSIMD, 512KB L2 cache (for the big cluster) and 256 KB L2 cache
2999a8f009fSPhilipp Tomsich	  (for the little cluster), PowerVR G6110 based graphics, one video
3009a8f009fSPhilipp Tomsich	  output processor supporting LVDS/HDMI/eDP, several DDR3 options and
3019a8f009fSPhilipp Tomsich	  video codec support.
3029a8f009fSPhilipp Tomsich
3039a8f009fSPhilipp Tomsich	  On-chip peripherals include Gigabit Ethernet, USB2 host and OTG, SDIO,
3049a8f009fSPhilipp Tomsich	  I2S, UARTs, SPI, I2C and PWMs.
30537a0c600SAndreas Färber
306d9d1242bSPhilipp Tomsichif ROCKCHIP_RK3368
307d9d1242bSPhilipp Tomsich
308f67455c9SKever Yangconfig ROCKCHIP_PX5
309f67455c9SKever Yang	bool "Support Rockchip PX5"
310f67455c9SKever Yang	help
311f67455c9SKever Yang	  PX5 is a variant of RK3368, it shares codes with RK3368, but we still
312f67455c9SKever Yang	  need this macro to distinguish PX5 and RK3368.
313f67455c9SKever Yang
314d9d1242bSPhilipp Tomsichconfig TPL_LDSCRIPT
315d9d1242bSPhilipp Tomsich	default "arch/arm/mach-rockchip/rk3368/u-boot-tpl.lds"
316d9d1242bSPhilipp Tomsich
3175aa49af3SPhilipp Tomsichconfig TPL_TEXT_BASE
3185aa49af3SPhilipp Tomsich        default 0xff8c1000
3195aa49af3SPhilipp Tomsich
3205aa49af3SPhilipp Tomsichconfig TPL_MAX_SIZE
3215aa49af3SPhilipp Tomsich        default 28672
3225aa49af3SPhilipp Tomsich
3235aa49af3SPhilipp Tomsichconfig TPL_STACK
3245aa49af3SPhilipp Tomsich        default 0xff8cffff
3255aa49af3SPhilipp Tomsich
326d9d1242bSPhilipp Tomsichendif
327d9d1242bSPhilipp Tomsich
328a381bcf5SKever Yangconfig ROCKCHIP_RK3399
329a381bcf5SKever Yang	bool "Support Rockchip RK3399"
330a381bcf5SKever Yang	select ARM64
33166e87cc8SKever Yang	select SUPPORT_SPL
332c7b9ee6bSKever Yang	select SUPPORT_TPL
33366e87cc8SKever Yang	select SPL
334c7b9ee6bSKever Yang	select TPL
335c7b9ee6bSKever Yang	select TPL_NEEDS_SEPARATE_TEXT_BASE if TPL
336c7b9ee6bSKever Yang	select TPL_NEEDS_SEPARATE_STACK if TPL
337c7b9ee6bSKever Yang	imply TPL_SERIAL_SUPPORT
33866e87cc8SKever Yang	select SPL_SEPARATE_BSS
339c0508e42SPhilipp Tomsich	select SPL_SERIAL_SUPPORT
340c0508e42SPhilipp Tomsich	select SPL_DRIVERS_MISC_SUPPORT
3418f557da1SJoseph Chen	select GICV3
342be55ced3SAndy Yan	select BOARD_LATE_INIT
34347a9f8fcSAndy Yan	select ROCKCHIP_BROM_HELPER
3446ba2d5cbSJoseph Chen	select ARM_SMCCC
345c7b9ee6bSKever Yang	select TPL_LIBCOMMON_SUPPORT
346c7b9ee6bSKever Yang	select TPL_LIBGENERIC_SUPPORT
347c7b9ee6bSKever Yang	select TPL_SYS_MALLOC_SIMPLE
348c7b9ee6bSKever Yang	select TPL_BOOTROM_SUPPORT
349c7b9ee6bSKever Yang	select TPL_DRIVERS_MISC_SUPPORT
350c7b9ee6bSKever Yang	select TPL_OF_CONTROL
351c7b9ee6bSKever Yang	select TPL_DM
352c7b9ee6bSKever Yang	select TPL_REGMAP
353c7b9ee6bSKever Yang	select TPL_SYSCON
354c7b9ee6bSKever Yang	select TPL_RAM
355c7b9ee6bSKever Yang	select TPL_CLK
356c7b9ee6bSKever Yang	select TPL_TINY_MEMSET
357a381bcf5SKever Yang	help
358a381bcf5SKever Yang	  The Rockchip RK3399 is a ARM-based SoC with a dual-core Cortex-A72
359a381bcf5SKever Yang	  and quad-core Cortex-A53.
360a381bcf5SKever Yang	  including NEON and GPU, 1MB L2 cache, Mali-T7 graphics, two
361a381bcf5SKever Yang	  video interfaces supporting HDMI and eDP, several DDR3 options
362a381bcf5SKever Yang	  and video codec support. Peripherals include Gigabit Ethernet,
363a381bcf5SKever Yang	  USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs.
364a381bcf5SKever Yang
365c7b9ee6bSKever Yangif ROCKCHIP_RK3399
366c7b9ee6bSKever Yang
367d60cbc66SJoseph Chenconfig ROCKCHIP_RK3399PRO
368d60cbc66SJoseph Chen	bool "Support Rockchip RK3399Pro"
369d60cbc66SJoseph Chen
370c7b9ee6bSKever Yangconfig TPL_LDSCRIPT
371c7b9ee6bSKever Yang	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
372c7b9ee6bSKever Yang
373c7b9ee6bSKever Yangconfig TPL_TEXT_BASE
374c7b9ee6bSKever Yang        default 0xff8c2000
375c7b9ee6bSKever Yang
376c7b9ee6bSKever Yangconfig TPL_MAX_SIZE
377c7b9ee6bSKever Yang        default 188416
378c7b9ee6bSKever Yang
379c7b9ee6bSKever Yangconfig TPL_STACK
380c7b9ee6bSKever Yang        default 0xff8effff
381c7b9ee6bSKever Yang
382c7b9ee6bSKever Yangendif
383c7b9ee6bSKever Yang
384c6f7c1a3SJoseph Chenconfig ROCKCHIP_RK3528
385c6f7c1a3SJoseph Chen	bool "Support Rockchip RK3528"
386c6f7c1a3SJoseph Chen	select ARM64 if !ARM64_BOOT_AARCH32
387c6f7c1a3SJoseph Chen	select GICV2 if !ARM64_BOOT_AARCH32
388c6f7c1a3SJoseph Chen	select SUPPORT_TPL if !ARM64_BOOT_AARCH32
389c6f7c1a3SJoseph Chen	select SUPPORT_SPL if !ARM64_BOOT_AARCH32
390c6f7c1a3SJoseph Chen	select TPL_TINY_FRAMEWORK if TPL
391c6f7c1a3SJoseph Chen	select DEBUG_UART_BOARD_INIT
392c6f7c1a3SJoseph Chen	imply TPL if !ARM64_BOOT_AARCH32
393c6f7c1a3SJoseph Chen	imply SPL if !ARM64_BOOT_AARCH32
394c6f7c1a3SJoseph Chen	imply TPL_SERIAL_SUPPORT
395c6f7c1a3SJoseph Chen	help
396c6f7c1a3SJoseph Chen	  The Rockchip RK3528 is a ARM-based SoC with a quad-core Cortex-A53.
397c6f7c1a3SJoseph Chen
398c6f7c1a3SJoseph Chenif ROCKCHIP_RK3528
399c6f7c1a3SJoseph Chen
400c6f7c1a3SJoseph Chenconfig TPL_LDSCRIPT
401c6f7c1a3SJoseph Chen	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
402c6f7c1a3SJoseph Chen
403c6f7c1a3SJoseph Chenconfig TPL_TEXT_BASE
404c6f7c1a3SJoseph Chen	default 0xfe481000
405c6f7c1a3SJoseph Chen
406c6f7c1a3SJoseph Chenconfig TPL_MAX_SIZE
407c6f7c1a3SJoseph Chen	default 61440
408c6f7c1a3SJoseph Chen
409c6f7c1a3SJoseph Chenendif
410c6f7c1a3SJoseph Chen
41156f7d184SJoseph Chenconfig ROCKCHIP_RK3562
41256f7d184SJoseph Chen	bool "Support Rockchip RK3562"
41356f7d184SJoseph Chen	select GICV2
41456f7d184SJoseph Chen	select ARM64
41556f7d184SJoseph Chen	select ARM_SMCCC
41656f7d184SJoseph Chen	select SUPPORT_TPL
41756f7d184SJoseph Chen	select SUPPORT_SPL
41856f7d184SJoseph Chen	select TPL_TINY_FRAMEWORK if TPL
41956f7d184SJoseph Chen	select DEBUG_UART_BOARD_INIT
42056f7d184SJoseph Chen	imply TPL
42156f7d184SJoseph Chen	imply SPL
42256f7d184SJoseph Chen	imply TPL_SERIAL_SUPPORT
42356f7d184SJoseph Chen	help
42456f7d184SJoseph Chen	  The Rockchip RK3562 is a ARM-based SoC with a quad-core Cortex-A53.
42556f7d184SJoseph Chen
42656f7d184SJoseph Chenif ROCKCHIP_RK3562
42756f7d184SJoseph Chen
42856f7d184SJoseph Chenconfig TPL_LDSCRIPT
42956f7d184SJoseph Chen	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
43056f7d184SJoseph Chen
43156f7d184SJoseph Chenconfig TPL_TEXT_BASE
43256f7d184SJoseph Chen	default 0xfe481000
43356f7d184SJoseph Chen
43456f7d184SJoseph Chenconfig TPL_MAX_SIZE
43556f7d184SJoseph Chen	default 61440
43656f7d184SJoseph Chen
43756f7d184SJoseph Chenendif
43856f7d184SJoseph Chen
4397e26af38SJoseph Chenconfig ROCKCHIP_RK3568
4407e26af38SJoseph Chen	bool "Support Rockchip RK3568"
441f345af8bSJoseph Chen	select ARM64 if !ARM64_BOOT_AARCH32
442a39ea685SJoseph Chen	select ARM_SMCCC
4435f73fdb1SYifeng Zhao	select GICV3 if !ARM64_BOOT_AARCH32 && !SUPPORT_USBPLUG
444f345af8bSJoseph Chen	select SUPPORT_TPL if !ARM64_BOOT_AARCH32
445f345af8bSJoseph Chen	select SUPPORT_SPL if !ARM64_BOOT_AARCH32
446bc5b1ed8SJoseph Chen	select TPL_TINY_FRAMEWORK if TPL
4477b5df4cdSYouMin Chen	select DEBUG_UART_BOARD_INIT
448f345af8bSJoseph Chen	imply TPL if !ARM64_BOOT_AARCH32
449f345af8bSJoseph Chen	imply SPL if !ARM64_BOOT_AARCH32
450bc5b1ed8SJoseph Chen	imply TPL_SERIAL_SUPPORT
4517e26af38SJoseph Chen	help
4527e26af38SJoseph Chen	  The Rockchip RK3568 is a ARM-based SoC with a quad-core Cortex-A55.
4537e26af38SJoseph Chen
454bc5b1ed8SJoseph Chenif ROCKCHIP_RK3568
455bc5b1ed8SJoseph Chen
456bc5b1ed8SJoseph Chenconfig TPL_LDSCRIPT
457bc5b1ed8SJoseph Chen	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
458bc5b1ed8SJoseph Chen
459bc5b1ed8SJoseph Chenconfig TPL_TEXT_BASE
460bc5b1ed8SJoseph Chen	default 0xfdcc1000
461bc5b1ed8SJoseph Chen
462bc5b1ed8SJoseph Chenconfig TPL_MAX_SIZE
463bc5b1ed8SJoseph Chen	default 61440
464bc5b1ed8SJoseph Chen
465bc5b1ed8SJoseph Chenendif
466bc5b1ed8SJoseph Chen
467e1cfe1c9SJoseph Chenconfig ROCKCHIP_RK3588
468e1cfe1c9SJoseph Chen	bool "Support Rockchip RK3588"
4691f1e8631SJoseph Chen	select ARM64 if !ARM64_BOOT_AARCH32
470e1cfe1c9SJoseph Chen	select ARM_SMCCC
471e1cfe1c9SJoseph Chen	select DEBUG_UART_BOARD_INIT
4721f1e8631SJoseph Chen	select GICV3 if !ARM64_BOOT_AARCH32 && !SUPPORT_USBPLUG
473e1cfe1c9SJoseph Chen	select ROCKCHIP_BROM_HELPER
4741f1e8631SJoseph Chen	select SUPPORT_SPL if !ARM64_BOOT_AARCH32
4751f1e8631SJoseph Chen	select SUPPORT_TPL if !ARM64_BOOT_AARCH32
476e1cfe1c9SJoseph Chen	select TPL_TINY_FRAMEWORK if TPL
4771f1e8631SJoseph Chen	imply TPL if !ARM64_BOOT_AARCH32
4781f1e8631SJoseph Chen	imply SPL if !ARM64_BOOT_AARCH32
479e1cfe1c9SJoseph Chen	imply TPL_SERIAL_SUPPORT
480e1cfe1c9SJoseph Chen	select DEBUG_UART_BOARD_INIT
481e1cfe1c9SJoseph Chen	help
482e1cfe1c9SJoseph Chen	  The Rockchip RK3588 is a ARM-based SoC with a quad-core Cortex-A55.
483e1cfe1c9SJoseph Chen
484e1cfe1c9SJoseph Chenif ROCKCHIP_RK3588
485e1cfe1c9SJoseph Chen
486e1cfe1c9SJoseph Chenconfig TPL_LDSCRIPT
487e1cfe1c9SJoseph Chen	default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
488e1cfe1c9SJoseph Chen
489e1cfe1c9SJoseph Chenconfig TPL_TEXT_BASE
490e1cfe1c9SJoseph Chen	default 0xfdcc1000
491e1cfe1c9SJoseph Chen
492e1cfe1c9SJoseph Chenconfig TPL_MAX_SIZE
493e1cfe1c9SJoseph Chen	default 61440
494e1cfe1c9SJoseph Chenendif
495e1cfe1c9SJoseph Chen
496b8fa3d2aSJoseph Chenconfig ROCKCHIP_RK1808
497b8fa3d2aSJoseph Chen	bool "Support Rockchip RK1808"
498b8fa3d2aSJoseph Chen	select ARM64
499b8fa3d2aSJoseph Chen	select ARM_SMCCC
50073595a32SJoseph Chen	select GICV3 if !COPROCESSOR_RK1808
5013d95740aSJason Zhu	select SUPPORT_SPL if !COPROCESSOR_RK1808
5023d95740aSJason Zhu	select SUPPORT_TPL if !COPROCESSOR_RK1808
503b8fa3d2aSJoseph Chen	help
504b8fa3d2aSJoseph Chen	  The Rockchip RK1808 is a ARM-based Soc which embedded with dual
505b8fa3d2aSJoseph Chen	  Cortex-A35.
506b8fa3d2aSJoseph Chen
5072aa1fe77SJoseph Chenif ROCKCHIP_RK1808
5082aa1fe77SJoseph Chen
509760b0468SJoseph Chenconfig ROCKCHIP_RK1806
510760b0468SJoseph Chen	bool "Support Rockchip RK1806"
511760b0468SJoseph Chen	help
512760b0468SJoseph Chen	  The Rockchip RK1806 is a ARM-based Soc which embedded with dual
513760b0468SJoseph Chen	  Cortex-A35.
514760b0468SJoseph Chen
5152aa1fe77SJoseph Chenconfig COPROCESSOR_RK1808
5162aa1fe77SJoseph Chen	bool "RK1808 coprocessor"
5172aa1fe77SJoseph Chen	help
5182aa1fe77SJoseph Chen	  This indicates the RK1808 is working as a coprocessor for another
5192aa1fe77SJoseph Chen	  more powerful SoC.
5202aa1fe77SJoseph Chen
5212aa1fe77SJoseph Chenendif
5222aa1fe77SJoseph Chen
52304e2aa7fSJoseph Chenconfig ROCKCHIP_RV1106
52404e2aa7fSJoseph Chen	bool "Support Rockchip RV1106"
52504e2aa7fSJoseph Chen	select CPU_V7
52604e2aa7fSJoseph Chen	select DEBUG_UART_BOARD_INIT
52704e2aa7fSJoseph Chen	imply SUPPORT_SPL
52804e2aa7fSJoseph Chen	imply SUPPORT_TPL
52904e2aa7fSJoseph Chen	imply SPL
53004e2aa7fSJoseph Chen	imply TPL
53104e2aa7fSJoseph Chen	imply TPL_SERIAL_SUPPORT
53204e2aa7fSJoseph Chen	imply TPL_TINY_FRAMEWORK if TPL
53304e2aa7fSJoseph Chen	imply BOARD_LATE_INIT
53404e2aa7fSJoseph Chen	imply ROCKCHIP_GPIO_V2
53504e2aa7fSJoseph Chen	help
53604e2aa7fSJoseph Chen	  The Rockchip RV1106 is a ARM-based SoC with a Cortex-A7 and
53704e2aa7fSJoseph Chen	  other modules.
53804e2aa7fSJoseph Chen
53904e2aa7fSJoseph Chenif ROCKCHIP_RV1106
54004e2aa7fSJoseph Chen
54104e2aa7fSJoseph Chenconfig TPL_LDSCRIPT
54204e2aa7fSJoseph Chen	default "arch/arm/mach-rockchip/u-boot-tpl.lds"
54304e2aa7fSJoseph Chen
54404e2aa7fSJoseph Chenconfig TPL_TEXT_BASE
54504e2aa7fSJoseph Chen	default 0xff701000
54604e2aa7fSJoseph Chen
54704e2aa7fSJoseph Chenconfig TPL_MAX_SIZE
54804e2aa7fSJoseph Chen	default 32768
54904e2aa7fSJoseph Chenendif
55004e2aa7fSJoseph Chen
5512c1e11ddSAndy Yanconfig ROCKCHIP_RV1108
5522c1e11ddSAndy Yan	bool "Support Rockchip RV1108"
5532c1e11ddSAndy Yan	select CPU_V7
55452f7b21dSZhihuan He	select SUPPORT_SPL
555491dd334SZhihuan He	select SUPPORT_TPL
55652f7b21dSZhihuan He	select SPL
557491dd334SZhihuan He	select TPL
558dfe03786SAndy Yan	select BOARD_LATE_INIT
5592c1e11ddSAndy Yan	help
5602c1e11ddSAndy Yan	  The Rockchip RV1108 is a ARM-based SoC with a single-core Cortex-A7
5612c1e11ddSAndy Yan	  and a DSP.
5622c1e11ddSAndy Yan
563491dd334SZhihuan Heif ROCKCHIP_RV1108
564491dd334SZhihuan He
565491dd334SZhihuan Heconfig TPL_LDSCRIPT
566491dd334SZhihuan He        default "arch/arm/mach-rockchip/u-boot-tpl.lds"
567491dd334SZhihuan He
568491dd334SZhihuan Heconfig TPL_TEXT_BASE
569491dd334SZhihuan He        default 0x10080800
570491dd334SZhihuan He
571491dd334SZhihuan Heconfig TPL_MAX_SIZE
572491dd334SZhihuan He        default 6144
573491dd334SZhihuan He
574491dd334SZhihuan Heconfig TPL_STACK
575491dd334SZhihuan He        default 0x10082000
576491dd334SZhihuan He
577491dd334SZhihuan Heendif
578491dd334SZhihuan He
579e7c03ac6SJoseph Chenconfig ROCKCHIP_RV1126
580e7c03ac6SJoseph Chen	bool "Support Rockchip RV1126"
5810dc03778SJoseph Chen	select CPU_V7
58241ebb2b6SJoseph Chen	imply SUPPORT_TPL
58341ebb2b6SJoseph Chen	imply SUPPORT_SPL
58441ebb2b6SJoseph Chen	imply TPL_TINY_FRAMEWORK if TPL
585c2d71f78SYouMin Chen	select DEBUG_UART_BOARD_INIT
5861e83a6cbSJoseph Chen	imply TPL
5871e83a6cbSJoseph Chen	imply SPL
5881e83a6cbSJoseph Chen	imply GICV2
5891e83a6cbSJoseph Chen	imply ARM_SMCCC
5901e83a6cbSJoseph Chen	imply BOARD_LATE_INIT
5917c7344b1SJoseph Chen	imply ROCKCHIP_GPIO_V2
592c2d71f78SYouMin Chen	imply TPL_SERIAL_SUPPORT
5930dc03778SJoseph Chen	help
594e7c03ac6SJoseph Chen	  The Rockchip RV1126 is a ARM-based SoC with a quad-core Cortex-A7
5950dc03778SJoseph Chen	  and a risc-v core.
5960dc03778SJoseph Chen
597c2d71f78SYouMin Chenif ROCKCHIP_RV1126
598c2d71f78SYouMin Chen
599c2d71f78SYouMin Chenconfig TPL_LDSCRIPT
600c2d71f78SYouMin Chen	default "arch/arm/mach-rockchip/u-boot-tpl.lds"
601c2d71f78SYouMin Chen
602c2d71f78SYouMin Chenconfig TPL_TEXT_BASE
603c2d71f78SYouMin Chen	default 0xff701000
604c2d71f78SYouMin Chen
605c2d71f78SYouMin Chenconfig TPL_MAX_SIZE
606c2d71f78SYouMin Chen	default 32768
607c2d71f78SYouMin Chenendif
608c2d71f78SYouMin Chen
609ee14d29dSPhilipp Tomsichconfig SPL_ROCKCHIP_BACK_TO_BROM
610b47ea792SXu Ziyuan	bool "SPL returns to bootrom"
611b47ea792SXu Ziyuan	default y if ROCKCHIP_RK3036
6121d845947SHeiko Stübner	select ROCKCHIP_BROM_HELPER
613ee14d29dSPhilipp Tomsich	depends on SPL
614ee14d29dSPhilipp Tomsich	help
615ee14d29dSPhilipp Tomsich	  Rockchip SoCs have ability to load SPL & U-Boot binary. If enabled,
616ee14d29dSPhilipp Tomsich          SPL will return to the boot rom, which will then load the U-Boot
617ee14d29dSPhilipp Tomsich          binary to keep going on.
618ee14d29dSPhilipp Tomsich
619ee14d29dSPhilipp Tomsichconfig TPL_ROCKCHIP_BACK_TO_BROM
620ee14d29dSPhilipp Tomsich	bool "TPL returns to bootrom"
621c7b9ee6bSKever Yang	default y
622ee14d29dSPhilipp Tomsich	select ROCKCHIP_BROM_HELPER
623ee14d29dSPhilipp Tomsich	depends on TPL
624b47ea792SXu Ziyuan	help
625b47ea792SXu Ziyuan	  Rockchip SoCs have ability to load SPL & U-Boot binary. If enabled,
626b47ea792SXu Ziyuan          SPL will return to the boot rom, which will then load the U-Boot
627b47ea792SXu Ziyuan          binary to keep going on.
628b47ea792SXu Ziyuan
629b4bed602SAndy Yanconfig ARM64_BOOT_AARCH32
6308a155fd4SJoseph Chen	bool "Support Boot an ARM64 on AArch32 execution state, ie. U-Boot is in AArch32"
631b4bed602SAndy Yan	select CPU_V7
632b4bed602SAndy Yan	default n
633b4bed602SAndy Yan	help
634b4bed602SAndy Yan	  If you want to boot an ARM64 processor on 32-bit mode, say y here.
635b4bed602SAndy Yan
6368a155fd4SJoseph Chenconfig ARM64_SWITCH_TO_AARCH32
6378a155fd4SJoseph Chen	bool "Support AArch64 U-Boot boot AArch32 kernel"
6388a155fd4SJoseph Chen	default n
6398a155fd4SJoseph Chen	help
6408a155fd4SJoseph Chen	  If you want AArch64 U-Boot to boot AArch32 kernel, say y here.
6418a155fd4SJoseph Chen	  This feature needs ATF to help switch the PE state.
6428a155fd4SJoseph Chen
643be55ced3SAndy Yanconfig ROCKCHIP_BOOT_MODE_REG
644be55ced3SAndy Yan	hex "Rockchip boot mode flag register address"
64510e73f7bSKever Yang	default 0xff010200 if ROCKCHIP_PX30
646be55ced3SAndy Yan	default 0x200081c8 if ROCKCHIP_RK3036
647dd9a11eaSAndy Yan	default 0x100a0038 if ROCKCHIP_RK3128
648be55ced3SAndy Yan	default 0x20004040 if ROCKCHIP_RK3188
649be55ced3SAndy Yan	default 0x110005c8 if ROCKCHIP_RK322X
650be55ced3SAndy Yan	default 0xff730094 if ROCKCHIP_RK3288
6513d78ac3eSAndy Yan	default 0xff000500 if ROCKCHIP_RK3308
6528ec39620SKever Yang	default 0xff1005c8 if ROCKCHIP_RK3328
653be55ced3SAndy Yan	default 0xff738200 if ROCKCHIP_RK3368
654be55ced3SAndy Yan	default 0xff320300 if ROCKCHIP_RK3399
655c6f7c1a3SJoseph Chen	default 0xff370200 if ROCKCHIP_RK3528
65633e416e0SJoseph Chen	default 0xff010220 if ROCKCHIP_RK3562
6577e26af38SJoseph Chen	default 0xfdc20200 if ROCKCHIP_RK3568
6588bcae395SJoseph Chen	default 0xfd588080 if ROCKCHIP_RK3588
659b8fa3d2aSJoseph Chen	default 0xfe020200 if ROCKCHIP_RK1808
66004e2aa7fSJoseph Chen	default 0xff020200 if ROCKCHIP_RV1106
661be55ced3SAndy Yan	default 0x10300580 if ROCKCHIP_RV1108
662e7c03ac6SJoseph Chen	default 0xfe020200 if ROCKCHIP_RV1126
663be55ced3SAndy Yan	default 0
664be55ced3SAndy Yan	help
665be55ced3SAndy Yan	  The Soc will enter to different boot mode(defined in asm/arch/boot_mode.h)
666be55ced3SAndy Yan	  according to the value from this register.
667be55ced3SAndy Yan
668d5ed5c22SKever Yangconfig ROCKCHIP_STIMER_BASE
669d5ed5c22SKever Yang	hex "Rockchip Secure timer base address"
670d5ed5c22SKever Yang	default 0xff220020 if ROCKCHIP_PX30
671d5ed5c22SKever Yang	default 0x200440a0 if ROCKCHIP_RK3036
672d5ed5c22SKever Yang	default 0x2000e000 if ROCKCHIP_RK3066
673d5ed5c22SKever Yang	default 0x20018020 if ROCKCHIP_RK3126
674d5ed5c22SKever Yang	default 0x200440a0 if ROCKCHIP_RK3128
675d5ed5c22SKever Yang	default 0x2000e000 if ROCKCHIP_RK3188
676d5ed5c22SKever Yang	default 0x110d0020 if ROCKCHIP_RK322X
677d5ed5c22SKever Yang	default 0xff810020 if ROCKCHIP_RK3288
678379e9cabSZhihuan He	default 0xff1b00a0 if ROCKCHIP_RK3308
679d5ed5c22SKever Yang	default 0xff1d0020 if ROCKCHIP_RK3328
680d5ed5c22SKever Yang	default 0xff830020 if ROCKCHIP_RK3368
681d5ed5c22SKever Yang	default 0xff8680a0 if ROCKCHIP_RK3399
682c6f7c1a3SJoseph Chen	default 0xff620000 if ROCKCHIP_RK3528
68356f7d184SJoseph Chen	default 0xffa90020 if ROCKCHIP_RK3562
6847e26af38SJoseph Chen	default 0xfdd1c020 if ROCKCHIP_RK3568
685e1cfe1c9SJoseph Chen	default 0xfd8c8000 if ROCKCHIP_RK3588
68604e2aa7fSJoseph Chen	default 0xff590020 if ROCKCHIP_RV1106
687d5ed5c22SKever Yang	default 0x10350020 if ROCKCHIP_RV1108
688e7c03ac6SJoseph Chen	default 0xff670020 if ROCKCHIP_RV1126
689d5ed5c22SKever Yang	default 0
690d5ed5c22SKever Yang	help
691d5ed5c22SKever Yang	  The secure timer inited in SPL/TPL in secure word, ARM generic timer
692d5ed5c22SKever Yang	  works after this timer work.
693d5ed5c22SKever Yang
694e8078e90SKever Yangconfig ROCKCHIP_IRAM_START_ADDR
695e8078e90SKever Yang	hex "Rockchip Secure timer base address"
696e8078e90SKever Yang	default 0xff0e0000 if ROCKCHIP_PX30
697e8078e90SKever Yang	default 0x10080000 if ROCKCHIP_RK3036
698e8078e90SKever Yang	default 0x10080000 if ROCKCHIP_RK3128
699e8078e90SKever Yang	default 0x10080000 if ROCKCHIP_RK3188
700e8078e90SKever Yang	default 0x10080000 if ROCKCHIP_RK322X
701e8078e90SKever Yang	default 0xff700000 if ROCKCHIP_RK3288
702ade6d65fSZhihuan He	default 0xfff80000 if ROCKCHIP_RK3308
703e8078e90SKever Yang	default 0xff091000 if ROCKCHIP_RK3328
704e8078e90SKever Yang	default 0xff8c0000 if ROCKCHIP_RK3368
705e8078e90SKever Yang	default 0xff8c0000 if ROCKCHIP_RK3399
706c6f7c1a3SJoseph Chen	default 0xfe480000 if ROCKCHIP_RK3528
70756f7d184SJoseph Chen	default 0xfe480000 if ROCKCHIP_RK3562
7087e26af38SJoseph Chen	default 0xfdcc0000 if ROCKCHIP_RK3568
709e1cfe1c9SJoseph Chen	default 0xff000000 if ROCKCHIP_RK3588
71004e2aa7fSJoseph Chen	default 0xff6c0000 if ROCKCHIP_RV1106
711e8078e90SKever Yang	default 0x10080000 if ROCKCHIP_RV1108
712e7c03ac6SJoseph Chen	default 0xff700000 if ROCKCHIP_RV1126
713e8078e90SKever Yang	default 0
714e8078e90SKever Yang	help
715e8078e90SKever Yang	  The IRAM start addr is to locate variant of the boot device from
716e8078e90SKever Yang	  bootrom.
717e8078e90SKever Yang
718fa1392a2SKever Yangconfig ROCKCHIP_SPL_RESERVE_IRAM
719fa1392a2SKever Yang	hex "Size of IRAM reserved in SPL"
720b2870221SKever Yang	default 0
721fa1392a2SKever Yang	help
722fa1392a2SKever Yang	  SPL may need reserve memory for firmware loaded by SPL, whose load
723fa1392a2SKever Yang	  address is in IRAM and may overlay with SPL text area if not
724fa1392a2SKever Yang	  reserved.
725fa1392a2SKever Yang
7261d845947SHeiko Stübnerconfig ROCKCHIP_BROM_HELPER
7271d845947SHeiko Stübner	bool
7281d845947SHeiko Stübner
729dff737c4SPhilipp Tomsichconfig SPL_ROCKCHIP_EARLYRETURN_TO_BROM
730dff737c4SPhilipp Tomsich        bool "SPL requires early-return (for RK3188-style BROM) to BROM"
731dff737c4SPhilipp Tomsich	depends on SPL && ENABLE_ARM_SOC_BOOT0_HOOK
732dff737c4SPhilipp Tomsich	help
733dff737c4SPhilipp Tomsich	  Some Rockchip BROM variants (e.g. on the RK3188) load the
734dff737c4SPhilipp Tomsich	  first stage in segments and enter multiple times. E.g. on
735dff737c4SPhilipp Tomsich	  the RK3188, the first 1KB of the first stage are loaded
736dff737c4SPhilipp Tomsich	  first and entered; after returning to the BROM, the
737dff737c4SPhilipp Tomsich	  remainder of the first stage is loaded, but the BROM
738dff737c4SPhilipp Tomsich	  re-enters at the same address/to the same code as previously.
739dff737c4SPhilipp Tomsich
740dff737c4SPhilipp Tomsich	  This enables support code in the BOOT0 hook for the SPL stage
741dff737c4SPhilipp Tomsich	  to allow multiple entries.
742dff737c4SPhilipp Tomsich
743dff737c4SPhilipp Tomsichconfig TPL_ROCKCHIP_EARLYRETURN_TO_BROM
744dff737c4SPhilipp Tomsich        bool "TPL requires early-return (for RK3188-style BROM) to BROM"
745dff737c4SPhilipp Tomsich	depends on TPL && ENABLE_ARM_SOC_BOOT0_HOOK
746dff737c4SPhilipp Tomsich	help
747dff737c4SPhilipp Tomsich	  Some Rockchip BROM variants (e.g. on the RK3188) load the
748dff737c4SPhilipp Tomsich	  first stage in segments and enter multiple times. E.g. on
749dff737c4SPhilipp Tomsich	  the RK3188, the first 1KB of the first stage are loaded
750dff737c4SPhilipp Tomsich	  first and entered; after returning to the BROM, the
751dff737c4SPhilipp Tomsich	  remainder of the first stage is loaded, but the BROM
752dff737c4SPhilipp Tomsich	  re-enters at the same address/to the same code as previously.
753dff737c4SPhilipp Tomsich
754dff737c4SPhilipp Tomsich	  This enables support code in the BOOT0 hook for the TPL stage
755dff737c4SPhilipp Tomsich	  to allow multiple entries.
756dff737c4SPhilipp Tomsich
757230e0e09SSandy Pattersonconfig SPL_MMC_SUPPORT
758f6fef99aSZiyuan Xu	default y if !SPL_ROCKCHIP_BACK_TO_BROM && MMC
759230e0e09SSandy Patterson
76006621a79SKever Yangconfig RKIMG_BOOTLOADER
761aa1eec08SJoseph Chen	bool "Support for Rockchip platform features"
762aa1eec08SJoseph Chen	default y
76306621a79SKever Yang	help
764aa1eec08SJoseph Chen	  Actually this is a compatible configure for code compilation.
76506621a79SKever Yang
766a7774f59SZhangbin Tongconfig RKIMG_ANDROID_BOOTMODE_LEGACY
767a7774f59SZhangbin Tong	bool "Support set androidboot.mode with legacy rule"
768a7774f59SZhangbin Tong	depends on RKIMG_BOOTLOADER
769a7774f59SZhangbin Tong	default n
770a7774f59SZhangbin Tong	help
771a7774f59SZhangbin Tong	  Rockchip set "androidboot.mode=" as "charger" or boot media for android,
772a7774f59SZhangbin Tong	  which is a rockchip private solution(SDK < 8.1) and deprecated.
773a7774f59SZhangbin Tong
7745029b474SJoseph Chenconfig ROCKCHIP_BOOTDEV
7755029b474SJoseph Chen	string "Set the boot device for multiple storage board"
7765029b474SJoseph Chen	default ""
7775029b474SJoseph Chen	help
7785029b474SJoseph Chen	  On the multiple storage on board, set this to determine what we really
7795029b474SJoseph Chen	  want to be the boot device, which contains kernel, rootfs and etc.
7805029b474SJoseph Chen	  Fall through to get from preloader or scan list when it's NULL.
7815029b474SJoseph Chen
78208dcd37cSAndy Yanconfig ROCKCHIP_RESOURCE_IMAGE
78308dcd37cSAndy Yan	bool "Enable support for rockchip resource image"
784a12bbc34SJason Zhu	depends on RKIMG_BOOTLOADER
785aae0febbSJoseph Chen	default y
78608dcd37cSAndy Yan	help
78708dcd37cSAndy Yan	  This enables support to get dtb or logo files from
78808dcd37cSAndy Yan	  rockchip resource image format partition.
78908dcd37cSAndy Yan
790e0cee412SJoseph Chenconfig ROCKCHIP_DTB_VERIFY
791e0cee412SJoseph Chen	bool "Enable hash verify for DTB in the resource file"
792e0cee412SJoseph Chen	depends on ROCKCHIP_RESOURCE_IMAGE
793e0cee412SJoseph Chen	select SHA1 if !DM_CRYPTO
794e0cee412SJoseph Chen	select SHA256 if !DM_CRYPTO
795e0cee412SJoseph Chen	default y
796e0cee412SJoseph Chen	help
797e0cee412SJoseph Chen	  This enables the hash verify for DTB in the resource file, it means we
798e0cee412SJoseph Chen	  always read DTB from second position even the DTB position is present.
799e0cee412SJoseph Chen
8000ed06f16SJoseph Chenconfig ROCKCHIP_USB_BOOT
8010ed06f16SJoseph Chen	bool "Enable support for rockchip U-disk boot"
8020ed06f16SJoseph Chen	depends on USB
8030ed06f16SJoseph Chen	default n
8040ed06f16SJoseph Chen	help
8050ed06f16SJoseph Chen	  This enables support for rockchip U-disk boot.
8060ed06f16SJoseph Chen
807059c50acSJoseph Chenconfig ROCKCHIP_FIT_IMAGE
808059c50acSJoseph Chen	bool "Enable support for FIT image"
80901c76730SJoseph Chen	depends on FIT
810059c50acSJoseph Chen	select CMD_BOOT_FIT
811059c50acSJoseph Chen	default n
812059c50acSJoseph Chen	help
813059c50acSJoseph Chen	  This enables loading dtb from fit image.
814059c50acSJoseph Chen
815191c6877SJoseph Chenconfig ROCKCHIP_UIMAGE
816191c6877SJoseph Chen	bool "Enable support for legacy uImage"
817191c6877SJoseph Chen	depends on !FIT_SIGNATURE && USING_KERNEL_DTB
818191c6877SJoseph Chen	select CMD_BOOT_UIMAGE
819191c6877SJoseph Chen	default n
820191c6877SJoseph Chen	help
821191c6877SJoseph Chen	  This enables loading dtb from uImage image.
822191c6877SJoseph Chen
823a0ceee92SJoseph Chenconfig ROCKCHIP_EARLY_DISTRO_DTB
824a0ceee92SJoseph Chen	bool "Enable support for distro dtb early"
825bc4ccd53SJoseph Chen	depends on DISTRO_DEFAULTS && USING_KERNEL_DTB && CMD_FS_GENERIC
826a0ceee92SJoseph Chen	default n
827a0ceee92SJoseph Chen	help
828a0ceee92SJoseph Chen	  This enables loading dtb from distro bootable partition when there
829a0ceee92SJoseph Chen	  is no valid dtb in android boot.img and rockchip resource.img.
830a0ceee92SJoseph Chen
831a0ceee92SJoseph Chenif ROCKCHIP_EARLY_DISTRO_DTB
832a0ceee92SJoseph Chen
833a0ceee92SJoseph Chenconfig ROCKCHIP_EARLY_DISTRO_DTB_PATH
834a0ceee92SJoseph Chen	string "/rk-kernel.dtb"
835a0ceee92SJoseph Chen	help
836a0ceee92SJoseph Chen	  "DTB file path in the bootable partition image"
837a0ceee92SJoseph Chenendif
838a0ceee92SJoseph Chen
839ca6fb291SJoseph Chenconfig ROCKCHIP_HWID_DTB
840ca6fb291SJoseph Chen	bool "Enable support for selecting DTB by hardware id"
841ca6fb291SJoseph Chen	depends on ROCKCHIP_RESOURCE_IMAGE
842ca6fb291SJoseph Chen	default n
843ca6fb291SJoseph Chen	help
844ca6fb291SJoseph Chen	  This enables select the expected DTB from sets by hardware id,
845ca6fb291SJoseph Chen	  i.e. GPIO or ADC value.
846ca6fb291SJoseph Chen
84791441457Sfrancis.fanconfig ROCKCHIP_VENDOR_PARTITION
8485bd6dc27SKever Yang	bool "Rockchip vendor storage partition support"
8495bd6dc27SKever Yang	depends on RKIMG_BOOTLOADER
85091441457Sfrancis.fan	help
85191441457Sfrancis.fan	  This enable support to read/write vendor configuration data from/to
8525bd6dc27SKever Yang	  this partition.
85391441457Sfrancis.fan
854f8aaa2c2SKever Yangconfig USING_KERNEL_DTB
855f8aaa2c2SKever Yang	bool "Using dtb from Kernel/resource for U-Boot"
856f8aaa2c2SKever Yang	depends on RKIMG_BOOTLOADER && OF_LIVE
857f8aaa2c2SKever Yang	default y
858f8aaa2c2SKever Yang	help
859f8aaa2c2SKever Yang	  This enable support to read dtb from resource and use it for U-Boot,
860f8aaa2c2SKever Yang	  the uart and emmc will still using U-Boot dtb, but other devices like
861f8aaa2c2SKever Yang	  regulator/pmic, display, usb will use dts node from kernel.
862f8aaa2c2SKever Yang
86395eb462eSJoseph Chenconfig USING_KERNEL_DTB_V2
86495eb462eSJoseph Chen	bool "Version 2 of kernel dtb mechanism"
86595eb462eSJoseph Chen	depends on USING_KERNEL_DTB
86695eb462eSJoseph Chen	default n
86795eb462eSJoseph Chen	help
86895eb462eSJoseph Chen	  The V2 mechanism:
86995eb462eSJoseph Chen	    - both of U-Boot and kernel's *ALL* devices are exist in dm tree.
87095eb462eSJoseph Chen	    - put the necessary U-Boot devices in the head of device uclass list.
87195eb462eSJoseph Chen	    - the both existence policy don't require phandle fixup any more.
87295eb462eSJoseph Chen	    - it is for the next generation(rk3588 ...) or necessary platforms.
87395eb462eSJoseph Chen	  The V1 mechanism(legacy):
87495eb462eSJoseph Chen	    - U-Boot: only some necessary U-Boot devices(storage, crypto...) in dm tree.
87595eb462eSJoseph Chen	    - kernel: all the devices(except the U-Boot only) in dm tree.
87695eb462eSJoseph Chen
87703781805SJoseph Chenconfig EMBED_KERNEL_DTB_PATH
878abfd1c5eSJoseph Chen	string "Embeded kernel dtb file path"
879abfd1c5eSJoseph Chen	depends on USING_KERNEL_DTB
880abfd1c5eSJoseph Chen	default "dts/kern.dtb"
88103781805SJoseph Chen	help
88203781805SJoseph Chen	  This file will auto be appended to the u-boot.bin.
88303781805SJoseph Chen
88403781805SJoseph Chenconfig EMBED_KERNEL_DTB_ALWAYS
88503781805SJoseph Chen	bool "Always using embed kernel dtb"
88603781805SJoseph Chen	depends on USING_KERNEL_DTB
88703781805SJoseph Chen	default n
88803781805SJoseph Chen	help
88903781805SJoseph Chen	  Allow fallback to always use a prepared kernel dtb even USING_KERNEL_DTB
89003781805SJoseph Chen	  is set. This makes U-Boot stage more stable but not flexible any more to
89103781805SJoseph Chen	  compatible different boards.
892abfd1c5eSJoseph Chen
893882c7251SJoseph Chenconfig ROCKCHIP_CRC
894882c7251SJoseph Chen	bool "Rockchip CRC verify images"
895882c7251SJoseph Chen	help
896882c7251SJoseph Chen	  This enable support Rockchip CRC verify images. It takes a lot of time,
897882c7251SJoseph Chen	  so it is better only used for debug.
898882c7251SJoseph Chen
899f270a3f8SJoseph Chenconfig ROCKCHIP_SMCCC
900f270a3f8SJoseph Chen	bool "Rockchip SMCCC"
901f270a3f8SJoseph Chen	default y if ARM_SMCCC
902f270a3f8SJoseph Chen	help
903f270a3f8SJoseph Chen	  This enable support for Rockchip SMC calls
904f270a3f8SJoseph Chen
905c563adc7SJoseph Chenconfig ROCKCHIP_DEBUGGER
906c563adc7SJoseph Chen	bool "Rockchip debugger"
907c563adc7SJoseph Chen	depends on IRQ
908c563adc7SJoseph Chen	help
909c563adc7SJoseph Chen	  This enable support for Rockchip debugger. Now we install a timer interrupt
910c563adc7SJoseph Chen	  and dump pt_regs when the timeout event trigger. This helps us to know cpu
911c563adc7SJoseph Chen	  state when system hang.
912c563adc7SJoseph Chen
91324cd8f36SJoseph Chenconfig ROCKCHIP_CRASH_DUMP
91424cd8f36SJoseph Chen	bool "Rockchip crash dump registers"
91524cd8f36SJoseph Chen	help
91624cd8f36SJoseph Chen	  This enable dump registers when system crash, the registers you would like
91724cd8f36SJoseph Chen	  to dump can be added in show_regs().
91824cd8f36SJoseph Chen
919dc490422SJoseph Chenconfig ROCKCHIP_PRELOADER_ATAGS
920dc490422SJoseph Chen	bool "Rockchip pre-loader atags"
921dc490422SJoseph Chen	default y if ARCH_ROCKCHIP
922dc490422SJoseph Chen	help
923dc490422SJoseph Chen	  This enable support Rockchip atags among pre-loaders, i.e. ddr, miniloader, ATF,
924dc490422SJoseph Chen	  tos, U-Boot, etc. It delivers boot and configure information, shared with pre-loaders
925dc490422SJoseph Chen	  and finally ends with U-Boot.
926dc490422SJoseph Chen
92748201c4cSJason Zhuconfig ROCKCHIP_META
92848201c4cSJason Zhu	bool "Rockchip Meta"
92948201c4cSJason Zhu	depends on SPL_KERNEL_BOOT && SPL_LIBDISK_SUPPORT
93048201c4cSJason Zhu	help
93148201c4cSJason Zhu	  This support to load Rockchip meta data which like isp parameter, peripheral
93248201c4cSJason Zhu	  parameters, etc.
93348201c4cSJason Zhu
934064eb493SJoseph Chenconfig ROCKCHIP_PRELOADER_SERIAL
935064eb493SJoseph Chen	bool "Rockchip pre-loader serial"
936064eb493SJoseph Chen	default y if ROCKCHIP_PRELOADER_ATAGS
937064eb493SJoseph Chen	help
938064eb493SJoseph Chen	  This enable U-Boot using pre-loader atags serial configure to initialize console.
939064eb493SJoseph Chen	  It denpends on serial aliases to find pre-loader serial number.
940064eb493SJoseph Chen
941c58c68c9SJoseph Chenconfig ROCKCHIP_IMAGE_TINY
942c58c68c9SJoseph Chen	bool "Rockchip tiny Image generation"
943c58c68c9SJoseph Chen	default n
944c58c68c9SJoseph Chen	help
945c58c68c9SJoseph Chen	  This enable tiny image generation
946c58c68c9SJoseph Chen
947b9e68cc3SJoseph Chenconfig ROCKCHIP_FIT_IMAGE_PACK
948b9e68cc3SJoseph Chen	bool "Rockchip fit image pack of U-Boot and TEE"
9491392e218SJoseph Chen	depends on ROCKCHIP_FIT_IMAGE
950b9e68cc3SJoseph Chen	default n
951b9e68cc3SJoseph Chen	help
952b9e68cc3SJoseph Chen	  This enable fit image pack of U-Boot and TEE, it's used for make.sh script.
953b9e68cc3SJoseph Chen
9549994e220SYouMin Chenconfig ROCKCHIP_UART_MUX_SEL_M
9559994e220SYouMin Chen	int "UART mux select"
9569994e220SYouMin Chen	default 0
9579994e220SYouMin Chen	depends on TPL
9589994e220SYouMin Chen	help
9599994e220SYouMin Chen	  This select uart multiplexer for debug uart iomux in board_debug_uart_init.
9609994e220SYouMin Chen
961a225402cSJoseph Chenconfig ROCKCHIP_REBOOT_TEST
962a225402cSJoseph Chen	bool "Rockchip reboot stress test before kernel"
963a225402cSJoseph Chen	default n
964a225402cSJoseph Chen	help
965a225402cSJoseph Chen	  It's a reboot stress test before kernel stages.
966a225402cSJoseph Chen
96761507290SJoseph Chenconfig ROCKCHIP_NEW_IDB
96861507290SJoseph Chen	bool "Rockchip new IDB header"
96961507290SJoseph Chen	default n
97061507290SJoseph Chen	help
97161507290SJoseph Chen	  The new IDB header was introduced from RK356X.
97261507290SJoseph Chen
973a0b23d9cSJoseph Chenconfig ROCKCHIP_HOTKEY
974a0b23d9cSJoseph Chen	bool "Rockchip hotkey"
975a0b23d9cSJoseph Chen	default y
976a0b23d9cSJoseph Chen	help
977a0b23d9cSJoseph Chen	  Define a lot of hotkeys for debug.
978a0b23d9cSJoseph Chen
979*a03ccd5bSJoseph Chenconfig ROCKCHIP_CMD
980*a03ccd5bSJoseph Chen	string "Rockchip specific command"
981*a03ccd5bSJoseph Chen	default ""
982*a03ccd5bSJoseph Chen	help
983*a03ccd5bSJoseph Chen	  It defines a command to be run when the key is pressed if assigned.
984*a03ccd5bSJoseph Chen	  String format: "cmd key".
985*a03ccd5bSJoseph Chen	  @cmd: any U-Boot cmd.
986*a03ccd5bSJoseph Chen	  @key: any key map id, '-' standard for ignore.
987*a03ccd5bSJoseph Chen	  e.g. "sd_update 115", 115 is KEY_VOLUMEUP.
988*a03ccd5bSJoseph Chen
989a93252dfSJoseph Chenconfig GICV2
990a93252dfSJoseph Chen	bool "ARM GICv2"
991a93252dfSJoseph Chen
992a93252dfSJoseph Chenconfig GICV3
993a93252dfSJoseph Chen	bool "ARM GICv3"
994a93252dfSJoseph Chen
9955f10b846SYifeng Zhaoconfig ROCKCHIP_EMMC_IOMUX
9965f10b846SYifeng Zhao	bool "ROCKCHIP EMMC IOMUX"
9975f10b846SYifeng Zhao	default n
9985f10b846SYifeng Zhao	help
9995f10b846SYifeng Zhao	  This enable U-Boot to config EMMC iomux.
10005f10b846SYifeng Zhao
10015f10b846SYifeng Zhaoconfig ROCKCHIP_NAND_IOMUX
10025f10b846SYifeng Zhao	bool "ROCKCHIP NAND IOMUX"
10035f10b846SYifeng Zhao	default n
10045f10b846SYifeng Zhao	help
10055f10b846SYifeng Zhao	  This enable U-Boot to config NAND iomux.
10065f10b846SYifeng Zhao
10075f10b846SYifeng Zhaoconfig ROCKCHIP_SFC_IOMUX
10085f10b846SYifeng Zhao	bool "ROCKCHIP SFC IOMUX"
10095f10b846SYifeng Zhao	default n
10105f10b846SYifeng Zhao	help
10115f10b846SYifeng Zhao	  This enable U-Boot to config SFC iomux.
10125f10b846SYifeng Zhao
1013c9a034c4SJoseph Chenconfig ROCKCHIP_SET_SN
1014c9a034c4SJoseph Chen	bool "Rockchip set serial number"
1015c9a034c4SJoseph Chen	default y
1016c9a034c4SJoseph Chen
1017c9a034c4SJoseph Chenconfig ROCKCHIP_SET_ETHADDR
1018c9a034c4SJoseph Chen	bool "Rockchip set eth address"
1019c9a034c4SJoseph Chen	default y
1020c9a034c4SJoseph Chen
1021c6d55e4aSJoseph Chenconfig BASE_DEFCONFIG
1022c6d55e4aSJoseph Chen	string "Base defconfig of config fragment"
1023c6d55e4aSJoseph Chen	default ""
1024c6d55e4aSJoseph Chen	help
1025c6d55e4aSJoseph Chen	  Indicate the base defconfig of config fragment.
1026c6d55e4aSJoseph Chen
1027c6d55e4aSJoseph Chenconfig CHIP_NAME
1028c6d55e4aSJoseph Chen	string "Chip label name"
1029c6d55e4aSJoseph Chen	default ""
1030c6d55e4aSJoseph Chen
1031c6d55e4aSJoseph Chenconfig LOADER_INI
1032c6d55e4aSJoseph Chen	string "Name of Loader ini file in rkbin repository"
1033c6d55e4aSJoseph Chen	default ""
1034c6d55e4aSJoseph Chen	help
1035c6d55e4aSJoseph Chen	  The ini file is used to pack loader image.
1036c6d55e4aSJoseph Chen
1037c6d55e4aSJoseph Chenconfig TRUST_INI
1038c6d55e4aSJoseph Chen	string "Name of Trust ini file in rkbin repository"
1039c6d55e4aSJoseph Chen	default ""
1040c6d55e4aSJoseph Chen	help
1041c6d55e4aSJoseph Chen	  The ini file is used to pack trust image.
1042c6d55e4aSJoseph Chen
1043b2d5967aSJoseph Chenif !ROCKCHIP_FIT_IMAGE_PACK
1044c6d55e4aSJoseph Chenconfig UBOOT_SIZE_KB
1045c6d55e4aSJoseph Chen	int "Per u-boot.bin Image size, unit: KB"
1046c6d55e4aSJoseph Chen	default 1024
1047c6d55e4aSJoseph Chen
1048c6d55e4aSJoseph Chenconfig UBOOT_NUM
1049c6d55e4aSJoseph Chen	int "Number of u-boot.bin image being packed into trust.img"
1050c6d55e4aSJoseph Chen	default 4
1051c6d55e4aSJoseph Chen
1052c6d55e4aSJoseph Chenconfig TRUST_SIZE_KB
1053c6d55e4aSJoseph Chen	int "Per trust Image size, unit: KB"
1054c6d55e4aSJoseph Chen	default 2048
1055c6d55e4aSJoseph Chen
1056c6d55e4aSJoseph Chenconfig TRUST_NUM
1057c6d55e4aSJoseph Chen	int "Number of trust image being packed into trust.img"
1058c6d55e4aSJoseph Chen	default 2
1059c6d55e4aSJoseph Chen
1060c6d55e4aSJoseph Chenconfig TRUST_RSA_MODE
1061c6d55e4aSJoseph Chen	int "RSA mode of trust.img on ARM64"
1062c6d55e4aSJoseph Chen	default 2
1063c6d55e4aSJoseph Chen	help
1064c6d55e4aSJoseph Chen	  The RSA mode for tools to pack, the mode id can be:
1065c6d55e4aSJoseph Chen	  0: none; 1: RSA-1024; 2: RSA-2048; 3: RSA-2048-pss.
1066c6d55e4aSJoseph Chen
1067c6d55e4aSJoseph Chenconfig TRUST_SHA_MODE
1068c6d55e4aSJoseph Chen	int "SHA mode of trust.img on ARM64"
1069c6d55e4aSJoseph Chen	default 3
1070c6d55e4aSJoseph Chen	help
1071c6d55e4aSJoseph Chen	  The SHA mode for tools to pack, the mode id can be:
1072c6d55e4aSJoseph Chen	  0: none; 1: sha1; 2: sha256 RK big endian; 3: sha256 little endian.
1073b2d5967aSJoseph Chenendif
1074c6d55e4aSJoseph Chen
1075ad771a9cSHuibin Hongconfig PSTORE
1076ad771a9cSHuibin Hong	bool "Print log to linux pstore buffer"
1077ad771a9cSHuibin Hong	default n
1078ad771a9cSHuibin Hong	help
1079ad771a9cSHuibin Hong	  This enable Print uboot log to linux pstore buffer which address
1080ad771a9cSHuibin Hong	  is default 0x110000 for most soc.
1081ad771a9cSHuibin Hong
1082ad771a9cSHuibin Hongconfig PERSISTENT_RAM_ADDR
1083ad771a9cSHuibin Hong	hex "Linux pstore buffer address"
1084ad771a9cSHuibin Hong	default 0x0
1085ad771a9cSHuibin Hong	depends on PSTORE
1086ad771a9cSHuibin Hong	help
10870a7aeeb2SJoseph Chen	  This select linux pstore buffer address for U-Boot. When value is
10880a7aeeb2SJoseph Chen	  0, U-Boot auto gets this address from preloader atags.
1089ad771a9cSHuibin Hong
1090ad771a9cSHuibin Hongconfig PERSISTENT_RAM_SIZE
1091ad771a9cSHuibin Hong	hex "Linux pstore buffer size"
1092ad771a9cSHuibin Hong	default 0x0
10930a7aeeb2SJoseph Chen	depends on (PERSISTENT_RAM_ADDR != 0)
1094ad771a9cSHuibin Hong	help
10950a7aeeb2SJoseph Chen	  This select linux pstore buffer size for U-Boot, the value must be
10960a7aeeb2SJoseph Chen	  set if PERSISTENT_RAM_ADDR != 0.
1097ad771a9cSHuibin Hong
1098448a4b38SKever Yangsource "arch/arm/mach-rockchip/px30/Kconfig"
1099be1d5e03Shuang linsource "arch/arm/mach-rockchip/rk3036/Kconfig"
1100578306eaSPaweł Jaroszsource "arch/arm/mach-rockchip/rk3066/Kconfig"
11016a13bde3SKever Yangsource "arch/arm/mach-rockchip/rk3128/Kconfig"
11020a2be69fSHeiko Stübnersource "arch/arm/mach-rockchip/rk3188/Kconfig"
1103b24a8ec1SKever Yangsource "arch/arm/mach-rockchip/rk322x/Kconfig"
1104041cdb5fSHeiko Stübnersource "arch/arm/mach-rockchip/rk3288/Kconfig"
1105c1e43163SAndy Yansource "arch/arm/mach-rockchip/rk3308/Kconfig"
110685a3cfb8SKever Yangsource "arch/arm/mach-rockchip/rk3328/Kconfig"
110737a0c600SAndreas Färbersource "arch/arm/mach-rockchip/rk3368/Kconfig"
1108a381bcf5SKever Yangsource "arch/arm/mach-rockchip/rk3399/Kconfig"
1109c6f7c1a3SJoseph Chensource "arch/arm/mach-rockchip/rk3528/Kconfig"
111056f7d184SJoseph Chensource "arch/arm/mach-rockchip/rk3562/Kconfig"
11117e26af38SJoseph Chensource "arch/arm/mach-rockchip/rk3568/Kconfig"
1112e1cfe1c9SJoseph Chensource "arch/arm/mach-rockchip/rk3588/Kconfig"
11138870d6b7SJoseph Chensource "arch/arm/mach-rockchip/rk1808/Kconfig"
111404e2aa7fSJoseph Chensource "arch/arm/mach-rockchip/rv1106/Kconfig"
11152c1e11ddSAndy Yansource "arch/arm/mach-rockchip/rv1108/Kconfig"
1116e7c03ac6SJoseph Chensource "arch/arm/mach-rockchip/rv1126/Kconfig"
11170dc03778SJoseph Chen
11182444dae5SSimon Glassendif
1119