diff options
author | Cyril Chemparathy <cyril@ti.com> | 2010-10-29 16:50:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-29 16:50:25 -0400 |
commit | 337ac9d5218cc19f40fca13fa4deb3c658c4241b (patch) | |
tree | 0a63c0bb554c7cceec778d22f11ca5e1efb39c7a /drivers/net/phy | |
parent | a4765fa7bfb92d5b9de19a503674b6624f95a7ae (diff) |
phy/marvell: rename 88ec048 to 88e1318s and fix mscr1 addr
The marvell 88ec048's official part number is 88e1318s. This patch renames
definitions in the driver to reflect this.
In addition, a minor bug fix has been added to write back the MSCR1 register
value properly.
Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/marvell.c | 18 |
1 files changed, 9 insertions, 9 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, |