# SPDX-License-Identifier: GPL-2.0-only
menu "MediaTek pinctrl drivers"
depends on [31mCONFIG_ARCH_MEDIATEK[0m || [31mCONFIG_COMPILE_TEST[0m
config [31mCONFIG_EINT_MTK[0m
bool "MediaTek External Interrupt Support"
depends on [31mCONFIG_PINCTRL_MTK[0m || [31mCONFIG_PINCTRL_MTK_MOORE[0m || [31mCONFIG_PINCTRL_MTK_PARIS[0m || [31mCONFIG_COMPILE_TEST[0m
select [31mCONFIG_GPIOLIB[0m
select [31mCONFIG_IRQ_DOMAIN[0m
config [31mCONFIG_PINCTRL_MTK[0m
bool
depends on [31mCONFIG_OF[0m
select [31mCONFIG_PINMUX[0m
select [31mCONFIG_GENERIC_PINCONF[0m
select [31mCONFIG_GPIOLIB[0m
select [31mCONFIG_EINT_MTK[0m
select [31mCONFIG_OF_GPIO[0m
config [31mCONFIG_PINCTRL_MTK_MOORE[0m
bool
depends on [31mCONFIG_OF[0m
select [31mCONFIG_GENERIC_PINCONF[0m
select [31mCONFIG_GENERIC_PINCTRL_GROUPS[0m
select [31mCONFIG_GENERIC_PINMUX_FUNCTIONS[0m
select [31mCONFIG_GPIOLIB[0m
select [31mCONFIG_OF_GPIO[0m
config [31mCONFIG_PINCTRL_MTK_PARIS[0m
bool
depends on [31mCONFIG_OF[0m
select [31mCONFIG_PINMUX[0m
select [31mCONFIG_GENERIC_PINCONF[0m
select [31mCONFIG_GPIOLIB[0m
select [31mCONFIG_EINT_MTK[0m
select [31mCONFIG_OF_GPIO[0m
# For ARMv7 SoCs
config [31mCONFIG_PINCTRL_MT2701[0m
bool "Mediatek MT2701 pin control"
depends on [31mCONFIG_MACH_MT7623[0m || [31mCONFIG_MACH_MT2701[0m || [31mCONFIG_COMPILE_TEST[0m
depends on [31mCONFIG_OF[0m
default [31mCONFIG_MACH_MT2701[0m
select [31mCONFIG_PINCTRL_MTK[0m
config [31mCONFIG_PINCTRL_MT7623[0m
bool "Mediatek MT7623 pin control with generic binding"
depends on [31mCONFIG_MACH_MT7623[0m || [31mCONFIG_COMPILE_TEST[0m
depends on [31mCONFIG_OF[0m
default [31mCONFIG_MACH_MT7623[0m
select [31mCONFIG_PINCTRL_MTK_MOORE[0m
config [31mCONFIG_PINCTRL_MT7629[0m
bool "Mediatek MT7629 pin control"
depends on [31mCONFIG_MACH_MT7629[0m || [31mCONFIG_COMPILE_TEST[0m
depends on [31mCONFIG_OF[0m
default [31mCONFIG_MACH_MT7629[0m
select [31mCONFIG_PINCTRL_MTK_MOORE[0m
config [31mCONFIG_PINCTRL_MT8135[0m
bool "Mediatek MT8135 pin control"
depends on [31mCONFIG_MACH_MT8135[0m || [31mCONFIG_COMPILE_TEST[0m
depends on [31mCONFIG_OF[0m
default [31mCONFIG_MACH_MT8135[0m
select [31mCONFIG_PINCTRL_MTK[0m
config [31mCONFIG_PINCTRL_MT8127[0m
bool "Mediatek MT8127 pin control"
depends on [31mCONFIG_MACH_MT8127[0m || [31mCONFIG_COMPILE_TEST[0m
depends on [31mCONFIG_OF[0m
default [31mCONFIG_MACH_MT8127[0m
select [31mCONFIG_PINCTRL_MTK[0m
# For ARMv8 SoCs
config [31mCONFIG_PINCTRL_MT2712[0m
bool "MediaTek MT2712 pin control"
depends on [31mCONFIG_OF[0m
depends on [31mCONFIG_ARM64[0m || [31mCONFIG_COMPILE_TEST[0m
default [31mCONFIG_ARM64[0m && [31mCONFIG_ARCH_MEDIATEK[0m
select [31mCONFIG_PINCTRL_MTK[0m
config [31mCONFIG_PINCTRL_MT6765[0m
bool "Mediatek MT6765 pin control"
depends on [31mCONFIG_OF[0m
depends on [31mCONFIG_ARM64[0m || [31mCONFIG_COMPILE_TEST[0m
default [31mCONFIG_ARM64[0m && [31mCONFIG_ARCH_MEDIATEK[0m
select [31mCONFIG_PINCTRL_MTK_PARIS[0m
config [31mCONFIG_PINCTRL_MT6797[0m
bool "Mediatek MT6797 pin control"
depends on [31mCONFIG_OF[0m
depends on [31mCONFIG_ARM64[0m || [31mCONFIG_COMPILE_TEST[0m
default [31mCONFIG_ARM64[0m && [31mCONFIG_ARCH_MEDIATEK[0m
select [31mCONFIG_PINCTRL_MTK_PARIS[0m
config [31mCONFIG_PINCTRL_MT7622[0m
bool "MediaTek MT7622 pin control"
depends on [31mCONFIG_OF[0m
depends on [31mCONFIG_ARM64[0m || [31mCONFIG_COMPILE_TEST[0m
default [31mCONFIG_ARM64[0m && [31mCONFIG_ARCH_MEDIATEK[0m
select [31mCONFIG_PINCTRL_MTK_MOORE[0m
config [31mCONFIG_PINCTRL_MT8173[0m
bool "Mediatek MT8173 pin control"
depends on [31mCONFIG_OF[0m
depends on [31mCONFIG_ARM64[0m || [31mCONFIG_COMPILE_TEST[0m
default [31mCONFIG_ARM64[0m && [31mCONFIG_ARCH_MEDIATEK[0m
select [31mCONFIG_PINCTRL_MTK[0m
config [31mCONFIG_PINCTRL_MT8183[0m
bool "Mediatek MT8183 pin control"
depends on [31mCONFIG_OF[0m
depends on [31mCONFIG_ARM64[0m || [31mCONFIG_COMPILE_TEST[0m
default [31mCONFIG_ARM64[0m && [31mCONFIG_ARCH_MEDIATEK[0m
select [31mCONFIG_PINCTRL_MTK_PARIS[0m
config [31mCONFIG_PINCTRL_MT8516[0m
bool "Mediatek MT8516 pin control"
depends on [31mCONFIG_OF[0m
depends on [31mCONFIG_ARM64[0m || [31mCONFIG_COMPILE_TEST[0m
default [31mCONFIG_ARM64[0m && [31mCONFIG_ARCH_MEDIATEK[0m
select [31mCONFIG_PINCTRL_MTK[0m
# For PMIC
config [31mCONFIG_PINCTRL_MT6397[0m
bool "Mediatek MT6397 pin control"
depends on [31mCONFIG_MFD_MT6397[0m || [31mCONFIG_COMPILE_TEST[0m
depends on [31mCONFIG_OF[0m
default [31mCONFIG_MFD_MT6397[0m
select [31mCONFIG_PINCTRL_MTK[0m
endmenu