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" if COMPILE_TEST && !MACH_MT2701 14 depends on OF 15 default MACH_MT2701 16 select PINCTRL_MTK 17 18config 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 24config PINCTRL_MT8135 25 bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135 26 depends on OF 27 default MACH_MT8135 28 select PINCTRL_MTK 29 30config PINCTRL_MT8127 31 bool "Mediatek MT8127 pin control" if COMPILE_TEST && !MACH_MT8127 32 depends on OF 33 default MACH_MT8127 34 select PINCTRL_MTK 35 36# For ARMv8 SoCs 37config PINCTRL_MT8173 38 bool "Mediatek MT8173 pin control" 39 depends on OF 40 depends on ARM64 || COMPILE_TEST 41 default ARM64 && ARCH_MEDIATEK 42 select PINCTRL_MTK 43 44# For PMIC 45config PINCTRL_MT6397 46 bool "Mediatek MT6397 pin control" if COMPILE_TEST && !MFD_MT6397 47 depends on OF 48 default MFD_MT6397 49 select PINCTRL_MTK 50 51endif 52