1# SPDX-License-Identifier: GPL-2.0-only
2menuconfig ARCH_SUNXI
3	bool "Allwinner SoCs"
4	depends on ARCH_MULTI_V5 || ARCH_MULTI_V7
5	select ARCH_HAS_RESET_CONTROLLER
6	select CLKSRC_MMIO
7	select GENERIC_IRQ_CHIP
8	select GPIOLIB
9	select IRQ_DOMAIN_HIERARCHY
10	select IRQ_FASTEOI_HIERARCHY_HANDLERS
11	select PINCTRL
12	select PM_OPP
13	select SUN4I_TIMER
14	select RESET_CONTROLLER
15	help
16	  Support for Allwinner ARM-based family of processors
17
18if ARCH_SUNXI
19
20if ARCH_MULTI_V7
21
22config MACH_SUN4I
23	bool "Allwinner A10 (sun4i) SoCs support"
24	default ARCH_SUNXI
25
26config MACH_SUN5I
27	bool "Allwinner A10s / A13 (sun5i) SoCs support"
28	default ARCH_SUNXI
29	select SUN5I_HSTIMER
30
31config MACH_SUN6I
32	bool "Allwinner A31 (sun6i) SoCs support"
33	default ARCH_SUNXI
34	select ARM_GIC
35	select MFD_SUN6I_PRCM
36	select SUN5I_HSTIMER
37
38config MACH_SUN7I
39	bool "Allwinner A20 (sun7i) SoCs support"
40	default ARCH_SUNXI
41	select ARM_GIC
42	select ARM_PSCI
43	select ARCH_SUPPORTS_BIG_ENDIAN
44	select HAVE_ARM_ARCH_TIMER
45	select SUN5I_HSTIMER
46
47config MACH_SUN8I
48	bool "Allwinner sun8i Family SoCs support"
49	default ARCH_SUNXI
50	select ARM_GIC
51	select MFD_SUN6I_PRCM
52
53config MACH_SUN9I
54	bool "Allwinner (sun9i) SoCs support"
55	default ARCH_SUNXI
56	select ARM_GIC
57
58config ARCH_SUNXI_MC_SMP
59	bool
60	depends on SMP
61	default MACH_SUN9I || MACH_SUN8I
62	select ARM_CCI400_PORT_CTRL
63	select ARM_CPU_SUSPEND
64
65endif
66
67if ARCH_MULTI_V5
68
69config MACH_SUNIV
70	bool "Allwinner ARMv5 F-series (suniv) SoCs support"
71	default ARCH_SUNXI
72	help
73	  Support for Allwinner suniv ARMv5 SoCs.
74	  (F1C100A, F1C100s, F1C200s, F1C500, F1C600)
75
76endif
77
78endif
79