diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2008-11-21 20:18:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-21 20:18:59 -0500 |
commit | 6833c043f9fc03696fde623914c4a0277df2a0bc (patch) | |
tree | 2b8dbe4348da2182c7832a61ccac90512a819e36 /drivers/net/tg3.h | |
parent | 5e7dfd0fb94abed04f59481d1ce0cc06a892048a (diff) |
tg3: Enable GPHY APD on select devices
GPHY Autopowerdown (APD) is a way to save power when energy is not
detected on the wire. At the moment, only the 5784 and 5761 are
capable of enabling this mode.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r-- | drivers/net/tg3.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index 53684b9b83f9..eba62e2074ca 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -1822,6 +1822,7 @@ | |||
1822 | 1822 | ||
1823 | #define NIC_SRAM_DATA_CFG_2 0x00000d38 | 1823 | #define NIC_SRAM_DATA_CFG_2 0x00000d38 |
1824 | 1824 | ||
1825 | #define NIC_SRAM_DATA_CFG_2_APD_EN 0x00000400 | ||
1825 | #define SHASTA_EXT_LED_MODE_MASK 0x00018000 | 1826 | #define SHASTA_EXT_LED_MODE_MASK 0x00018000 |
1826 | #define SHASTA_EXT_LED_LEGACY 0x00000000 | 1827 | #define SHASTA_EXT_LED_LEGACY 0x00000000 |
1827 | #define SHASTA_EXT_LED_SHARED 0x00008000 | 1828 | #define SHASTA_EXT_LED_SHARED 0x00008000 |
@@ -2619,6 +2620,7 @@ struct tg3 { | |||
2619 | #define TG3_FLG3_RGMII_EXT_IBND_RX_EN 0x00000200 | 2620 | #define TG3_FLG3_RGMII_EXT_IBND_RX_EN 0x00000200 |
2620 | #define TG3_FLG3_RGMII_EXT_IBND_TX_EN 0x00000400 | 2621 | #define TG3_FLG3_RGMII_EXT_IBND_TX_EN 0x00000400 |
2621 | #define TG3_FLG3_CLKREQ_BUG 0x00000800 | 2622 | #define TG3_FLG3_CLKREQ_BUG 0x00000800 |
2623 | #define TG3_FLG3_PHY_ENABLE_APD 0x00001000 | ||
2622 | 2624 | ||
2623 | struct timer_list timer; | 2625 | struct timer_list timer; |
2624 | u16 timer_counter; | 2626 | u16 timer_counter; |