blob: 4f0bc8a103f4ae273d34cc6bc05d94656e34a420 [file] [log] [blame]
Yingjoe Chen4a8ade12015-03-13 22:40:52 +08001if ARCH_MEDIATEK || COMPILE_TEST
Hongzhou Yanga6df4102015-01-21 13:28:15 +08002
Masahiro Yamada4a9e0062016-02-10 18:54:32 +09003config PINCTRL_MTK
Hongzhou Yanga6df4102015-01-21 13:28:15 +08004 bool
Linus Walleijb99e6fb2015-04-15 10:00:35 +02005 depends on OF
Hongzhou Yanga6df4102015-01-21 13:28:15 +08006 select PINMUX
7 select GENERIC_PINCONF
8 select GPIOLIB
9 select OF_GPIO
10
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080011# For ARMv7 SoCs
Biao Huang148b95e2016-01-27 09:24:42 +080012config PINCTRL_MT2701
13 bool "Mediatek MT2701 pin control" if COMPILE_TEST && !MACH_MT2701
14 depends on OF
15 default MACH_MT2701
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090016 select PINCTRL_MTK
Biao Huang148b95e2016-01-27 09:24:42 +080017
John Crispin87316f62016-02-19 08:17:18 +010018config PINCTRL_MT7623
19 bool "Mediatek MT7623 pin control" if COMPILE_TEST && !MACH_MT7623
20 depends on OF
21 default MACH_MT7623
22 select PINCTRL_MTK_COMMON
23
Hongzhou Yanga6df4102015-01-21 13:28:15 +080024config PINCTRL_MT8135
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080025 bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
Linus Walleijb99e6fb2015-04-15 10:00:35 +020026 depends on OF
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080027 default MACH_MT8135
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090028 select PINCTRL_MTK
Hongzhou Yanga6df4102015-01-21 13:28:15 +080029
Yingjoe Chen6acdee82015-05-18 20:01:32 -070030config PINCTRL_MT8127
31 bool "Mediatek MT8127 pin control" if COMPILE_TEST && !MACH_MT8127
32 depends on OF
33 default MACH_MT8127
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090034 select PINCTRL_MTK
Yingjoe Chen6acdee82015-05-18 20:01:32 -070035
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080036# For ARMv8 SoCs
Hongzhou Yang30f010f2015-01-27 15:13:55 +080037config PINCTRL_MT8173
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080038 bool "Mediatek MT8173 pin control"
Linus Walleijb99e6fb2015-04-15 10:00:35 +020039 depends on OF
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080040 depends on ARM64 || COMPILE_TEST
41 default ARM64 && ARCH_MEDIATEK
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090042 select PINCTRL_MTK
Hongzhou Yang30f010f2015-01-27 15:13:55 +080043
Hongzhou Yangfc59e662015-05-18 23:11:17 -070044# For PMIC
45config PINCTRL_MT6397
46 bool "Mediatek MT6397 pin control" if COMPILE_TEST && !MFD_MT6397
Linus Walleija2202a42015-05-20 09:11:23 +020047 depends on OF
Hongzhou Yangfc59e662015-05-18 23:11:17 -070048 default MFD_MT6397
Masahiro Yamada4a9e0062016-02-10 18:54:32 +090049 select PINCTRL_MTK
Hongzhou Yangfc59e662015-05-18 23:11:17 -070050
Hongzhou Yanga6df4102015-01-21 13:28:15 +080051endif