Commit | Line | Data |
---|---|---|
4a8ade1f | 1 | if ARCH_MEDIATEK || COMPILE_TEST |
a6df410d | 2 | |
4a9e0060 | 3 | config PINCTRL_MTK |
a6df410d | 4 | bool |
b99e6fb8 | 5 | depends on OF |
a6df410d HY |
6 | select PINMUX |
7 | select GENERIC_PINCONF | |
8 | select GPIOLIB | |
9 | select OF_GPIO | |
10 | ||
4a8ade1f | 11 | # For ARMv7 SoCs |
148b95ee BH |
12 | config PINCTRL_MT2701 |
13 | bool "Mediatek MT2701 pin control" if COMPILE_TEST && !MACH_MT2701 | |
14 | depends on OF | |
15 | default MACH_MT2701 | |
4a9e0060 | 16 | select PINCTRL_MTK |
148b95ee | 17 | |
87316f6b JC |
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 | ||
a6df410d | 24 | config PINCTRL_MT8135 |
4a8ade1f | 25 | bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135 |
b99e6fb8 | 26 | depends on OF |
4a8ade1f | 27 | default MACH_MT8135 |
4a9e0060 | 28 | select PINCTRL_MTK |
a6df410d | 29 | |
6acdee8c YC |
30 | config PINCTRL_MT8127 |
31 | bool "Mediatek MT8127 pin control" if COMPILE_TEST && !MACH_MT8127 | |
32 | depends on OF | |
33 | default MACH_MT8127 | |
4a9e0060 | 34 | select PINCTRL_MTK |
6acdee8c | 35 | |
4a8ade1f | 36 | # For ARMv8 SoCs |
30f010f5 | 37 | config PINCTRL_MT8173 |
4a8ade1f | 38 | bool "Mediatek MT8173 pin control" |
b99e6fb8 | 39 | depends on OF |
4a8ade1f YC |
40 | depends on ARM64 || COMPILE_TEST |
41 | default ARM64 && ARCH_MEDIATEK | |
4a9e0060 | 42 | select PINCTRL_MTK |
30f010f5 | 43 | |
fc59e66c HY |
44 | # For PMIC |
45 | config PINCTRL_MT6397 | |
46 | bool "Mediatek MT6397 pin control" if COMPILE_TEST && !MFD_MT6397 | |
a2202a4c | 47 | depends on OF |
fc59e66c | 48 | default MFD_MT6397 |
4a9e0060 | 49 | select PINCTRL_MTK |
fc59e66c | 50 | |
a6df410d | 51 | endif |