Yingjoe Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 1 | if ARCH_MEDIATEK || COMPILE_TEST |
Hongzhou Yang | a6df410 | 2015-01-21 13:28:15 +0800 | [diff] [blame] | 2 | |
Masahiro Yamada | 4a9e006 | 2016-02-10 18:54:32 +0900 | [diff] [blame] | 3 | config PINCTRL_MTK |
Hongzhou Yang | a6df410 | 2015-01-21 13:28:15 +0800 | [diff] [blame] | 4 | bool |
Linus Walleij | b99e6fb | 2015-04-15 10:00:35 +0200 | [diff] [blame] | 5 | depends on OF |
Hongzhou Yang | a6df410 | 2015-01-21 13:28:15 +0800 | [diff] [blame] | 6 | select PINMUX |
7 | select GENERIC_PINCONF | ||||
8 | select GPIOLIB | ||||
9 | select OF_GPIO | ||||
10 | |||||
Yingjoe Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 11 | # For ARMv7 SoCs |
Biao Huang | 148b95e | 2016-01-27 09:24:42 +0800 | [diff] [blame] | 12 | config PINCTRL_MT2701 |
13 | bool "Mediatek MT2701 pin control" if COMPILE_TEST && !MACH_MT2701 | ||||
14 | depends on OF | ||||
15 | default MACH_MT2701 | ||||
Masahiro Yamada | 4a9e006 | 2016-02-10 18:54:32 +0900 | [diff] [blame] | 16 | select PINCTRL_MTK |
Biao Huang | 148b95e | 2016-01-27 09:24:42 +0800 | [diff] [blame] | 17 | |
John Crispin | 87316f6 | 2016-02-19 08:17:18 +0100 | [diff] [blame] | 18 | config 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 Yang | a6df410 | 2015-01-21 13:28:15 +0800 | [diff] [blame] | 24 | config PINCTRL_MT8135 |
Yingjoe Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 25 | bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135 |
Linus Walleij | b99e6fb | 2015-04-15 10:00:35 +0200 | [diff] [blame] | 26 | depends on OF |
Yingjoe Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 27 | default MACH_MT8135 |
Masahiro Yamada | 4a9e006 | 2016-02-10 18:54:32 +0900 | [diff] [blame] | 28 | select PINCTRL_MTK |
Hongzhou Yang | a6df410 | 2015-01-21 13:28:15 +0800 | [diff] [blame] | 29 | |
Yingjoe Chen | 6acdee8 | 2015-05-18 20:01:32 -0700 | [diff] [blame] | 30 | config PINCTRL_MT8127 |
31 | bool "Mediatek MT8127 pin control" if COMPILE_TEST && !MACH_MT8127 | ||||
32 | depends on OF | ||||
33 | default MACH_MT8127 | ||||
Masahiro Yamada | 4a9e006 | 2016-02-10 18:54:32 +0900 | [diff] [blame] | 34 | select PINCTRL_MTK |
Yingjoe Chen | 6acdee8 | 2015-05-18 20:01:32 -0700 | [diff] [blame] | 35 | |
Yingjoe Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 36 | # For ARMv8 SoCs |
Hongzhou Yang | 30f010f | 2015-01-27 15:13:55 +0800 | [diff] [blame] | 37 | config PINCTRL_MT8173 |
Yingjoe Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 38 | bool "Mediatek MT8173 pin control" |
Linus Walleij | b99e6fb | 2015-04-15 10:00:35 +0200 | [diff] [blame] | 39 | depends on OF |
Yingjoe Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 40 | depends on ARM64 || COMPILE_TEST |
41 | default ARM64 && ARCH_MEDIATEK | ||||
Masahiro Yamada | 4a9e006 | 2016-02-10 18:54:32 +0900 | [diff] [blame] | 42 | select PINCTRL_MTK |
Hongzhou Yang | 30f010f | 2015-01-27 15:13:55 +0800 | [diff] [blame] | 43 | |
Hongzhou Yang | fc59e66 | 2015-05-18 23:11:17 -0700 | [diff] [blame] | 44 | # For PMIC |
45 | config PINCTRL_MT6397 | ||||
46 | bool "Mediatek MT6397 pin control" if COMPILE_TEST && !MFD_MT6397 | ||||
Linus Walleij | a2202a4 | 2015-05-20 09:11:23 +0200 | [diff] [blame] | 47 | depends on OF |
Hongzhou Yang | fc59e66 | 2015-05-18 23:11:17 -0700 | [diff] [blame] | 48 | default MFD_MT6397 |
Masahiro Yamada | 4a9e006 | 2016-02-10 18:54:32 +0900 | [diff] [blame] | 49 | select PINCTRL_MTK |
Hongzhou Yang | fc59e66 | 2015-05-18 23:11:17 -0700 | [diff] [blame] | 50 | |
Hongzhou Yang | a6df410 | 2015-01-21 13:28:15 +0800 | [diff] [blame] | 51 | endif |