xref: /linux/drivers/net/ethernet/mediatek/Kconfig (revision 84b9cd389036d4a262d8cee794d56c04095358a7)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2009fb097SJohn Crispinconfig NET_VENDOR_MEDIATEK
3d3d6974bSBartosz Golaszewski	bool "MediaTek devices"
4a3c62a04SLorenzo Bianconi	depends on ARCH_MEDIATEK || SOC_MT7621 || SOC_MT7620 || COMPILE_TEST
5a7f7f624SMasahiro Yamada	help
6009fb097SJohn Crispin	  If you have a Mediatek SoC with ethernet, say Y.
7009fb097SJohn Crispin
8009fb097SJohn Crispinif NET_VENDOR_MEDIATEK
9009fb097SJohn Crispin
10804775dfSFelix Fietkauconfig NET_MEDIATEK_SOC_WED
11804775dfSFelix Fietkau	depends on ARCH_MEDIATEK || COMPILE_TEST
12804775dfSFelix Fietkau	def_bool NET_MEDIATEK_SOC != n
13804775dfSFelix Fietkau
14009fb097SJohn Crispinconfig NET_MEDIATEK_SOC
152ec50f57SSean Wang	tristate "MediaTek SoC Gigabit Ethernet support"
160e389028SPablo Neira Ayuso	depends on NET_DSA || !NET_DSA
17a3c62a04SLorenzo Bianconi	select PINCTRL
18b8fc9f30SRené van Dorst	select PHYLINK
19e9229ffdSFelix Fietkau	select DIMLIB
2023233e57SLorenzo Bianconi	select PAGE_POOL
21*84b9cd38SLorenzo Bianconi	select PAGE_POOL_STATS
22a7f7f624SMasahiro Yamada	help
23009fb097SJohn Crispin	  This driver supports the gigabit ethernet MACs in the
242ec50f57SSean Wang	  MediaTek SoC family.
25009fb097SJohn Crispin
268c7bd5a4SBartosz Golaszewskiconfig NET_MEDIATEK_STAR_EMAC
278c7bd5a4SBartosz Golaszewski	tristate "MediaTek STAR Ethernet MAC support"
288c7bd5a4SBartosz Golaszewski	select PHYLIB
295403caf2SBartosz Golaszewski	select REGMAP_MMIO
308c7bd5a4SBartosz Golaszewski	help
318c7bd5a4SBartosz Golaszewski	  This driver supports the ethernet MAC IP first used on
328c7bd5a4SBartosz Golaszewski	  MediaTek MT85** SoCs.
338c7bd5a4SBartosz Golaszewski
34009fb097SJohn Crispinendif #NET_VENDOR_MEDIATEK
35