1# SPDX-License-Identifier: GPL-2.0-only 2menu "MediaTek pinctrl drivers" 3 depends on ARCH_MEDIATEK || COMPILE_TEST 4 5config EINT_MTK 6 bool "MediaTek External Interrupt Support" 7 depends on PINCTRL_MTK || PINCTRL_MTK_MOORE || PINCTRL_MTK_PARIS || COMPILE_TEST 8 select GPIOLIB 9 select IRQ_DOMAIN 10 11config PINCTRL_MTK 12 bool 13 depends on OF 14 select PINMUX 15 select GENERIC_PINCONF 16 select GPIOLIB 17 select EINT_MTK 18 select OF_GPIO 19 20config PINCTRL_MTK_MOORE 21 bool 22 depends on OF 23 select GENERIC_PINCONF 24 select GENERIC_PINCTRL_GROUPS 25 select GENERIC_PINMUX_FUNCTIONS 26 select GPIOLIB 27 select OF_GPIO 28 29config PINCTRL_MTK_PARIS 30 bool 31 depends on OF 32 select PINMUX 33 select GENERIC_PINCONF 34 select GPIOLIB 35 select EINT_MTK 36 select OF_GPIO 37 38# For ARMv7 SoCs 39config PINCTRL_MT2701 40 bool "Mediatek MT2701 pin control" 41 depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST 42 depends on OF 43 default MACH_MT2701 44 select PINCTRL_MTK 45 46config PINCTRL_MT7623 47 bool "Mediatek MT7623 pin control with generic binding" 48 depends on MACH_MT7623 || COMPILE_TEST 49 depends on OF 50 default MACH_MT7623 51 select PINCTRL_MTK_MOORE 52 53config PINCTRL_MT7629 54 bool "Mediatek MT7629 pin control" 55 depends on MACH_MT7629 || COMPILE_TEST 56 depends on OF 57 default MACH_MT7629 58 select PINCTRL_MTK_MOORE 59 60config PINCTRL_MT8135 61 bool "Mediatek MT8135 pin control" 62 depends on MACH_MT8135 || COMPILE_TEST 63 depends on OF 64 default MACH_MT8135 65 select PINCTRL_MTK 66 67config PINCTRL_MT8127 68 bool "Mediatek MT8127 pin control" 69 depends on MACH_MT8127 || COMPILE_TEST 70 depends on OF 71 default MACH_MT8127 72 select PINCTRL_MTK 73 74# For ARMv8 SoCs 75config PINCTRL_MT2712 76 bool "MediaTek MT2712 pin control" 77 depends on OF 78 depends on ARM64 || COMPILE_TEST 79 default ARM64 && ARCH_MEDIATEK 80 select PINCTRL_MTK 81 82config PINCTRL_MT6765 83 bool "Mediatek MT6765 pin control" 84 depends on OF 85 depends on ARM64 || COMPILE_TEST 86 default ARM64 && ARCH_MEDIATEK 87 select PINCTRL_MTK_PARIS 88 89config PINCTRL_MT6797 90 bool "Mediatek MT6797 pin control" 91 depends on OF 92 depends on ARM64 || COMPILE_TEST 93 default ARM64 && ARCH_MEDIATEK 94 select PINCTRL_MTK_PARIS 95 96config PINCTRL_MT7622 97 bool "MediaTek MT7622 pin control" 98 depends on OF 99 depends on ARM64 || COMPILE_TEST 100 default ARM64 && ARCH_MEDIATEK 101 select PINCTRL_MTK_MOORE 102 103config PINCTRL_MT8173 104 bool "Mediatek MT8173 pin control" 105 depends on OF 106 depends on ARM64 || COMPILE_TEST 107 default ARM64 && ARCH_MEDIATEK 108 select PINCTRL_MTK 109 110config PINCTRL_MT8183 111 bool "Mediatek MT8183 pin control" 112 depends on OF 113 depends on ARM64 || COMPILE_TEST 114 default ARM64 && ARCH_MEDIATEK 115 select PINCTRL_MTK_PARIS 116 117config PINCTRL_MT8516 118 bool "Mediatek MT8516 pin control" 119 depends on OF 120 depends on ARM64 || COMPILE_TEST 121 default ARM64 && ARCH_MEDIATEK 122 select PINCTRL_MTK 123 124# For PMIC 125config PINCTRL_MT6397 126 bool "Mediatek MT6397 pin control" 127 depends on MFD_MT6397 || COMPILE_TEST 128 depends on OF 129 default MFD_MT6397 130 select PINCTRL_MTK 131 132endmenu 133