1# SPDX-License-Identifier: GPL-2.0-only
2if ARCH_SUNXI
3
4config PINCTRL_SUNXI
5	bool
6	select PINMUX
7	select GENERIC_PINCONF
8	select GPIOLIB
9
10config PINCTRL_SUNIV_F1C100S
11	def_bool MACH_SUNIV
12	select PINCTRL_SUNXI
13
14config PINCTRL_SUN4I_A10
15	bool "Support for the Allwinner A10, A20 and R40 PIO"
16	default MACH_SUN4I || MACH_SUN7I || MACH_SUN8I
17	select PINCTRL_SUNXI
18
19config PINCTRL_SUN5I
20	bool "Support for the Allwinner A10s, A13, R8 and NextThing GR8 PIO"
21	default MACH_SUN5I
22	select PINCTRL_SUNXI
23
24config PINCTRL_SUN6I_A31
25	bool "Support for the Allwinner A31 PIO"
26	default MACH_SUN6I
27	select PINCTRL_SUNXI
28
29config PINCTRL_SUN6I_A31_R
30	bool "Support for the Allwinner A31 R-PIO"
31	default MACH_SUN6I
32	depends on RESET_CONTROLLER
33	select PINCTRL_SUNXI
34
35config PINCTRL_SUN8I_A23
36	bool "Support for the Allwinner A23 PIO"
37	default MACH_SUN8I
38	select PINCTRL_SUNXI
39
40config PINCTRL_SUN8I_A33
41	bool "Support for the Allwinner A33 PIO"
42	default MACH_SUN8I
43	select PINCTRL_SUNXI
44
45config PINCTRL_SUN8I_A83T
46	bool "Support for the Allwinner A83T PIO"
47	default MACH_SUN8I
48	select PINCTRL_SUNXI
49
50config PINCTRL_SUN8I_A83T_R
51	bool "Support for the Allwinner A83T R-PIO"
52	default MACH_SUN8I
53	select PINCTRL_SUNXI
54
55config PINCTRL_SUN8I_A23_R
56	bool "Support for the Allwinner A23 and A33 R-PIO"
57	default MACH_SUN8I
58	depends on RESET_CONTROLLER
59	select PINCTRL_SUNXI
60
61config PINCTRL_SUN8I_H3
62	bool "Support for the Allwinner H3 PIO"
63	default MACH_SUN8I
64	select PINCTRL_SUNXI
65
66config PINCTRL_SUN8I_H3_R
67	bool "Support for the Allwinner H3 and H5 R-PIO"
68	default MACH_SUN8I || (ARM64 && ARCH_SUNXI)
69	select PINCTRL_SUNXI
70
71config PINCTRL_SUN8I_V3S
72	bool "Support for the Allwinner V3s PIO"
73	default MACH_SUN8I
74	select PINCTRL_SUNXI
75
76config PINCTRL_SUN9I_A80
77	bool "Support for the Allwinner A80 PIO"
78	default MACH_SUN9I
79	select PINCTRL_SUNXI
80
81config PINCTRL_SUN9I_A80_R
82	bool "Support for the Allwinner A80 R-PIO"
83	default MACH_SUN9I
84	depends on RESET_CONTROLLER
85	select PINCTRL_SUNXI
86
87config PINCTRL_SUN50I_A64
88	bool "Support for the Allwinner A64 PIO"
89	default ARM64 && ARCH_SUNXI
90	select PINCTRL_SUNXI
91
92config PINCTRL_SUN50I_A64_R
93	bool "Support for the Allwinner A64 R-PIO"
94	default ARM64 && ARCH_SUNXI
95	select PINCTRL_SUNXI
96
97config PINCTRL_SUN50I_A100
98	bool "Support for the Allwinner A100 PIO"
99	default ARM64 && ARCH_SUNXI
100	select PINCTRL_SUNXI
101
102config PINCTRL_SUN50I_A100_R
103	bool "Support for the Allwinner A100 R-PIO"
104	default ARM64 && ARCH_SUNXI
105	select PINCTRL_SUNXI
106
107config PINCTRL_SUN50I_H5
108	bool "Support for the Allwinner H5 PIO"
109	default ARM64 && ARCH_SUNXI
110	select PINCTRL_SUNXI
111
112config PINCTRL_SUN50I_H6
113	bool "Support for the Allwinner H6 PIO"
114	default ARM64 && ARCH_SUNXI
115	select PINCTRL_SUNXI
116
117config PINCTRL_SUN50I_H6_R
118	bool "Support for the Allwinner H6 R-PIO"
119	default ARM64 && ARCH_SUNXI
120	select PINCTRL_SUNXI
121
122config PINCTRL_SUN50I_H616
123	bool "Support for the Allwinner H616 PIO"
124	default ARM64 && ARCH_SUNXI
125	select PINCTRL_SUNXI
126
127config PINCTRL_SUN50I_H616_R
128	bool "Support for the Allwinner H616 R-PIO"
129	default ARM64 && ARCH_SUNXI
130	select PINCTRL_SUNXI
131
132endif
133