aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-6.6/linux-yocto-6.6/0009-net-phy-Broadcom-Added-support-for-BCM84892-PHY-devi.patch
blob: c99391a647eeae2b39f93bfacadf6cc78e270b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From 09cab3b532b4ba5554ac247cba86ec8d1be12cdc Mon Sep 17 00:00:00 2001
From: rgaridap <Ramesh.Garidapuri@amd.com>
Date: Thu, 2 Mar 2023 09:03:49 +0530
Subject: [PATCH 09/31] net: phy: Broadcom: Added support for BCM84892 PHY
 device

Signed-off-by: rgaridap <Ramesh.Garidapuri@amd.com>
Change-Id: I040e4ed910bdd7965eaa899e1826e64fcfe7e85f
---
 drivers/net/phy/bcm84881.c | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/drivers/net/phy/bcm84881.c b/drivers/net/phy/bcm84881.c
index 9717a1626f3f..fa7d941d0a65 100644
--- a/drivers/net/phy/bcm84881.c
+++ b/drivers/net/phy/bcm84881.c
@@ -75,8 +75,7 @@ static int bcm84881_config_aneg(struct phy_device *phydev)
 {
 	bool changed = false;
 	u32 adv;
-	int ret;
-
+        int ret;
 	/* Wait for the PHY to finish initialising, otherwise our
 	 * advertisement may be overwritten.
 	 */
@@ -235,6 +234,18 @@ static struct phy_driver bcm84881_drivers[] = {
 		.aneg_done	= bcm84881_aneg_done,
 		.read_status	= bcm84881_read_status,
 	},
+	{
+		.phy_id         = 0x359050a1,
+		.phy_id_mask    = 0xfffffff0,
+		.name           = "Broadcom BCM84892",
+		.config_init    = bcm84881_config_init,
+		.probe          = bcm84881_probe,
+		.get_features   = bcm84881_get_features,
+		.config_aneg    = bcm84881_config_aneg,
+		.aneg_done      = bcm84881_aneg_done,
+		.read_status    = bcm84881_read_status,
+	},
+
 };
 
 module_phy_driver(bcm84881_drivers);
@@ -242,6 +253,7 @@ module_phy_driver(bcm84881_drivers);
 /* FIXME: module auto-loading for Clause 45 PHYs seems non-functional */
 static struct mdio_device_id __maybe_unused bcm84881_tbl[] = {
 	{ 0xae025150, 0xfffffff0 },
+	{ 0x359050a1, 0xfffffff0 },
 	{ },
 };
 MODULE_AUTHOR("Russell King");
-- 
2.34.1