xref: /openbmc/linux/drivers/pinctrl/sunxi/Kconfig (revision 26b32974)
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	select PINCTRL_SUNXI
33
34config PINCTRL_SUN8I_A23
35	bool "Support for the Allwinner A23 PIO"
36	default MACH_SUN8I
37	select PINCTRL_SUNXI
38
39config PINCTRL_SUN8I_A33
40	bool "Support for the Allwinner A33 PIO"
41	default MACH_SUN8I
42	select PINCTRL_SUNXI
43
44config PINCTRL_SUN8I_A83T
45	bool "Support for the Allwinner A83T PIO"
46	default MACH_SUN8I
47	select PINCTRL_SUNXI
48
49config PINCTRL_SUN8I_A83T_R
50	bool "Support for the Allwinner A83T R-PIO"
51	default MACH_SUN8I
52	select PINCTRL_SUNXI
53
54config PINCTRL_SUN8I_A23_R
55	bool "Support for the Allwinner A23 and A33 R-PIO"
56	default MACH_SUN8I
57	select PINCTRL_SUNXI
58
59config PINCTRL_SUN8I_H3
60	bool "Support for the Allwinner H3 PIO"
61	default MACH_SUN8I
62	select PINCTRL_SUNXI
63
64config PINCTRL_SUN8I_H3_R
65	bool "Support for the Allwinner H3 and H5 R-PIO"
66	default MACH_SUN8I || (ARM64 && ARCH_SUNXI)
67	select PINCTRL_SUNXI
68
69config PINCTRL_SUN8I_V3S
70	bool "Support for the Allwinner V3s PIO"
71	default MACH_SUN8I
72	select PINCTRL_SUNXI
73
74config PINCTRL_SUN9I_A80
75	bool "Support for the Allwinner A80 PIO"
76	default MACH_SUN9I
77	select PINCTRL_SUNXI
78
79config PINCTRL_SUN9I_A80_R
80	bool "Support for the Allwinner A80 R-PIO"
81	default MACH_SUN9I
82	select PINCTRL_SUNXI
83
84config PINCTRL_SUN20I_D1
85	bool "Support for the Allwinner D1 PIO"
86	default MACH_SUN8I || (RISCV && ARCH_SUNXI)
87	select PINCTRL_SUNXI
88
89config PINCTRL_SUN50I_A64
90	bool "Support for the Allwinner A64 PIO"
91	default ARM64 && ARCH_SUNXI
92	select PINCTRL_SUNXI
93
94config PINCTRL_SUN50I_A64_R
95	bool "Support for the Allwinner A64 R-PIO"
96	default ARM64 && ARCH_SUNXI
97	select PINCTRL_SUNXI
98
99config PINCTRL_SUN50I_A100
100	bool "Support for the Allwinner A100 PIO"
101	default ARM64 && ARCH_SUNXI
102	select PINCTRL_SUNXI
103
104config PINCTRL_SUN50I_A100_R
105	bool "Support for the Allwinner A100 R-PIO"
106	default ARM64 && ARCH_SUNXI
107	select PINCTRL_SUNXI
108
109config PINCTRL_SUN50I_H5
110	bool "Support for the Allwinner H5 PIO"
111	default ARM64 && ARCH_SUNXI
112	select PINCTRL_SUNXI
113
114config PINCTRL_SUN50I_H6
115	bool "Support for the Allwinner H6 PIO"
116	default ARM64 && ARCH_SUNXI
117	select PINCTRL_SUNXI
118
119config PINCTRL_SUN50I_H6_R
120	bool "Support for the Allwinner H6 R-PIO"
121	default ARM64 && ARCH_SUNXI
122	select PINCTRL_SUNXI
123
124config PINCTRL_SUN50I_H616
125	bool "Support for the Allwinner H616 PIO"
126	default ARM64 && ARCH_SUNXI
127	select PINCTRL_SUNXI
128
129config PINCTRL_SUN50I_H616_R
130	bool "Support for the Allwinner H616 R-PIO"
131	default ARM64 && ARCH_SUNXI
132	select PINCTRL_SUNXI
133
134endif
135