xref: /openbmc/linux/drivers/pinctrl/mediatek/Kconfig (revision 83a530e1)
1menu "MediaTek pinctrl drivers"
2	depends on ARCH_MEDIATEK || COMPILE_TEST
3
4config PINCTRL_MTK
5	bool
6	depends on OF
7	select PINMUX
8	select GENERIC_PINCONF
9	select GPIOLIB
10	select OF_GPIO
11
12# For ARMv7 SoCs
13config PINCTRL_MT2701
14	bool "Mediatek MT2701 pin control"
15	depends on MACH_MT7623 || MACH_MT2701 || COMPILE_TEST
16	depends on OF
17	default MACH_MT2701
18	select PINCTRL_MTK
19
20config PINCTRL_MT8135
21	bool "Mediatek MT8135 pin control"
22	depends on MACH_MT8135 || COMPILE_TEST
23	depends on OF
24	default MACH_MT8135
25	select PINCTRL_MTK
26
27config PINCTRL_MT8127
28	bool "Mediatek MT8127 pin control"
29	depends on MACH_MT8127 || COMPILE_TEST
30	depends on OF
31	default MACH_MT8127
32	select PINCTRL_MTK
33
34# For ARMv8 SoCs
35config PINCTRL_MT2712
36	bool "MediaTek MT2712 pin control"
37	depends on OF
38	depends on ARM64 || COMPILE_TEST
39	default ARM64 && ARCH_MEDIATEK
40	select PINCTRL_MTK
41
42config PINCTRL_MT7622
43	bool "MediaTek MT7622 pin control"
44	depends on OF
45	depends on ARM64 || COMPILE_TEST
46	select GENERIC_PINCONF
47	select GENERIC_PINCTRL_GROUPS
48	select GENERIC_PINMUX_FUNCTIONS
49	select GPIOLIB
50	select OF_GPIO
51
52config PINCTRL_MT8173
53	bool "Mediatek MT8173 pin control"
54	depends on OF
55	depends on ARM64 || COMPILE_TEST
56	default ARM64 && ARCH_MEDIATEK
57	select PINCTRL_MTK
58
59# For PMIC
60config PINCTRL_MT6397
61	bool "Mediatek MT6397 pin control"
62	depends on MFD_MT6397 || COMPILE_TEST
63	depends on OF
64	default MFD_MT6397
65	select PINCTRL_MTK
66
67endmenu
68