Skip to content

Commit 167f76a

Browse files
Shaohui Xiedavem330
authored andcommitted
phy: Add Vitesse 8514 phy ID
Phy is compatible with Vitesse 82xx Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6eabca5 commit 167f76a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎drivers/net/phy/vitesse.c‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464

6565
#define PHY_ID_VSC8234 0x000fc620
6666
#define PHY_ID_VSC8244 0x000fc6c0
67+
#define PHY_ID_VSC8514 0x00070670
6768
#define PHY_ID_VSC8574 0x000704a0
6869
#define PHY_ID_VSC8662 0x00070660
6970
#define PHY_ID_VSC8221 0x000fc550
@@ -131,6 +132,7 @@ static int vsc82xx_config_intr(struct phy_device *phydev)
131132
err = phy_write(phydev, MII_VSC8244_IMASK,
132133
(phydev->drv->phy_id == PHY_ID_VSC8234 ||
133134
phydev->drv->phy_id == PHY_ID_VSC8244 ||
135+
phydev->drv->phy_id == PHY_ID_VSC8514 ||
134136
phydev->drv->phy_id == PHY_ID_VSC8574) ?
135137
MII_VSC8244_IMASK_MASK :
136138
MII_VSC8221_IMASK_MASK);
@@ -245,6 +247,18 @@ static struct phy_driver vsc82xx_driver[] = {
245247
.ack_interrupt = &vsc824x_ack_interrupt,
246248
.config_intr = &vsc82xx_config_intr,
247249
.driver = { .owner = THIS_MODULE,},
250+
}, {
251+
.phy_id = PHY_ID_VSC8514,
252+
.name = "Vitesse VSC8514",
253+
.phy_id_mask = 0x000ffff0,
254+
.features = PHY_GBIT_FEATURES,
255+
.flags = PHY_HAS_INTERRUPT,
256+
.config_init = &vsc824x_config_init,
257+
.config_aneg = &vsc82x4_config_aneg,
258+
.read_status = &genphy_read_status,
259+
.ack_interrupt = &vsc824x_ack_interrupt,
260+
.config_intr = &vsc82xx_config_intr,
261+
.driver = { .owner = THIS_MODULE,},
248262
}, {
249263
.phy_id = PHY_ID_VSC8574,
250264
.name = "Vitesse VSC8574",
@@ -315,6 +329,7 @@ module_exit(vsc82xx_exit);
315329
static struct mdio_device_id __maybe_unused vitesse_tbl[] = {
316330
{ PHY_ID_VSC8234, 0x000ffff0 },
317331
{ PHY_ID_VSC8244, 0x000fffc0 },
332+
{ PHY_ID_VSC8514, 0x000ffff0 },
318333
{ PHY_ID_VSC8574, 0x000ffff0 },
319334
{ PHY_ID_VSC8662, 0x000ffff0 },
320335
{ PHY_ID_VSC8221, 0x000ffff0 },

0 commit comments

Comments
 (0)