Linux-libre 4.4.228-gnu
[librecmc/linux-libre.git] / drivers / pinctrl / Kconfig
1 #
2 # PINCTRL infrastructure and drivers
3 #
4
5 config PINCTRL
6         bool
7
8 menu "Pin controllers"
9         depends on PINCTRL
10
11 config PINMUX
12         bool "Support pin multiplexing controllers" if COMPILE_TEST
13
14 config PINCONF
15         bool "Support pin configuration controllers" if COMPILE_TEST
16
17 config GENERIC_PINCONF
18         bool
19         select PINCONF
20
21 config DEBUG_PINCTRL
22         bool "Debug PINCTRL calls"
23         depends on DEBUG_KERNEL
24         help
25           Say Y here to add some extra checks and diagnostics to PINCTRL calls.
26
27 config PINCTRL_ADI2
28         bool "ADI pin controller driver"
29         depends on (BF54x || BF60x)
30         depends on !GPIO_ADI
31         select PINMUX
32         select IRQ_DOMAIN
33         help
34           This is the pin controller and gpio driver for ADI BF54x, BF60x and
35           future processors. This option is selected automatically when specific
36           machine and arch are selected to build.
37
38 config PINCTRL_AS3722
39         bool "Pinctrl and GPIO driver for ams AS3722 PMIC"
40         depends on MFD_AS3722 && GPIOLIB
41         select PINMUX
42         select GENERIC_PINCONF
43         help
44           AS3722 device supports the configuration of GPIO pins for different
45           functionality. This driver supports the pinmux, push-pull and
46           open drain configuration for the GPIO pins of AS3722 devices. It also
47           supports the GPIO functionality through gpiolib.
48
49 config PINCTRL_BF54x
50         def_bool y if BF54x
51         select PINCTRL_ADI2
52
53 config PINCTRL_BF60x
54         def_bool y if BF60x
55         select PINCTRL_ADI2
56
57 config PINCTRL_AT91
58         bool "AT91 pinctrl driver"
59         depends on OF
60         depends on ARCH_AT91
61         select PINMUX
62         select PINCONF
63         select GPIOLIB
64         select OF_GPIO
65         select GPIOLIB_IRQCHIP
66         help
67           Say Y here to enable the at91 pinctrl driver
68
69 config PINCTRL_AT91PIO4
70         bool "AT91 PIO4 pinctrl driver"
71         depends on OF
72         depends on ARCH_AT91
73         select PINMUX
74         select GENERIC_PINCONF
75         select GPIOLIB
76         select GPIOLIB_IRQCHIP
77         select OF_GPIO
78         help
79           Say Y here to enable the at91 pinctrl/gpio driver for Atmel PIO4
80           controller available on sama5d2 SoC.
81
82 config PINCTRL_AMD
83         bool "AMD GPIO pin control"
84         depends on GPIOLIB
85         select GPIOLIB_IRQCHIP
86         select PINCONF
87         select GENERIC_PINCONF
88         help
89           driver for memory mapped GPIO functionality on AMD platforms
90           (x86 or arm).Most pins are usually muxed to some other
91           functionality by firmware,so only a small amount is available
92           for gpio use.
93
94           Requires ACPI/FDT device enumeration code to set up a platform
95           device.
96
97 config PINCTRL_DIGICOLOR
98         bool
99         depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
100         select PINMUX
101         select GENERIC_PINCONF
102
103 config PINCTRL_LANTIQ
104         bool
105         depends on LANTIQ
106         select PINMUX
107         select PINCONF
108
109 config PINCTRL_LPC18XX
110         bool "NXP LPC18XX/43XX SCU pinctrl driver"
111         depends on OF && (ARCH_LPC18XX || COMPILE_TEST)
112         default ARCH_LPC18XX
113         select PINMUX
114         select GENERIC_PINCONF
115         help
116           Pinctrl driver for NXP LPC18xx/43xx System Control Unit (SCU).
117
118 config PINCTRL_FALCON
119         bool
120         depends on SOC_FALCON
121         depends on PINCTRL_LANTIQ
122
123 config PINCTRL_MESON
124         bool
125         depends on OF
126         select PINMUX
127         select PINCONF
128         select GENERIC_PINCONF
129         select GPIOLIB
130         select OF_GPIO
131         select REGMAP_MMIO
132
133 config PINCTRL_ROCKCHIP
134         bool
135         select PINMUX
136         select GENERIC_PINCONF
137         select GENERIC_IRQ_CHIP
138         select MFD_SYSCON
139
140 config PINCTRL_SINGLE
141         tristate "One-register-per-pin type device tree based pinctrl driver"
142         depends on OF
143         select PINMUX
144         select PINCONF
145         select GENERIC_PINCONF
146         help
147           This selects the device tree based generic pinctrl driver.
148
149 config PINCTRL_SIRF
150         bool "CSR SiRFprimaII pin controller driver"
151         depends on ARCH_SIRF
152         select PINMUX
153         select PINCONF
154         select GENERIC_PINCONF
155         select GPIOLIB_IRQCHIP
156
157 config PINCTRL_PISTACHIO
158         def_bool y if MACH_PISTACHIO
159         depends on GPIOLIB
160         select PINMUX
161         select GENERIC_PINCONF
162         select GPIOLIB_IRQCHIP
163         select OF_GPIO
164
165 config PINCTRL_ST
166         bool
167         depends on OF
168         select PINMUX
169         select PINCONF
170         select GPIOLIB_IRQCHIP
171
172 config PINCTRL_TEGRA
173         bool
174         select PINMUX
175         select PINCONF
176
177 config PINCTRL_TEGRA20
178         bool
179         select PINCTRL_TEGRA
180
181 config PINCTRL_TEGRA30
182         bool
183         select PINCTRL_TEGRA
184
185 config PINCTRL_TEGRA114
186         bool
187         select PINCTRL_TEGRA
188
189 config PINCTRL_TEGRA124
190         bool
191         select PINCTRL_TEGRA
192
193 config PINCTRL_TEGRA210
194         bool
195         select PINCTRL_TEGRA
196
197 config PINCTRL_TEGRA_XUSB
198         def_bool y if ARCH_TEGRA
199         select GENERIC_PHY
200         select PINCONF
201         select PINMUX
202
203 config PINCTRL_TZ1090
204         bool "Toumaz Xenif TZ1090 pin control driver"
205         depends on SOC_TZ1090
206         select PINMUX
207         select GENERIC_PINCONF
208
209 config PINCTRL_TZ1090_PDC
210         bool "Toumaz Xenif TZ1090 PDC pin control driver"
211         depends on SOC_TZ1090
212         select PINMUX
213         select PINCONF
214
215 config PINCTRL_U300
216         bool "U300 pin controller driver"
217         depends on ARCH_U300
218         select PINMUX
219         select GENERIC_PINCONF
220
221 config PINCTRL_COH901
222         bool "ST-Ericsson U300 COH 901 335/571 GPIO"
223         depends on GPIOLIB && ARCH_U300 && PINCTRL_U300
224         select GPIOLIB_IRQCHIP
225         help
226           Say yes here to support GPIO interface on ST-Ericsson U300.
227           The names of the two IP block variants supported are
228           COH 901 335 and COH 901 571/3. They contain 3, 5 or 7
229           ports of 8 GPIO pins each.
230
231 config PINCTRL_PALMAS
232         bool "Pinctrl driver for the PALMAS Series MFD devices"
233         depends on OF && MFD_PALMAS
234         select PINMUX
235         select GENERIC_PINCONF
236         help
237           Palmas device supports the configuration of pins for different
238           functionality. This driver supports the pinmux, push-pull and
239           open drain configuration for the Palmas series devices like
240           TPS65913, TPS80036 etc.
241
242 config PINCTRL_ZYNQ
243         bool "Pinctrl driver for Xilinx Zynq"
244         depends on ARCH_ZYNQ
245         select PINMUX
246         select GENERIC_PINCONF
247         help
248           This selectes the pinctrl driver for Xilinx Zynq.
249
250 source "drivers/pinctrl/bcm/Kconfig"
251 source "drivers/pinctrl/berlin/Kconfig"
252 source "drivers/pinctrl/freescale/Kconfig"
253 source "drivers/pinctrl/intel/Kconfig"
254 source "drivers/pinctrl/mvebu/Kconfig"
255 source "drivers/pinctrl/nomadik/Kconfig"
256 source "drivers/pinctrl/qcom/Kconfig"
257 source "drivers/pinctrl/samsung/Kconfig"
258 source "drivers/pinctrl/sh-pfc/Kconfig"
259 source "drivers/pinctrl/spear/Kconfig"
260 source "drivers/pinctrl/sunxi/Kconfig"
261 source "drivers/pinctrl/uniphier/Kconfig"
262 source "drivers/pinctrl/vt8500/Kconfig"
263 source "drivers/pinctrl/mediatek/Kconfig"
264
265 config PINCTRL_XWAY
266         bool
267         depends on SOC_TYPE_XWAY
268         depends on PINCTRL_LANTIQ
269
270 config PINCTRL_TB10X
271         bool
272         depends on OF && ARC_PLAT_TB10X
273         select GPIOLIB
274
275 endmenu