blob: 83df94aa83a4ecce6cc5b7f7c84a28c4828e81b6 [file] [log] [blame]
developer394d5eb2023-04-14 16:46:45 +08001--- a/drivers/net/phy/Makefile
2+++ b/drivers/net/phy/Makefile
3@@ -92,6 +92,8 @@ obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c
4 obj-$(CONFIG_LXT_PHY) += lxt.o
5 obj-$(CONFIG_MARVELL_PHY) += marvell.o
6 obj-$(CONFIG_MARVELL_10G_PHY) += marvell10g.o
7+obj-$(CONFIG_MEDIATEK_GE_PHY) += mediatek-ge.o
8+obj-$(CONFIG_MEDIATEK_GE_SOC_PHY) += mediatek-ge-soc.o
9 obj-$(CONFIG_MESON_GXL_PHY) += meson-gxl.o
10 obj-$(CONFIG_MICREL_KS8995MA) += spi_ks8995.o
11 obj-$(CONFIG_MICREL_PHY) += micrel.o
developer90020932023-03-10 18:51:34 +080012--- a/drivers/net/phy/Kconfig
13+++ b/drivers/net/phy/Kconfig
developer394d5eb2023-04-14 16:46:45 +080014@@ -507,6 +507,23 @@ config MESON_GXL_PHY
developer90020932023-03-10 18:51:34 +080015 ---help---
developer394d5eb2023-04-14 16:46:45 +080016 Currently has a driver for the Amlogic Meson GXL Internal PHY
developer90020932023-03-10 18:51:34 +080017
18+config MEDIATEK_GE_PHY
19+ tristate "MediaTek Gigabit Ethernet PHYs"
20+ help
21+ Supports the MediaTek Gigabit Ethernet PHYs.
22+
developer394d5eb2023-04-14 16:46:45 +080023+config MEDIATEK_GE_SOC_PHY
developer90020932023-03-10 18:51:34 +080024+ bool "MediaTek SoC Ethernet PHYs"
developer394d5eb2023-04-14 16:46:45 +080025+ depends on (ARM64 && ARCH_MEDIATEK) || COMPILE_TEST
developer90020932023-03-10 18:51:34 +080026+ select NVMEM_MTK_EFUSE
27+ help
28+ Supports MediaTek SoC built-in Gigabit Ethernet PHYs.
29+
30+ Include support for built-in Ethernet PHYs which are present in
31+ the MT7981 and MT7988 SoCs. These PHYs need calibration data
32+ present in the SoCs efuse and will dynamically calibrate VCM
33+ (common-mode voltage) during startup.
34+
35 config MICREL_PHY
36 tristate "Micrel PHYs"
37 ---help---