summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/genet/bcmgenet.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-11-25 21:16:35 -0800
committerDavid S. Miller <davem@davemloft.net>2014-11-26 15:08:05 -0500
commit6ef398ea60d931b97d69ed080bd0bd00fac38ec6 (patch)
treecab57c23b1a3506cd0ae88c80540f475d517b219 /drivers/net/ethernet/broadcom/genet/bcmgenet.h
parentd0a6db8dd05da6d65ac1ba111da911de6a34d76a (diff)
downloadlinux-6ef398ea60d931b97d69ed080bd0bd00fac38ec6.tar.gz
linux-6ef398ea60d931b97d69ed080bd0bd00fac38ec6.tar.bz2
linux-6ef398ea60d931b97d69ed080bd0bd00fac38ec6.zip
net: bcmgenet: add EEE support
Allow enabling and disabling EEE using the designated ethtool getters and setters. GENET allows controlling EEE at the UniMAC, RBUF and TBUF levels. We also take care of restoring EEE after a suspend/resume cycle if it was enabled prior to suspending. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/genet/bcmgenet.h')
-rw-r--r--drivers/net/ethernet/broadcom/genet/bcmgenet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.h b/drivers/net/ethernet/broadcom/genet/bcmgenet.h
index ea6f0ab566bf..b36ddec0cc0a 100644
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.h
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.h
@@ -573,6 +573,8 @@ struct bcmgenet_priv {
struct device_node *phy_dn;
struct mii_bus *mii_bus;
u16 gphy_rev;
+ struct clk *clk_eee;
+ bool clk_eee_enabled;
/* PHY device variables */
int old_link;
@@ -609,6 +611,8 @@ struct bcmgenet_priv {
u32 wolopts;
struct bcmgenet_mib_counters mib;
+
+ struct ethtool_eee eee;
};
#define GENET_IO_MACRO(name, offset) \