blob: 793e6f94fa0b16d8881764cd14d1df69d9bac945 [file] [log] [blame]
Maxime Ripard5f910772014-04-18 18:53:02 +02001if ARCH_SUNXI
2
Masahiro Yamada3a42a042016-01-24 00:32:09 +09003config PINCTRL_SUNXI
Maxime Ripard118c5652014-05-22 16:47:12 +02004 bool
Maxime Ripard5f910772014-04-18 18:53:02 +02005 select PINMUX
6 select GENERIC_PINCONF
Icenowy Zheng9396f442017-03-01 03:08:15 +08007 select GPIOLIB
Maxime Ripard5f910772014-04-18 18:53:02 +02008
Maxime Ripard340ba6c2014-04-26 17:06:57 +02009config PINCTRL_SUN4I_A10
Maxime Ripardd9ff0812014-06-29 15:58:19 +020010 def_bool MACH_SUN4I
Masahiro Yamada3a42a042016-01-24 00:32:09 +090011 select PINCTRL_SUNXI
Maxime Ripard340ba6c2014-04-26 17:06:57 +020012
Maxime Ripard858f5592017-01-08 22:31:16 +010013config PINCTRL_SUN5I
Maxime Ripardd9ff0812014-06-29 15:58:19 +020014 def_bool MACH_SUN5I
Masahiro Yamada3a42a042016-01-24 00:32:09 +090015 select PINCTRL_SUNXI
Maxime Ripard340ba6c2014-04-26 17:06:57 +020016
Maxime Ripard340ba6c2014-04-26 17:06:57 +020017config PINCTRL_SUN6I_A31
Maxime Ripardd9ff0812014-06-29 15:58:19 +020018 def_bool MACH_SUN6I
Masahiro Yamada3a42a042016-01-24 00:32:09 +090019 select PINCTRL_SUNXI
Maxime Ripard340ba6c2014-04-26 17:06:57 +020020
21config PINCTRL_SUN6I_A31_R
Maxime Ripardd9ff0812014-06-29 15:58:19 +020022 def_bool MACH_SUN6I
Maxime Ripardde5af042014-05-23 20:50:43 +020023 depends on RESET_CONTROLLER
Masahiro Yamada3a42a042016-01-24 00:32:09 +090024 select PINCTRL_SUNXI
Maxime Ripard340ba6c2014-04-26 17:06:57 +020025
26config PINCTRL_SUN7I_A20
Maxime Ripardd9ff0812014-06-29 15:58:19 +020027 def_bool MACH_SUN7I
Masahiro Yamada3a42a042016-01-24 00:32:09 +090028 select PINCTRL_SUNXI
Maxime Ripard340ba6c2014-04-26 17:06:57 +020029
Chen-Yu Tsai4c821d12014-06-17 22:52:51 +080030config PINCTRL_SUN8I_A23
31 def_bool MACH_SUN8I
Masahiro Yamada3a42a042016-01-24 00:32:09 +090032 select PINCTRL_SUNXI
Chen-Yu Tsai4c821d12014-06-17 22:52:51 +080033
Vishnu Patekar71648732015-06-02 11:08:40 +020034config PINCTRL_SUN8I_A33
35 def_bool MACH_SUN8I
Masahiro Yamada3a42a042016-01-24 00:32:09 +090036 select PINCTRL_SUNXI
Vishnu Patekar71648732015-06-02 11:08:40 +020037
Vishnu Patekar4730f332015-09-22 23:38:55 +080038config PINCTRL_SUN8I_A83T
39 def_bool MACH_SUN8I
Masahiro Yamada3a42a042016-01-24 00:32:09 +090040 select PINCTRL_SUNXI
Vishnu Patekar4730f332015-09-22 23:38:55 +080041
Chen-Yu Tsaid22bf402014-06-17 22:52:52 +080042config PINCTRL_SUN8I_A23_R
43 def_bool MACH_SUN8I
44 depends on RESET_CONTROLLER
Masahiro Yamada3a42a042016-01-24 00:32:09 +090045 select PINCTRL_SUNXI
Chen-Yu Tsaid22bf402014-06-17 22:52:52 +080046
Jens Kuskee87623c2015-12-04 22:24:41 +010047config PINCTRL_SUN8I_H3
48 def_bool MACH_SUN8I
Masahiro Yamada3a42a042016-01-24 00:32:09 +090049 select PINCTRL_SUNXI
Jens Kuskee87623c2015-12-04 22:24:41 +010050
Krzysztof Adamskiba83a112016-02-02 22:21:51 +010051config PINCTRL_SUN8I_H3_R
Icenowy Zheng082bc282017-03-02 02:01:07 +080052 def_bool MACH_SUN8I || (ARM64 && ARCH_SUNXI)
53 select PINCTRL_SUNXI
Krzysztof Adamskiba83a112016-02-02 22:21:51 +010054
Icenowy Zheng56d9e4a2017-01-03 23:16:27 +080055config PINCTRL_SUN8I_V3S
56 def_bool MACH_SUN8I
57 select PINCTRL_SUNXI
58
Maxime Ripardd5e9fb32014-10-28 22:41:27 +010059config PINCTRL_SUN9I_A80
60 def_bool MACH_SUN9I
Masahiro Yamada3a42a042016-01-24 00:32:09 +090061 select PINCTRL_SUNXI
Maxime Ripardd5e9fb32014-10-28 22:41:27 +010062
Maxime Ripard0eccc9c2015-12-17 00:39:42 +080063config PINCTRL_SUN9I_A80_R
64 def_bool MACH_SUN9I
65 depends on RESET_CONTROLLER
Masahiro Yamada3a42a042016-01-24 00:32:09 +090066 select PINCTRL_SUNXI
Maxime Ripard0eccc9c2015-12-17 00:39:42 +080067
Andre Przywara96851d32016-03-08 16:37:59 +070068config PINCTRL_SUN50I_A64
Icenowy Zheng082bc282017-03-02 02:01:07 +080069 def_bool ARM64 && ARCH_SUNXI
Andre Przywara96851d32016-03-08 16:37:59 +070070 select PINCTRL_SUNXI
71
Icenowy Zheng14c868b2017-03-02 02:09:30 +080072config PINCTRL_SUN50I_A64_R
73 def_bool ARM64 && ARCH_SUNXI
74 select PINCTRL_SUNXI
75
Icenowy Zheng838adb52017-01-26 23:48:51 +080076config PINCTRL_SUN50I_H5
Icenowy Zheng082bc282017-03-02 02:01:07 +080077 def_bool ARM64 && ARCH_SUNXI
Icenowy Zheng838adb52017-01-26 23:48:51 +080078 select PINCTRL_SUNXI
79
Maxime Ripard5f910772014-04-18 18:53:02 +020080endif