blob: 35519354c8fdccbb2b063afaecf05e5870ef6841 [file] [log] [blame]
developeredbe69e2023-06-08 11:08:46 +08001From 0e0b69abbc9fdba0bf1ea723cee71b2a2402559e Mon Sep 17 00:00:00 2001
2From: Sam Shih <sam.shih@mediatek.com>
3Date: Fri, 2 Jun 2023 13:06:28 +0800
4Subject: [PATCH]
5 [networking][999-2703-net-phy-backport-v5.4-mediatek-ge-and-v6.4-mediatek-ge-soc.patch]
6
7---
8 drivers/net/phy/Kconfig | 17 +++++++++++++++++
9 drivers/net/phy/Makefile | 2 ++
10 2 files changed, 19 insertions(+)
11
12diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
13index 5eeccfee2..ec5c66d0a 100644
developer05085502023-04-06 13:04:13 +080014--- a/drivers/net/phy/Kconfig
15+++ b/drivers/net/phy/Kconfig
developeredbe69e2023-06-08 11:08:46 +080016@@ -512,6 +512,23 @@ config MESON_GXL_PHY
developer05085502023-04-06 13:04:13 +080017 ---help---
developer4af681c2023-05-22 14:34:27 +080018 Currently has a driver for the Amlogic Meson GXL Internal PHY
developer05085502023-04-06 13:04:13 +080019
20+config MEDIATEK_GE_PHY
21+ tristate "MediaTek Gigabit Ethernet PHYs"
22+ help
23+ Supports the MediaTek Gigabit Ethernet PHYs.
24+
developer4af681c2023-05-22 14:34:27 +080025+config MEDIATEK_GE_SOC_PHY
developer05085502023-04-06 13:04:13 +080026+ bool "MediaTek SoC Ethernet PHYs"
developer4af681c2023-05-22 14:34:27 +080027+ depends on (ARM64 && ARCH_MEDIATEK) || COMPILE_TEST
developer05085502023-04-06 13:04:13 +080028+ select NVMEM_MTK_EFUSE
29+ help
30+ Supports MediaTek SoC built-in Gigabit Ethernet PHYs.
31+
32+ Include support for built-in Ethernet PHYs which are present in
33+ the MT7981 and MT7988 SoCs. These PHYs need calibration data
34+ present in the SoCs efuse and will dynamically calibrate VCM
35+ (common-mode voltage) during startup.
36+
37 config MICREL_PHY
38 tristate "Micrel PHYs"
39 ---help---
developeredbe69e2023-06-08 11:08:46 +080040diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile
41index 437ff2a2c..f4feb0e3d 100644
42--- a/drivers/net/phy/Makefile
43+++ b/drivers/net/phy/Makefile
44@@ -94,6 +94,8 @@ obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c.o
45 obj-$(CONFIG_LXT_PHY) += lxt.o
46 obj-$(CONFIG_MARVELL_PHY) += marvell.o
47 obj-$(CONFIG_MARVELL_10G_PHY) += marvell10g.o
48+obj-$(CONFIG_MEDIATEK_GE_PHY) += mediatek-ge.o
49+obj-$(CONFIG_MEDIATEK_GE_SOC_PHY) += mediatek-ge-soc.o
50 obj-$(CONFIG_MESON_GXL_PHY) += meson-gxl.o
51 obj-$(CONFIG_MICREL_KS8995MA) += spi_ks8995.o
52 obj-$(CONFIG_MICREL_PHY) += micrel.o
53--
542.34.1
55