atl1c:update version from 1.0.0.0 to 1.0.1.0
Subsystems (2)
PATCH 1/1 atl1c:update version from 1.0.0.0 to 1.0.1.0
1. update atl1c_suspend routine, just set speed to 10M Full when in suspend for power saving.
2. change atl1c_set_aspm routine for power saving.
3. add atl1c_pcie_patch routine just for refactoring.
4. update version to 1.0.1.0-NAPI.
Signed-off-by jie yang <[email protected]>
---
drivers/net/atl1c/atl1c.h +1 -0
@@ -91,6 +91,7 @@#define AT_ASPM_L0S_TIMER 6#define AT_ASPM_L1_TIMER 12 +#define AT_LCKDET_TIMER 12#define ATL1C_PCIE_L0S_L1_DISABLE 0x01#define ATL1C_PCIE_PHY_RESET 0x02
drivers/net/atl1c/atl1c_hw.h +34 -2
@@ -149,13 +149,15 @@ int atl1c_restart_autoneg(struct atl1c_hw *hw);#define PM_CTRL_ASPM_L0S_EN 0x00001000#define PM_CTRL_CLK_SWH_L1 0x00002000#define PM_CTRL_CLK_PWM_VER1_1 0x00004000 -#define PM_CTRL_PCIE_RECV 0x00008000 +#define PM_CTRL_RCVR_WT_TIMER 0x00008000#define PM_CTRL_L1_ENTRY_TIMER_MASK 0xF#define PM_CTRL_L1_ENTRY_TIMER_SHIFT 16#define PM_CTRL_PM_REQ_TIMER_MASK 0xF#define PM_CTRL_PM_REQ_TIMER_SHIFT 20 -#define PM_CTRL_LCKDET_TIMER_MASK 0x3F +#define PM_CTRL_LCKDET_TIMER_MASK 0xF#define PM_CTRL_LCKDET_TIMER_SHIFT 24 +#define PM_CTRL_EN_BUFS_RX_L0S 0x10000000 +#define PM_CTRL_SA_DLY_EN 0x20000000#define PM_CTRL_MAC_ASPM_CHK 0x40000000#define PM_CTRL_HOTRST 0x80000000
@@ -165,6 +167,7 @@ int atl1c_restart_autoneg(struct atl1c_hw *hw);#define MASTER_CTRL_TEST_MODE_MASK 0x3#define MASTER_CTRL_TEST_MODE_SHIFT 2#define MASTER_CTRL_BERT_START 0x10 +#define MASTER_CTRL_SA_TIMER_EN 0x80#define MASTER_CTRL_MTIMER_EN 0x100#define MASTER_CTRL_MANUAL_INT 0x200#define MASTER_CTRL_TX_ITIMER_EN 0x400
@@ -217,6 +220,12 @@ int atl1c_restart_autoneg(struct atl1c_hw *hw); GPHY_CTRL_PWDOWN_HW |\ GPHY_CTRL_PHY_IDDQ) +#define GPHY_CTRL_POWER_SAVING ( \ + GPHY_CTRL_SEL_ANA_RST |\ + GPHY_CTRL_HIB_EN |\ + GPHY_CTRL_HIB_PULSE |\ + GPHY_CTRL_PWDOWN_HW |\ + GPHY_CTRL_PHY_IDDQ)/* Block IDLE Status Register */ #define REG_IDLE_STATUS 0x1410#define IDLE_STATUS_MASK 0x00FF
@@ -284,6 +293,14 @@ int atl1c_restart_autoneg(struct atl1c_hw *hw);#define SERDES_LOCK_DETECT 0x1/* SerDes lock detected. This signal * comes from Analog SerDes */ #define SERDES_LOCK_DETECT_EN 0x2/* 1: Enable SerDes Lock detect function */ +#define SERDES_LOCK_STS_SELFB_PLL_SHIFT 0xE +#define SERDES_LOCK_STS_SELFB_PLL_MASK 0x3 +#define SERDES_OVCLK_18_25 0x0 +#define SERDES_OVCLK_12_18 0x1 +#define SERDES_OVCLK_0_4 0x2 +#define SERDES_OVCLK_4_12 0x3 +#define SERDES_MAC_CLK_SLOWDOWN 0x20000 +#define SERDES_PYH_CLK_SLOWDOWN 0x40000/* MAC Control Register */ #define REG_MAC_CTRL 0x1480
@@ -688,6 +705,21 @@ int atl1c_restart_autoneg(struct atl1c_hw *hw);#define REG_MAC_TX_STATUS_BIN 0x1760#define REG_MAC_TX_STATUS_END 0x17c0 +#define REG_CLK_GATING_CTRL 0x1814 +#define CLK_GATING_DMAW_EN 0x0001 +#define CLK_GATING_DMAR_EN 0x0002 +#define CLK_GATING_TXQ_EN 0x0004 +#define CLK_GATING_RXQ_EN 0x0008 +#define CLK_GATING_TXMAC_EN 0x0010 +#define CLK_GATING_RXMAC_EN 0x0020 + +#define CLK_GATING_EN_ALL (CLK_GATING_DMAW_EN |\ + CLK_GATING_DMAR_EN |\ + CLK_GATING_TXQ_EN |\ + CLK_GATING_RXQ_EN |\ + CLK_GATING_TXMAC_EN|\ + CLK_GATING_RXMAC_EN) +/* DEBUG ADDR */ #define REG_DEBUG_DATA0 0x1900#define REG_DEBUG_DATA1 0x1904
drivers/net/atl1c/atl1c_main.c +75 -34
209 lines not on this page · raw message