1if ARCH_MEDIATEK || COMPILE_TEST
2
3config PINCTRL_MTK_COMMON
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_MT8135
13	bool "Mediatek MT8135 pin control" if COMPILE_TEST && !MACH_MT8135
14	depends on OF
15	default MACH_MT8135
16	select PINCTRL_MTK_COMMON
17
18# For ARMv8 SoCs
19config PINCTRL_MT8173
20	bool "Mediatek MT8173 pin control"
21	depends on OF
22	depends on ARM64 || COMPILE_TEST
23	default ARM64 && ARCH_MEDIATEK
24	select PINCTRL_MTK_COMMON
25
26endif
27