1menu "MediaTek pinctrl drivers" 2 depends on ARCH_MEDIATEK || COMPILE_TEST 3 4config EINT_MTK 5 bool "MediaTek External Interrupt Support" 6 depends on PINCTRL_MTK || PINCTRL_MT7622 || COMPILE_TEST 7 select IRQ_DOMAIN 8 9config PINCTRL_MTK 10 bool 11 depends on OF 12 select PINMUX 13 select GENERIC_PINCONF 14 select GPIOLIB 15 select EINT_MTK 16 select OF_GPIO 17 18# For ARMv7 SoCs 19config PINCTRL_MT2701 20 bool "Mediatek MT2701 pin control" 21 depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST 22 depends on OF 23 default MACH_MT2701 24 select PINCTRL_MTK 25 26config PINCTRL_MT8135 27 bool "Mediatek MT8135 pin control" 28 depends on MACH_MT8135 || COMPILE_TEST 29 depends on OF 30 default MACH_MT8135 31 select PINCTRL_MTK 32 33config PINCTRL_MT8127 34 bool "Mediatek MT8127 pin control" 35 depends on MACH_MT8127 || COMPILE_TEST 36 depends on OF 37 default MACH_MT8127 38 select PINCTRL_MTK 39 40# For ARMv8 SoCs 41config PINCTRL_MT2712 42 bool "MediaTek MT2712 pin control" 43 depends on OF 44 depends on ARM64 || COMPILE_TEST 45 default ARM64 && ARCH_MEDIATEK 46 select PINCTRL_MTK 47 48config PINCTRL_MT7622 49 bool "MediaTek MT7622 pin control" 50 depends on OF 51 depends on ARM64 || COMPILE_TEST 52 select GENERIC_PINCONF 53 select GENERIC_PINCTRL_GROUPS 54 select GENERIC_PINMUX_FUNCTIONS 55 select GPIOLIB 56 select OF_GPIO 57 58config PINCTRL_MT8173 59 bool "Mediatek MT8173 pin control" 60 depends on OF 61 depends on ARM64 || COMPILE_TEST 62 default ARM64 && ARCH_MEDIATEK 63 select PINCTRL_MTK 64 65# For PMIC 66config PINCTRL_MT6397 67 bool "Mediatek MT6397 pin control" 68 depends on MFD_MT6397 || COMPILE_TEST 69 depends on OF 70 default MFD_MT6397 71 select PINCTRL_MTK 72 73endmenu 74