xref: /openbmc/linux/drivers/pinctrl/sunxi/Kconfig (revision 5d8d3496)
15f910777SMaxime Ripardif ARCH_SUNXI
25f910777SMaxime Ripard
33a42a042SMasahiro Yamadaconfig PINCTRL_SUNXI
4118c565aSMaxime Ripard	bool
55f910777SMaxime Ripard	select PINMUX
65f910777SMaxime Ripard	select GENERIC_PINCONF
79396f441SIcenowy Zheng	select GPIOLIB
85f910777SMaxime Ripard
9340ba6c4SMaxime Ripardconfig PINCTRL_SUN4I_A10
105d8d3496SIcenowy Zheng	def_bool MACH_SUN4I || MACH_SUN7I
113a42a042SMasahiro Yamada	select PINCTRL_SUNXI
12340ba6c4SMaxime Ripard
13858f559fSMaxime Ripardconfig PINCTRL_SUN5I
14d9ff081dSMaxime Ripard	def_bool MACH_SUN5I
153a42a042SMasahiro Yamada	select PINCTRL_SUNXI
16340ba6c4SMaxime Ripard
17340ba6c4SMaxime Ripardconfig PINCTRL_SUN6I_A31
18d9ff081dSMaxime Ripard	def_bool MACH_SUN6I
193a42a042SMasahiro Yamada	select PINCTRL_SUNXI
20340ba6c4SMaxime Ripard
21340ba6c4SMaxime Ripardconfig PINCTRL_SUN6I_A31_R
22d9ff081dSMaxime Ripard	def_bool MACH_SUN6I
23de5af04eSMaxime Ripard	depends on RESET_CONTROLLER
243a42a042SMasahiro Yamada	select PINCTRL_SUNXI
25340ba6c4SMaxime Ripard
26340ba6c4SMaxime Ripardconfig PINCTRL_SUN7I_A20
275d8d3496SIcenowy Zheng	bool
283a42a042SMasahiro Yamada	select PINCTRL_SUNXI
29340ba6c4SMaxime Ripard
304c821d1cSChen-Yu Tsaiconfig PINCTRL_SUN8I_A23
314c821d1cSChen-Yu Tsai	def_bool MACH_SUN8I
323a42a042SMasahiro Yamada	select PINCTRL_SUNXI
334c821d1cSChen-Yu Tsai
347164873eSVishnu Patekarconfig PINCTRL_SUN8I_A33
357164873eSVishnu Patekar	def_bool MACH_SUN8I
363a42a042SMasahiro Yamada	select PINCTRL_SUNXI
377164873eSVishnu Patekar
384730f33fSVishnu Patekarconfig PINCTRL_SUN8I_A83T
394730f33fSVishnu Patekar	def_bool MACH_SUN8I
403a42a042SMasahiro Yamada	select PINCTRL_SUNXI
414730f33fSVishnu Patekar
42d22bf40fSChen-Yu Tsaiconfig PINCTRL_SUN8I_A23_R
43d22bf40fSChen-Yu Tsai	def_bool MACH_SUN8I
44d22bf40fSChen-Yu Tsai	depends on RESET_CONTROLLER
453a42a042SMasahiro Yamada	select PINCTRL_SUNXI
46d22bf40fSChen-Yu Tsai
47e87623cbSJens Kuskeconfig PINCTRL_SUN8I_H3
48e87623cbSJens Kuske	def_bool MACH_SUN8I
493a42a042SMasahiro Yamada	select PINCTRL_SUNXI
50e87623cbSJens Kuske
51ba83a111SKrzysztof Adamskiconfig PINCTRL_SUN8I_H3_R
52082bc28cSIcenowy Zheng	def_bool MACH_SUN8I || (ARM64 && ARCH_SUNXI)
53082bc28cSIcenowy Zheng	select PINCTRL_SUNXI
54ba83a111SKrzysztof Adamski
5556d9e4a7SIcenowy Zhengconfig PINCTRL_SUN8I_V3S
5656d9e4a7SIcenowy Zheng	def_bool MACH_SUN8I
5756d9e4a7SIcenowy Zheng	select PINCTRL_SUNXI
5856d9e4a7SIcenowy Zheng
59d5e9fb31SMaxime Ripardconfig PINCTRL_SUN9I_A80
60d5e9fb31SMaxime Ripard	def_bool MACH_SUN9I
613a42a042SMasahiro Yamada	select PINCTRL_SUNXI
62d5e9fb31SMaxime Ripard
630eccc9cbSMaxime Ripardconfig PINCTRL_SUN9I_A80_R
640eccc9cbSMaxime Ripard	def_bool MACH_SUN9I
650eccc9cbSMaxime Ripard	depends on RESET_CONTROLLER
663a42a042SMasahiro Yamada	select PINCTRL_SUNXI
670eccc9cbSMaxime Ripard
6896851d39SAndre Przywaraconfig PINCTRL_SUN50I_A64
69082bc28cSIcenowy Zheng	def_bool ARM64 && ARCH_SUNXI
7096851d39SAndre Przywara	select PINCTRL_SUNXI
7196851d39SAndre Przywara
7214c868b0SIcenowy Zhengconfig PINCTRL_SUN50I_A64_R
7314c868b0SIcenowy Zheng	def_bool ARM64 && ARCH_SUNXI
7414c868b0SIcenowy Zheng	select PINCTRL_SUNXI
7514c868b0SIcenowy Zheng
76838adb57SIcenowy Zhengconfig PINCTRL_SUN50I_H5
77082bc28cSIcenowy Zheng	def_bool ARM64 && ARCH_SUNXI
78838adb57SIcenowy Zheng	select PINCTRL_SUNXI
79838adb57SIcenowy Zheng
805f910777SMaxime Ripardendif
81