diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2010-06-21 18:38:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-23 15:14:00 -0400 |
commit | 9a658d2b5c222b62919ab47b11c907c731ac180a (patch) | |
tree | 80d12299df8955d526c1103f2e3a7f6d9882c1c2 /drivers/net/wireless/ath/ath9k/reg.h | |
parent | 1047d5edd4838f27dc86f24676178f2249c446ea (diff) |
ath9k_hw: fix ASPM setting for AR9003
The AR_WA register should not be read when in sleep state so
add a variable we can stash its value into for when we need
to set it. Additionally the AR_WA_D3_TO_L1_DISABLE_REAL
(bit 16) needs to be removed.
Cc: Aeolus Yang <aeolus.yang@atheros.com>
Cc: Madhan Jaganathan <madhan.jaganathan@atheros.com>
signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/reg.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/reg.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/reg.h b/drivers/net/wireless/ath/ath9k/reg.h index 3e3ccef438db..47be667fe4ff 100644 --- a/drivers/net/wireless/ath/ath9k/reg.h +++ b/drivers/net/wireless/ath/ath9k/reg.h | |||
@@ -704,6 +704,11 @@ | |||
704 | #define AR_WA_BIT7 (1 << 7) | 704 | #define AR_WA_BIT7 (1 << 7) |
705 | #define AR_WA_BIT23 (1 << 23) | 705 | #define AR_WA_BIT23 (1 << 23) |
706 | #define AR_WA_D3_L1_DISABLE (1 << 14) | 706 | #define AR_WA_D3_L1_DISABLE (1 << 14) |
707 | #define AR_WA_D3_TO_L1_DISABLE_REAL (1 << 16) | ||
708 | #define AR_WA_ASPM_TIMER_BASED_DISABLE (1 << 17) | ||
709 | #define AR_WA_RESET_EN (1 << 18) /* Sw Control to enable PCI-Reset to POR (bit 15) */ | ||
710 | #define AR_WA_ANALOG_SHIFT (1 << 20) | ||
711 | #define AR_WA_POR_SHORT (1 << 21) /* PCI-E Phy reset control */ | ||
707 | #define AR9285_WA_DEFAULT 0x004a050b | 712 | #define AR9285_WA_DEFAULT 0x004a050b |
708 | #define AR9280_WA_DEFAULT 0x0040073b | 713 | #define AR9280_WA_DEFAULT 0x0040073b |
709 | #define AR_WA_DEFAULT 0x0000073f | 714 | #define AR_WA_DEFAULT 0x0000073f |