summaryrefslogtreecommitdiffstats
path: root/include/linux/brcmphy.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-08-22 21:55:45 -0400
committerDavid S. Miller <davem@davemloft.net>2014-08-23 14:39:09 -0400
commitb8f9a02924bbeb0c46ca4c19561cbe765b80e264 (patch)
tree6990b37910085fec8a0b832f807d9e2c22ff73de /include/linux/brcmphy.h
parenta9f6309585cbefa4a7f08c9017ca482c3222323a (diff)
net: phy: bcm7xxx: enable EEE at the PHY level
The 28nm Gigabit PHY on BCM7xxx chips comes out of reset with absolutely no EEE capabilities, such that we would actually return that we do not support EEE when accessing 3.20 (MDIO_PCS_EEE_ABLE) registers. Poke through the vendor-specific C45 register to enable EEE globally at the PHY level, and advertise supported EEE modes. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/brcmphy.h')
-rw-r--r--include/linux/brcmphy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/brcmphy.h b/include/linux/brcmphy.h
index 722cf26567fa..ee1431d976fa 100644
--- a/include/linux/brcmphy.h
+++ b/include/linux/brcmphy.h
@@ -214,5 +214,8 @@ static inline int bcm54xx_shadow_write(struct phy_device *phydev, u16 shadow,
214 MII_BCM54XX_SHD_DATA(val)); 214 MII_BCM54XX_SHD_DATA(val));
215} 215}
216 216
217#define BRCM_CL45VEN_EEE_CONTROL 0x803d
218#define LPI_FEATURE_EN 0x8000
219#define LPI_FEATURE_EN_DIG1000X 0x4000
217 220
218#endif /* _LINUX_BRCMPHY_H */ 221#endif /* _LINUX_BRCMPHY_H */