aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
authorMatt Carlson <mcarlson@broadcom.com>2009-11-02 09:32:12 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-03 02:39:13 -0500
commitc704dc23cac0e433796bfe0a1fe2f1a64da11ac7 (patch)
tree8fad42adbda6d2911dcb3907b20d440625d292b7 /drivers/net/tg3.c
parent32e5a8d651c0dbb02bf82ca954206282e44c4b11 (diff)
tg3 / broadcom: Add APD support for GPHYs
This patch adds an RXC auto power-down feature to the code that supports the gphys. 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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 369ddba95821..f74bf91e78cc 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -1097,11 +1097,13 @@ static int tg3_mdio_init(struct tg3 *tp)
1097 switch (phydev->drv->phy_id & phydev->drv->phy_id_mask) { 1097 switch (phydev->drv->phy_id & phydev->drv->phy_id_mask) {
1098 case TG3_PHY_ID_BCM57780: 1098 case TG3_PHY_ID_BCM57780:
1099 phydev->interface = PHY_INTERFACE_MODE_GMII; 1099 phydev->interface = PHY_INTERFACE_MODE_GMII;
1100 phydev->dev_flags |= PHY_BRCM_AUTO_PWRDWN_ENABLE;
1100 break; 1101 break;
1101 case TG3_PHY_ID_BCM50610: 1102 case TG3_PHY_ID_BCM50610:
1102 case TG3_PHY_ID_BCM50610M: 1103 case TG3_PHY_ID_BCM50610M:
1103 phydev->dev_flags |= PHY_BRCM_CLEAR_RGMII_MODE | 1104 phydev->dev_flags |= PHY_BRCM_CLEAR_RGMII_MODE |
1104 PHY_BRCM_RX_REFCLK_UNUSED; 1105 PHY_BRCM_RX_REFCLK_UNUSED |
1106 PHY_BRCM_AUTO_PWRDWN_ENABLE;
1105 if (tp->tg3_flags3 & TG3_FLG3_RGMII_STD_IBND_DISABLE) 1107 if (tp->tg3_flags3 & TG3_FLG3_RGMII_STD_IBND_DISABLE)
1106 phydev->dev_flags |= PHY_BRCM_STD_IBND_DISABLE; 1108 phydev->dev_flags |= PHY_BRCM_STD_IBND_DISABLE;
1107 if (tp->tg3_flags3 & TG3_FLG3_RGMII_EXT_IBND_RX_EN) 1109 if (tp->tg3_flags3 & TG3_FLG3_RGMII_EXT_IBND_RX_EN)