Commit c73430d0 authored by Matt Carlson's avatar Matt Carlson Committed by David S. Miller

tg3: Add 50610M phy ID for 5785

This patch adds the 50610M phy ID for 5785.
Signed-off-by: default avatarMatt Carlson <mcarlson@broadcom.com>
Reviewed-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 219c6efe
...@@ -940,6 +940,7 @@ static void tg3_mdio_config_5785(struct tg3 *tp) ...@@ -940,6 +940,7 @@ static void tg3_mdio_config_5785(struct tg3 *tp)
phydev = tp->mdio_bus->phy_map[TG3_PHY_MII_ADDR]; phydev = tp->mdio_bus->phy_map[TG3_PHY_MII_ADDR];
switch (phydev->drv->phy_id & phydev->drv->phy_id_mask) { switch (phydev->drv->phy_id & phydev->drv->phy_id_mask) {
case TG3_PHY_ID_BCM50610: case TG3_PHY_ID_BCM50610:
case TG3_PHY_ID_BCM50610M:
val = MAC_PHYCFG2_50610_LED_MODES; val = MAC_PHYCFG2_50610_LED_MODES;
break; break;
case TG3_PHY_ID_BCMAC131: case TG3_PHY_ID_BCMAC131:
...@@ -1098,6 +1099,7 @@ static int tg3_mdio_init(struct tg3 *tp) ...@@ -1098,6 +1099,7 @@ static int tg3_mdio_init(struct tg3 *tp)
phydev->interface = PHY_INTERFACE_MODE_GMII; phydev->interface = PHY_INTERFACE_MODE_GMII;
break; break;
case TG3_PHY_ID_BCM50610: case TG3_PHY_ID_BCM50610:
case TG3_PHY_ID_BCM50610M:
if (tp->tg3_flags3 & TG3_FLG3_RGMII_STD_IBND_DISABLE) if (tp->tg3_flags3 & TG3_FLG3_RGMII_STD_IBND_DISABLE)
phydev->dev_flags |= PHY_BRCM_STD_IBND_DISABLE; phydev->dev_flags |= PHY_BRCM_STD_IBND_DISABLE;
if (tp->tg3_flags3 & TG3_FLG3_RGMII_EXT_IBND_RX_EN) if (tp->tg3_flags3 & TG3_FLG3_RGMII_EXT_IBND_RX_EN)
......
...@@ -2864,6 +2864,7 @@ struct tg3 { ...@@ -2864,6 +2864,7 @@ struct tg3 {
#define PHY_REV_BCM5401_C0 0x6 #define PHY_REV_BCM5401_C0 0x6
#define PHY_REV_BCM5411_X0 0x1 /* Found on Netgear GA302T */ #define PHY_REV_BCM5411_X0 0x1 /* Found on Netgear GA302T */
#define TG3_PHY_ID_BCM50610 0x143bd60 #define TG3_PHY_ID_BCM50610 0x143bd60
#define TG3_PHY_ID_BCM50610M 0x143bd70
#define TG3_PHY_ID_BCMAC131 0x143bc70 #define TG3_PHY_ID_BCMAC131 0x143bc70
#define TG3_PHY_ID_RTL8211C 0x001cc910 #define TG3_PHY_ID_RTL8211C 0x001cc910
#define TG3_PHY_ID_RTL8201E 0x00008200 #define TG3_PHY_ID_RTL8201E 0x00008200
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment