|
@@ -638,21 +638,18 @@ static s32 atl1_phy_leave_power_saving(struct atl1_hw *hw)
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|
|
- *TODO: do something or get rid of this
|
|
|
|
|
|
+ * Force the PHY into power saving mode using vendor magic.
|
|
*/
|
|
*/
|
|
#ifdef CONFIG_PM
|
|
#ifdef CONFIG_PM
|
|
-static s32 atl1_phy_enter_power_saving(struct atl1_hw *hw)
|
|
|
|
|
|
+static void atl1_phy_enter_power_saving(struct atl1_hw *hw)
|
|
{
|
|
{
|
|
-/* s32 ret_val;
|
|
|
|
- * u16 phy_data;
|
|
|
|
- */
|
|
|
|
|
|
+ atl1_write_phy_reg(hw, MII_DBG_ADDR, 0);
|
|
|
|
+ atl1_write_phy_reg(hw, MII_DBG_DATA, 0x124E);
|
|
|
|
+ atl1_write_phy_reg(hw, MII_DBG_ADDR, 2);
|
|
|
|
+ atl1_write_phy_reg(hw, MII_DBG_DATA, 0x3000);
|
|
|
|
+ atl1_write_phy_reg(hw, MII_DBG_ADDR, 3);
|
|
|
|
+ atl1_write_phy_reg(hw, MII_DBG_DATA, 0);
|
|
|
|
|
|
-/*
|
|
|
|
- ret_val = atl1_write_phy_reg(hw, ...);
|
|
|
|
- ret_val = atl1_write_phy_reg(hw, ...);
|
|
|
|
- ....
|
|
|
|
-*/
|
|
|
|
- return 0;
|
|
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|