Skip to content

Commit 71b605d

Browse files
Ansueldavem330
authored andcommitted
net: phy: aquantia: add AQR113 PHY ID
Add Aquantia AQR113 PHY ID. Aquantia AQR113 is just a chip size variant of the already supported AQR133C where the only difference is the PHY ID and the hw chip size. Signed-off-by: Christian Marangi <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1d085e9 commit 71b605d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

drivers/net/phy/aquantia/aquantia_main.c

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#define PHY_ID_AQR111B0 0x03a1b612
2727
#define PHY_ID_AQR112 0x03a1b662
2828
#define PHY_ID_AQR412 0x03a1b712
29+
#define PHY_ID_AQR113 0x31c31c40
2930
#define PHY_ID_AQR113C 0x31c31c12
3031

3132
#define MDIO_PHYXS_VEND_IF_STATUS 0xe812
@@ -922,6 +923,25 @@ static struct phy_driver aqr_driver[] = {
922923
.get_stats = aqr107_get_stats,
923924
.link_change_notify = aqr107_link_change_notify,
924925
},
926+
{
927+
PHY_ID_MATCH_MODEL(PHY_ID_AQR113),
928+
.name = "Aquantia AQR113",
929+
.probe = aqr107_probe,
930+
.get_rate_matching = aqr107_get_rate_matching,
931+
.config_init = aqr113c_config_init,
932+
.config_aneg = aqr_config_aneg,
933+
.config_intr = aqr_config_intr,
934+
.handle_interrupt = aqr_handle_interrupt,
935+
.read_status = aqr107_read_status,
936+
.get_tunable = aqr107_get_tunable,
937+
.set_tunable = aqr107_set_tunable,
938+
.suspend = aqr107_suspend,
939+
.resume = aqr107_resume,
940+
.get_sset_count = aqr107_get_sset_count,
941+
.get_strings = aqr107_get_strings,
942+
.get_stats = aqr107_get_stats,
943+
.link_change_notify = aqr107_link_change_notify,
944+
},
925945
{
926946
PHY_ID_MATCH_MODEL(PHY_ID_AQR113C),
927947
.name = "Aquantia AQR113C",
@@ -957,6 +977,7 @@ static struct mdio_device_id __maybe_unused aqr_tbl[] = {
957977
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR111B0) },
958978
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR112) },
959979
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR412) },
980+
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR113) },
960981
{ PHY_ID_MATCH_MODEL(PHY_ID_AQR113C) },
961982
{ }
962983
};

0 commit comments

Comments
 (0)