blob: 02f6f92df86c51086fb910330f1a35858e97df4f [file] [log] [blame]
Yingjoe Chen4a8ade12015-03-13 22:40:52 +08001if ARCH_MEDIATEK || COMPILE_TEST
Hongzhou Yanga6df4102015-01-21 13:28:15 +08002
3config PINCTRL_MTK_COMMON
4 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
Hongzhou Yanga6df4102015-01-21 13:28:15 +080012config PINCTRL_MT8135
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080013 bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
Linus Walleijb99e6fb2015-04-15 10:00:35 +020014 depends on OF
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080015 default MACH_MT8135
Hongzhou Yanga6df4102015-01-21 13:28:15 +080016 select PINCTRL_MTK_COMMON
17
Yingjoe Chen6acdee82015-05-18 20:01:32 -070018config PINCTRL_MT8127
19 bool "Mediatek MT8127 pin control" if COMPILE_TEST && !MACH_MT8127
20 depends on OF
21 default MACH_MT8127
22 select PINCTRL_MTK_COMMON
23
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080024# For ARMv8 SoCs
Hongzhou Yang30f010f2015-01-27 15:13:55 +080025config PINCTRL_MT8173
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080026 bool "Mediatek MT8173 pin control"
Linus Walleijb99e6fb2015-04-15 10:00:35 +020027 depends on OF
Yingjoe Chen4a8ade12015-03-13 22:40:52 +080028 depends on ARM64 || COMPILE_TEST
29 default ARM64 && ARCH_MEDIATEK
Hongzhou Yang30f010f2015-01-27 15:13:55 +080030 select PINCTRL_MTK_COMMON
31
Hongzhou Yangfc59e662015-05-18 23:11:17 -070032# For PMIC
33config PINCTRL_MT6397
34 bool "Mediatek MT6397 pin control" if COMPILE_TEST && !MFD_MT6397
Linus Walleija2202a42015-05-20 09:11:23 +020035 depends on OF
Hongzhou Yangfc59e662015-05-18 23:11:17 -070036 default MFD_MT6397
37 select PINCTRL_MTK_COMMON
38
Hongzhou Yanga6df4102015-01-21 13:28:15 +080039endif