Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: GPL-2.0-only
menu "MediaTek pinctrl drivers"
	depends on CONFIG_ARCH_MEDIATEK || CONFIG_COMPILE_TEST

config CONFIG_EINT_MTK
	bool "MediaTek External Interrupt Support"
	depends on CONFIG_PINCTRL_MTK || CONFIG_PINCTRL_MTK_MOORE || CONFIG_PINCTRL_MTK_PARIS || CONFIG_COMPILE_TEST
	select CONFIG_GPIOLIB
	select CONFIG_IRQ_DOMAIN

config CONFIG_PINCTRL_MTK
	bool
	depends on CONFIG_OF
	select CONFIG_PINMUX
	select CONFIG_GENERIC_PINCONF
	select CONFIG_GPIOLIB
	select CONFIG_EINT_MTK
	select CONFIG_OF_GPIO

config CONFIG_PINCTRL_MTK_MOORE
	bool
	depends on CONFIG_OF
	select CONFIG_GENERIC_PINCONF
	select CONFIG_GENERIC_PINCTRL_GROUPS
	select CONFIG_GENERIC_PINMUX_FUNCTIONS
	select CONFIG_GPIOLIB
	select CONFIG_OF_GPIO

config CONFIG_PINCTRL_MTK_PARIS
	bool
	depends on CONFIG_OF
	select CONFIG_PINMUX
	select CONFIG_GENERIC_PINCONF
	select CONFIG_GPIOLIB
	select CONFIG_EINT_MTK
	select CONFIG_OF_GPIO

# For ARMv7 SoCs
config CONFIG_PINCTRL_MT2701
	bool "Mediatek MT2701 pin control"
	depends on CONFIG_MACH_MT7623 || CONFIG_MACH_MT2701 || CONFIG_COMPILE_TEST
	depends on CONFIG_OF
	default CONFIG_MACH_MT2701
	select CONFIG_PINCTRL_MTK

config CONFIG_PINCTRL_MT7623
	bool "Mediatek MT7623 pin control with generic binding"
	depends on CONFIG_MACH_MT7623 || CONFIG_COMPILE_TEST
	depends on CONFIG_OF
	default CONFIG_MACH_MT7623
	select CONFIG_PINCTRL_MTK_MOORE

config CONFIG_PINCTRL_MT7629
	bool "Mediatek MT7629 pin control"
	depends on CONFIG_MACH_MT7629 || CONFIG_COMPILE_TEST
	depends on CONFIG_OF
	default CONFIG_MACH_MT7629
	select CONFIG_PINCTRL_MTK_MOORE

config CONFIG_PINCTRL_MT8135
	bool "Mediatek MT8135 pin control"
	depends on CONFIG_MACH_MT8135 || CONFIG_COMPILE_TEST
	depends on CONFIG_OF
	default CONFIG_MACH_MT8135
	select CONFIG_PINCTRL_MTK

config CONFIG_PINCTRL_MT8127
	bool "Mediatek MT8127 pin control"
	depends on CONFIG_MACH_MT8127 || CONFIG_COMPILE_TEST
	depends on CONFIG_OF
	default CONFIG_MACH_MT8127
	select CONFIG_PINCTRL_MTK

# For ARMv8 SoCs
config CONFIG_PINCTRL_MT2712
	bool "MediaTek MT2712 pin control"
	depends on CONFIG_OF
	depends on CONFIG_ARM64 || CONFIG_COMPILE_TEST
	default CONFIG_ARM64 && CONFIG_ARCH_MEDIATEK
	select CONFIG_PINCTRL_MTK

config CONFIG_PINCTRL_MT6765
	bool "Mediatek MT6765 pin control"
	depends on CONFIG_OF
	depends on CONFIG_ARM64 || CONFIG_COMPILE_TEST
	default CONFIG_ARM64 && CONFIG_ARCH_MEDIATEK
	select CONFIG_PINCTRL_MTK_PARIS

config CONFIG_PINCTRL_MT6797
	bool "Mediatek MT6797 pin control"
	depends on CONFIG_OF
	depends on CONFIG_ARM64 || CONFIG_COMPILE_TEST
	default CONFIG_ARM64 && CONFIG_ARCH_MEDIATEK
	select CONFIG_PINCTRL_MTK_PARIS

config CONFIG_PINCTRL_MT7622
	bool "MediaTek MT7622 pin control"
	depends on CONFIG_OF
	depends on CONFIG_ARM64 || CONFIG_COMPILE_TEST
	default CONFIG_ARM64 && CONFIG_ARCH_MEDIATEK
	select CONFIG_PINCTRL_MTK_MOORE

config CONFIG_PINCTRL_MT8173
	bool "Mediatek MT8173 pin control"
	depends on CONFIG_OF
	depends on CONFIG_ARM64 || CONFIG_COMPILE_TEST
	default CONFIG_ARM64 && CONFIG_ARCH_MEDIATEK
	select CONFIG_PINCTRL_MTK

config CONFIG_PINCTRL_MT8183
	bool "Mediatek MT8183 pin control"
	depends on CONFIG_OF
	depends on CONFIG_ARM64 || CONFIG_COMPILE_TEST
	default CONFIG_ARM64 && CONFIG_ARCH_MEDIATEK
	select CONFIG_PINCTRL_MTK_PARIS

config CONFIG_PINCTRL_MT8516
	bool "Mediatek MT8516 pin control"
	depends on CONFIG_OF
	depends on CONFIG_ARM64 || CONFIG_COMPILE_TEST
	default CONFIG_ARM64 && CONFIG_ARCH_MEDIATEK
	select CONFIG_PINCTRL_MTK

# For PMIC
config CONFIG_PINCTRL_MT6397
	bool "Mediatek MT6397 pin control"
	depends on CONFIG_MFD_MT6397 || CONFIG_COMPILE_TEST
	depends on CONFIG_OF
	default CONFIG_MFD_MT6397
	select CONFIG_PINCTRL_MTK

endmenu