Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1if ARCH_MEDIATEK || COMPILE_TEST
2
3config PINCTRL_MTK
4 bool
5 depends on OF
6 select PINMUX
7 select GENERIC_PINCONF
8 select GPIOLIB
9 select OF_GPIO
10
11# For ARMv7 SoCs
12config PINCTRL_MT2701
13 bool "Mediatek MT2701 pin control"
14 depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST
15 depends on OF
16 default MACH_MT2701
17 select PINCTRL_MTK
18
19config PINCTRL_MT8135
20 bool "Mediatek MT8135 pin control"
21 depends on MACH_MT8135 || COMPILE_TEST
22 depends on OF
23 default MACH_MT8135
24 select PINCTRL_MTK
25
26config PINCTRL_MT8127
27 bool "Mediatek MT8127 pin control"
28 depends on MACH_MT8127 || COMPILE_TEST
29 depends on OF
30 default MACH_MT8127
31 select PINCTRL_MTK
32
33# For ARMv8 SoCs
34config PINCTRL_MT8173
35 bool "Mediatek MT8173 pin control"
36 depends on OF
37 depends on ARM64 || COMPILE_TEST
38 default ARM64 && ARCH_MEDIATEK
39 select PINCTRL_MTK
40
41# For PMIC
42config PINCTRL_MT6397
43 bool "Mediatek MT6397 pin control"
44 depends on MFD_MT6397 || COMPILE_TEST
45 depends on OF
46 default MFD_MT6397
47 select PINCTRL_MTK
48
49endif