2021-11-04 20:52:43 +00:00
|
|
|
From 2e677e4ae8f8330f68013163b060d0fda3a43095 Mon Sep 17 00:00:00 2001
|
|
|
|
From: "Langer, Thomas" <tlanger@maxlinear.com>
|
|
|
|
Date: Fri, 9 Jul 2021 17:36:46 +0200
|
|
|
|
Subject: [PATCH] PONRTSYS-8842: aquantia: Add AQR113 driver support
|
|
|
|
|
|
|
|
Add a new entry for AQR113 PHY_ID
|
|
|
|
---
|
2023-11-19 11:52:55 +00:00
|
|
|
drivers/net/phy/aquantia/aquantia_main.c | 10 ++++++++++
|
2021-11-04 20:52:43 +00:00
|
|
|
1 file changed, 10 insertions(+)
|
|
|
|
|
2023-11-19 11:52:55 +00:00
|
|
|
--- a/drivers/net/phy/aquantia/aquantia_main.c
|
|
|
|
+++ b/drivers/net/phy/aquantia/aquantia_main.c
|
2024-01-26 05:19:42 +00:00
|
|
|
@@ -26,6 +26,7 @@
|
|
|
|
#define PHY_ID_AQR813 0x31c31cb2
|
2021-11-04 20:52:43 +00:00
|
|
|
#define PHY_ID_AQR112 0x03a1b662
|
2024-01-26 05:19:42 +00:00
|
|
|
#define PHY_ID_AQR412 0x03a1b712
|
2021-11-04 20:52:43 +00:00
|
|
|
+#define PHY_ID_AQR113 0x31c31c40
|
2024-01-26 05:19:42 +00:00
|
|
|
|
|
|
|
#define MDIO_PHYXS_VEND_IF_STATUS 0xe812
|
|
|
|
#define MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK GENMASK(7, 3)
|
2023-11-19 11:52:55 +00:00
|
|
|
@@ -923,6 +924,14 @@ static struct phy_driver aqr_driver[] =
|
2021-11-04 20:52:43 +00:00
|
|
|
.get_stats = aqr107_get_stats,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
+ PHY_ID_MATCH_MODEL(PHY_ID_AQR113),
|
|
|
|
+ .name = "Aquantia AQR113",
|
|
|
|
+ .config_aneg = aqr_config_aneg,
|
|
|
|
+ .config_intr = aqr_config_intr,
|
2022-01-08 13:39:54 +00:00
|
|
|
+ .handle_interrupt = aqr_handle_interrupt,
|
2021-11-04 20:52:43 +00:00
|
|
|
+ .read_status = aqr107_read_status,
|
|
|
|
+},
|
|
|
|
+{
|
|
|
|
PHY_ID_MATCH_MODEL(PHY_ID_AQR412),
|
|
|
|
.name = "Aquantia AQR412",
|
|
|
|
.probe = aqr107_probe,
|
2023-11-19 11:52:55 +00:00
|
|
|
@@ -950,6 +959,7 @@ static struct mdio_device_id __maybe_unu
|
2024-01-26 05:19:42 +00:00
|
|
|
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR813) },
|
2021-11-04 20:52:43 +00:00
|
|
|
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR112) },
|
2024-01-26 05:19:42 +00:00
|
|
|
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR412) },
|
2021-11-04 20:52:43 +00:00
|
|
|
+ { PHY_ID_MATCH_MODEL(PHY_ID_AQR113) },
|
2024-01-26 05:19:42 +00:00
|
|
|
{ }
|
|
|
|
};
|
|
|
|
|