xref: /openbmc/linux/drivers/pinctrl/sunxi/Kconfig (revision c8a83090)
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
10cad4e209SIcenowy Zheng	def_bool MACH_SUN4I || MACH_SUN7I || MACH_SUN8I
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
264c821d1cSChen-Yu Tsaiconfig PINCTRL_SUN8I_A23
274c821d1cSChen-Yu Tsai	def_bool MACH_SUN8I
283a42a042SMasahiro Yamada	select PINCTRL_SUNXI
294c821d1cSChen-Yu Tsai
307164873eSVishnu Patekarconfig PINCTRL_SUN8I_A33
317164873eSVishnu Patekar	def_bool MACH_SUN8I
323a42a042SMasahiro Yamada	select PINCTRL_SUNXI
337164873eSVishnu Patekar
344730f33fSVishnu Patekarconfig PINCTRL_SUN8I_A83T
354730f33fSVishnu Patekar	def_bool MACH_SUN8I
363a42a042SMasahiro Yamada	select PINCTRL_SUNXI
374730f33fSVishnu Patekar
3841633edfSChen-Yu Tsaiconfig PINCTRL_SUN8I_A83T_R
3941633edfSChen-Yu Tsai	def_bool MACH_SUN8I
4041633edfSChen-Yu Tsai	select PINCTRL_SUNXI
4141633edfSChen-Yu Tsai
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
80c8a83090SIcenowy Zhengconfig PINCTRL_SUN50I_H6
81c8a83090SIcenowy Zheng	def_bool ARM64 && ARCH_SUNXI
82c8a83090SIcenowy Zheng	select PINCTRL_SUNXI
83c8a83090SIcenowy Zheng
845f910777SMaxime Ripardendif
85