ath9k: Add PCIE powersave macros
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Mon, 9 Mar 2015 08:50:06 +0000 (14:20 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 13 Mar 2015 13:19:28 +0000 (15:19 +0200)
These will be used to handle chip-specific
power save configuration.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/hw.h

index 29a25d92add7453161d51eca5c6bb99b802328f3..2bb3b334a23f22f083ed633caf177b6a3799622d 100644 (file)
@@ -309,6 +309,12 @@ enum ath9k_hw_hang_checks {
        HW_MAC_HANG               = BIT(5),
 };
 
+#define AR_PCIE_PLL_PWRSAVE_CONTROL BIT(0)
+#define AR_PCIE_PLL_PWRSAVE_ON_D3   BIT(1)
+#define AR_PCIE_PLL_PWRSAVE_ON_D0   BIT(2)
+#define AR_PCIE_CDR_PWRSAVE_ON_D3   BIT(3)
+#define AR_PCIE_CDR_PWRSAVE_ON_D0   BIT(4)
+
 struct ath9k_ops_config {
        int dma_beacon_response_time;
        int sw_beacon_response_time;