Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5800091

Browse files
blocktrrondavem330
authored andcommitted
net: phy: at803x: add support for AR8032 PHY
This adds support for the Qualcomm Atheros AR8032 Fast Ethernet PHY. It shares many similarities with the already supported AR8030 PHY but additionally supports MII connection to the MAC. Signed-off-by: David Bauer <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 513a24f commit 5800091

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

drivers/net/phy/at803x.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
#define ATH9331_PHY_ID 0x004dd041
107107
#define ATH8030_PHY_ID 0x004dd076
108108
#define ATH8031_PHY_ID 0x004dd074
109+
#define ATH8032_PHY_ID 0x004dd023
109110
#define ATH8035_PHY_ID 0x004dd072
110111
#define AT803X_PHY_ID_MASK 0xffffffef
111112

@@ -762,6 +763,21 @@ static struct phy_driver at803x_driver[] = {
762763
.aneg_done = at803x_aneg_done,
763764
.ack_interrupt = &at803x_ack_interrupt,
764765
.config_intr = &at803x_config_intr,
766+
}, {
767+
/* Qualcomm Atheros AR8032 */
768+
PHY_ID_MATCH_EXACT(ATH8032_PHY_ID),
769+
.name = "Qualcomm Atheros AR8032",
770+
.probe = at803x_probe,
771+
.remove = at803x_remove,
772+
.config_init = at803x_config_init,
773+
.link_change_notify = at803x_link_change_notify,
774+
.set_wol = at803x_set_wol,
775+
.get_wol = at803x_get_wol,
776+
.suspend = at803x_suspend,
777+
.resume = at803x_resume,
778+
/* PHY_BASIC_FEATURES */
779+
.ack_interrupt = at803x_ack_interrupt,
780+
.config_intr = at803x_config_intr,
765781
}, {
766782
/* ATHEROS AR9331 */
767783
PHY_ID_MATCH_EXACT(ATH9331_PHY_ID),
@@ -778,6 +794,7 @@ module_phy_driver(at803x_driver);
778794
static struct mdio_device_id __maybe_unused atheros_tbl[] = {
779795
{ ATH8030_PHY_ID, AT803X_PHY_ID_MASK },
780796
{ ATH8031_PHY_ID, AT803X_PHY_ID_MASK },
797+
{ PHY_ID_MATCH_EXACT(ATH8032_PHY_ID) },
781798
{ ATH8035_PHY_ID, AT803X_PHY_ID_MASK },
782799
{ PHY_ID_MATCH_EXACT(ATH9331_PHY_ID) },
783800
{ }

0 commit comments

Comments
 (0)