xref: /linux/drivers/net/phy/mediatek/Kconfig (revision 6a325aed130bb68790e765f923e76ec5669d2da7)
14c452f7eSSkyLake.Huang# SPDX-License-Identifier: GPL-2.0-only
27f9c320cSSkyLake.Huangconfig MTK_NET_PHYLIB
37f9c320cSSkyLake.Huang	tristate
47f9c320cSSkyLake.Huang
54c452f7eSSkyLake.Huangconfig MEDIATEK_GE_PHY
64c452f7eSSkyLake.Huang	tristate "MediaTek Gigabit Ethernet PHYs"
73cb1a3c9SSkyLake.Huang	select MTK_NET_PHYLIB
84c452f7eSSkyLake.Huang	help
94c452f7eSSkyLake.Huang	  Supports the MediaTek non-built-in Gigabit Ethernet PHYs.
104c452f7eSSkyLake.Huang
114c452f7eSSkyLake.Huang	  Non-built-in Gigabit Ethernet PHYs include mt7530/mt7531.
124c452f7eSSkyLake.Huang	  You may find mt7530 inside mt7621. This driver shares some
134c452f7eSSkyLake.Huang	  common operations with MediaTek SoC built-in Gigabit
144c452f7eSSkyLake.Huang	  Ethernet PHYs.
154c452f7eSSkyLake.Huang
164c452f7eSSkyLake.Huangconfig MEDIATEK_GE_SOC_PHY
174c452f7eSSkyLake.Huang	tristate "MediaTek SoC Ethernet PHYs"
18*6a325aedSChristian Marangi	depends on ARM64 || COMPILE_TEST
19*6a325aedSChristian Marangi	depends on ARCH_AIROHA || (ARCH_MEDIATEK && NVMEM_MTK_EFUSE) || \
20*6a325aedSChristian Marangi		   COMPILE_TEST
217f9c320cSSkyLake.Huang	select MTK_NET_PHYLIB
224c452f7eSSkyLake.Huang	help
234c452f7eSSkyLake.Huang	  Supports MediaTek SoC built-in Gigabit Ethernet PHYs.
244c452f7eSSkyLake.Huang
254c452f7eSSkyLake.Huang	  Include support for built-in Ethernet PHYs which are present in
264c452f7eSSkyLake.Huang	  the MT7981 and MT7988 SoCs. These PHYs need calibration data
274c452f7eSSkyLake.Huang	  present in the SoCs efuse and will dynamically calibrate VCM
284c452f7eSSkyLake.Huang	  (common-mode voltage) during startup.
29