Skip to content

Commit f452518

Browse files
mkresindavem330
authored andcommitted
net: phy: intel-xway: add VR9 v1.1 phy ids
The phys embedded into the v1.1 of the VR9 SoC are using different phy ids. Add the phy ids to use the driver for this VR9 version as well. Signed-off-by: Mathias Kresin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5b73d99 commit f452518

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

drivers/net/phy/intel-xway.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@
149149
#define PHY_ID_PHY22F_1_4 0xD565A410
150150
#define PHY_ID_PHY11G_1_5 0xD565A401
151151
#define PHY_ID_PHY22F_1_5 0xD565A411
152+
#define PHY_ID_PHY11G_VR9_1_1 0xD565A408
153+
#define PHY_ID_PHY22F_VR9_1_1 0xD565A418
152154
#define PHY_ID_PHY11G_VR9_1_2 0xD565A409
153155
#define PHY_ID_PHY22F_VR9_1_2 0xD565A419
154156

@@ -311,6 +313,30 @@ static struct phy_driver xway_gphy[] = {
311313
.config_intr = xway_gphy_config_intr,
312314
.suspend = genphy_suspend,
313315
.resume = genphy_resume,
316+
}, {
317+
.phy_id = PHY_ID_PHY11G_VR9_1_1,
318+
.phy_id_mask = 0xffffffff,
319+
.name = "Intel XWAY PHY11G (xRX v1.1 integrated)",
320+
.features = PHY_GBIT_FEATURES,
321+
.flags = PHY_HAS_INTERRUPT,
322+
.config_init = xway_gphy_config_init,
323+
.ack_interrupt = xway_gphy_ack_interrupt,
324+
.did_interrupt = xway_gphy_did_interrupt,
325+
.config_intr = xway_gphy_config_intr,
326+
.suspend = genphy_suspend,
327+
.resume = genphy_resume,
328+
}, {
329+
.phy_id = PHY_ID_PHY22F_VR9_1_1,
330+
.phy_id_mask = 0xffffffff,
331+
.name = "Intel XWAY PHY22F (xRX v1.1 integrated)",
332+
.features = PHY_BASIC_FEATURES,
333+
.flags = PHY_HAS_INTERRUPT,
334+
.config_init = xway_gphy_config_init,
335+
.ack_interrupt = xway_gphy_ack_interrupt,
336+
.did_interrupt = xway_gphy_did_interrupt,
337+
.config_intr = xway_gphy_config_intr,
338+
.suspend = genphy_suspend,
339+
.resume = genphy_resume,
314340
}, {
315341
.phy_id = PHY_ID_PHY11G_VR9_1_2,
316342
.phy_id_mask = 0xffffffff,
@@ -346,6 +372,8 @@ static struct mdio_device_id __maybe_unused xway_gphy_tbl[] = {
346372
{ PHY_ID_PHY22F_1_4, 0xffffffff },
347373
{ PHY_ID_PHY11G_1_5, 0xffffffff },
348374
{ PHY_ID_PHY22F_1_5, 0xffffffff },
375+
{ PHY_ID_PHY11G_VR9_1_1, 0xffffffff },
376+
{ PHY_ID_PHY22F_VR9_1_1, 0xffffffff },
349377
{ PHY_ID_PHY11G_VR9_1_2, 0xffffffff },
350378
{ PHY_ID_PHY22F_VR9_1_2, 0xffffffff },
351379
{ }

0 commit comments

Comments
 (0)