diff options
-rw-r--r-- | drivers/net/phy/marvell.c | 18 | ||||
-rw-r--r-- | include/linux/marvell_phy.h | 2 |
2 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index e2afdce0a437..f0bd1a1aba3a 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c | |||
@@ -74,8 +74,8 @@ | |||
74 | #define MII_88E1121_PHY_MSCR_TX_DELAY BIT(4) | 74 | #define MII_88E1121_PHY_MSCR_TX_DELAY BIT(4) |
75 | #define MII_88E1121_PHY_MSCR_DELAY_MASK (~(0x3 << 4)) | 75 | #define MII_88E1121_PHY_MSCR_DELAY_MASK (~(0x3 << 4)) |
76 | 76 | ||
77 | #define MII_88EC048_PHY_MSCR1_REG 16 | 77 | #define MII_88E1318S_PHY_MSCR1_REG 16 |
78 | #define MII_88EC048_PHY_MSCR1_PAD_ODD BIT(6) | 78 | #define MII_88E1318S_PHY_MSCR1_PAD_ODD BIT(6) |
79 | 79 | ||
80 | #define MII_88E1121_PHY_LED_CTRL 16 | 80 | #define MII_88E1121_PHY_LED_CTRL 16 |
81 | #define MII_88E1121_PHY_LED_PAGE 3 | 81 | #define MII_88E1121_PHY_LED_PAGE 3 |
@@ -240,7 +240,7 @@ static int m88e1121_config_aneg(struct phy_device *phydev) | |||
240 | return err; | 240 | return err; |
241 | } | 241 | } |
242 | 242 | ||
243 | static int m88ec048_config_aneg(struct phy_device *phydev) | 243 | static int m88e1318_config_aneg(struct phy_device *phydev) |
244 | { | 244 | { |
245 | int err, oldpage, mscr; | 245 | int err, oldpage, mscr; |
246 | 246 | ||
@@ -251,10 +251,10 @@ static int m88ec048_config_aneg(struct phy_device *phydev) | |||
251 | if (err < 0) | 251 | if (err < 0) |
252 | return err; | 252 | return err; |
253 | 253 | ||
254 | mscr = phy_read(phydev, MII_88EC048_PHY_MSCR1_REG); | 254 | mscr = phy_read(phydev, MII_88E1318S_PHY_MSCR1_REG); |
255 | mscr |= MII_88EC048_PHY_MSCR1_PAD_ODD; | 255 | mscr |= MII_88E1318S_PHY_MSCR1_PAD_ODD; |
256 | 256 | ||
257 | err = phy_write(phydev, MII_88E1121_PHY_MSCR_REG, mscr); | 257 | err = phy_write(phydev, MII_88E1318S_PHY_MSCR1_REG, mscr); |
258 | if (err < 0) | 258 | if (err < 0) |
259 | return err; | 259 | return err; |
260 | 260 | ||
@@ -659,12 +659,12 @@ static struct phy_driver marvell_drivers[] = { | |||
659 | .driver = { .owner = THIS_MODULE }, | 659 | .driver = { .owner = THIS_MODULE }, |
660 | }, | 660 | }, |
661 | { | 661 | { |
662 | .phy_id = MARVELL_PHY_ID_88EC048, | 662 | .phy_id = MARVELL_PHY_ID_88E1318S, |
663 | .phy_id_mask = MARVELL_PHY_ID_MASK, | 663 | .phy_id_mask = MARVELL_PHY_ID_MASK, |
664 | .name = "Marvell 88EC048", | 664 | .name = "Marvell 88E1318S", |
665 | .features = PHY_GBIT_FEATURES, | 665 | .features = PHY_GBIT_FEATURES, |
666 | .flags = PHY_HAS_INTERRUPT, | 666 | .flags = PHY_HAS_INTERRUPT, |
667 | .config_aneg = &m88ec048_config_aneg, | 667 | .config_aneg = &m88e1318_config_aneg, |
668 | .read_status = &marvell_read_status, | 668 | .read_status = &marvell_read_status, |
669 | .ack_interrupt = &marvell_ack_interrupt, | 669 | .ack_interrupt = &marvell_ack_interrupt, |
670 | .config_intr = &marvell_config_intr, | 670 | .config_intr = &marvell_config_intr, |
diff --git a/include/linux/marvell_phy.h b/include/linux/marvell_phy.h index d0f08018335d..1ff81b51b656 100644 --- a/include/linux/marvell_phy.h +++ b/include/linux/marvell_phy.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #define MARVELL_PHY_ID_88E1121R 0x01410cb0 | 12 | #define MARVELL_PHY_ID_88E1121R 0x01410cb0 |
13 | #define MARVELL_PHY_ID_88E1145 0x01410cd0 | 13 | #define MARVELL_PHY_ID_88E1145 0x01410cd0 |
14 | #define MARVELL_PHY_ID_88E1240 0x01410e30 | 14 | #define MARVELL_PHY_ID_88E1240 0x01410e30 |
15 | #define MARVELL_PHY_ID_88EC048 0x01410e90 | 15 | #define MARVELL_PHY_ID_88E1318S 0x01410e90 |
16 | 16 | ||
17 | /* struct phy_device dev_flags definitions */ | 17 | /* struct phy_device dev_flags definitions */ |
18 | #define MARVELL_PHY_M1145_FLAGS_RESISTANCE 0x00000001 | 18 | #define MARVELL_PHY_M1145_FLAGS_RESISTANCE 0x00000001 |