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 | |
| 3 | config PINCTRL_MTK_COMMON |
| 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 |
Hongzhou Yang | a6df410 | 2015-01-21 13:28:15 +0800 | [diff] [blame] | 12 | config PINCTRL_MT8135 |
Yingjoe Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 13 | bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135 |
Linus Walleij | b99e6fb | 2015-04-15 10:00:35 +0200 | [diff] [blame] | 14 | depends on OF |
Yingjoe Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 15 | default MACH_MT8135 |
Hongzhou Yang | a6df410 | 2015-01-21 13:28:15 +0800 | [diff] [blame] | 16 | select PINCTRL_MTK_COMMON |
| 17 | |
Yingjoe Chen | 6acdee8 | 2015-05-18 20:01:32 -0700 | [diff] [blame] | 18 | config 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 Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 24 | # For ARMv8 SoCs |
Hongzhou Yang | 30f010f | 2015-01-27 15:13:55 +0800 | [diff] [blame] | 25 | config PINCTRL_MT8173 |
Yingjoe Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 26 | bool "Mediatek MT8173 pin control" |
Linus Walleij | b99e6fb | 2015-04-15 10:00:35 +0200 | [diff] [blame] | 27 | depends on OF |
Yingjoe Chen | 4a8ade1 | 2015-03-13 22:40:52 +0800 | [diff] [blame] | 28 | depends on ARM64 || COMPILE_TEST |
| 29 | default ARM64 && ARCH_MEDIATEK |
Hongzhou Yang | 30f010f | 2015-01-27 15:13:55 +0800 | [diff] [blame] | 30 | select PINCTRL_MTK_COMMON |
| 31 | |
Hongzhou Yang | fc59e66 | 2015-05-18 23:11:17 -0700 | [diff] [blame] | 32 | # For PMIC |
| 33 | config PINCTRL_MT6397 |
| 34 | bool "Mediatek MT6397 pin control" if COMPILE_TEST && !MFD_MT6397 |
Linus Walleij | a2202a4 | 2015-05-20 09:11:23 +0200 | [diff] [blame] | 35 | depends on OF |
Hongzhou Yang | fc59e66 | 2015-05-18 23:11:17 -0700 | [diff] [blame] | 36 | default MFD_MT6397 |
| 37 | select PINCTRL_MTK_COMMON |
| 38 | |
Hongzhou Yang | a6df410 | 2015-01-21 13:28:15 +0800 | [diff] [blame] | 39 | endif |