1# SPDX-License-Identifier: GPL-2.0-only
2config NET_VENDOR_MEDIATEK
3	bool "MediaTek devices"
4	depends on ARCH_MEDIATEK || SOC_MT7621 || SOC_MT7620 || COMPILE_TEST
5	help
6	  If you have a Mediatek SoC with ethernet, say Y.
7
8if NET_VENDOR_MEDIATEK
9
10config NET_MEDIATEK_SOC_WED
11	depends on ARCH_MEDIATEK || COMPILE_TEST
12	def_bool NET_MEDIATEK_SOC != n
13
14config NET_MEDIATEK_SOC
15	tristate "MediaTek SoC Gigabit Ethernet support"
16	depends on NET_DSA || !NET_DSA
17	select PINCTRL
18	select PHYLINK
19	select DIMLIB
20	select PAGE_POOL
21	select PAGE_POOL_STATS
22	help
23	  This driver supports the gigabit ethernet MACs in the
24	  MediaTek SoC family.
25
26config NET_MEDIATEK_STAR_EMAC
27	tristate "MediaTek STAR Ethernet MAC support"
28	select PHYLIB
29	select REGMAP_MMIO
30	help
31	  This driver supports the ethernet MAC IP first used on
32	  MediaTek MT85** SoCs.
33
34endif #NET_VENDOR_MEDIATEK
35