aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2009-11-02 09:30:40 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-03 02:39:11 -0500
commit63a14ce449dd6d647de2725809159eb072b2c44f (patch)
treed4db22459a237188aefc2c5bc3ee35374443fe1e /drivers/net/tg3.c
parent8649f13d2d810406da444a6101906041b796fbde (diff)
tg3 / broadcom: Add PHY_BRCM_CLEAR_RGMII_MODE flag
Broadcom 50610M parts changed the default definitions of the RGMII mode shadow register. The 5785 needs the RGMII mode selection bits [4:3] cleared. The default value of the remaining bits in this register are zero. Rather than unnecessarily burn an extra bit in the dev_flags member in an attempt to enumerate all possible combinations, this patch take a more course grained approach and labels the option as "clear all bits". Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 0aecd07d3f6b..e7128f6ae2d8 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -1100,6 +1100,7 @@ static int tg3_mdio_init(struct tg3 *tp)
1100 break; 1100 break;
1101 case TG3_PHY_ID_BCM50610: 1101 case TG3_PHY_ID_BCM50610:
1102 case TG3_PHY_ID_BCM50610M: 1102 case TG3_PHY_ID_BCM50610M:
1103 phydev->dev_flags |= PHY_BRCM_CLEAR_RGMII_MODE;
1103 if (tp->tg3_flags3 & TG3_FLG3_RGMII_STD_IBND_DISABLE) 1104 if (tp->tg3_flags3 & TG3_FLG3_RGMII_STD_IBND_DISABLE)
1104 phydev->dev_flags |= PHY_BRCM_STD_IBND_DISABLE; 1105 phydev->dev_flags |= PHY_BRCM_STD_IBND_DISABLE;
1105 if (tp->tg3_flags3 & TG3_FLG3_RGMII_EXT_IBND_RX_EN) 1106 if (tp->tg3_flags3 & TG3_FLG3_RGMII_EXT_IBND_RX_EN)