xref: /openbmc/linux/drivers/pinctrl/mediatek/Kconfig (revision c0c74acb)
1if ARCH_MEDIATEK || COMPILE_TEST
2
3config PINCTRL_MTK
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_MT2701
13	bool "Mediatek MT2701 pin control"
14	depends on MACH_MT2701 || COMPILE_TEST
15	depends on OF
16	default MACH_MT2701
17	select PINCTRL_MTK
18
19config PINCTRL_MT7623
20	bool "Mediatek MT7623 pin control"
21	depends on MACH_MT7623 || COMPILE_TEST
22	depends on OF
23	default MACH_MT7623
24	select PINCTRL_MTK_COMMON
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_MT8173
42	bool "Mediatek MT8173 pin control"
43	depends on OF
44	depends on ARM64 || COMPILE_TEST
45	default ARM64 && ARCH_MEDIATEK
46	select PINCTRL_MTK
47
48# For PMIC
49config PINCTRL_MT6397
50	bool "Mediatek MT6397 pin control"
51	depends on MFD_MT6397 || COMPILE_TEST
52	depends on OF
53	default MFD_MT6397
54	select PINCTRL_MTK
55
56endif
57