diff options
author | Rajkumar Manoharan <rmanohar@qca.qualcomm.com> | 2012-06-04 06:58:25 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-06 15:20:28 -0400 |
commit | c8b6fbe1f1d38aa19882263d6b0c644269e94244 (patch) | |
tree | d86eacbc418843591fd2840b5688f5c80f306420 | |
parent | 9dc08eceb7491331e81acde625e0d9c82aa86a16 (diff) |
ath9k_hw: configure ar9462 switching regulator
Enable WLAN and BT mode for switching regulator discontinuous
orverride for AR9462 chips.
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar9003_phy.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/reg.h | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.c b/drivers/net/wireless/ath/ath9k/ar9003_phy.c index 11abb972be1f..d6baf69cdc14 100644 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c | |||
@@ -676,6 +676,10 @@ static int ar9003_hw_process_ini(struct ath_hw *ah, | |||
676 | if (chan->channel == 2484) | 676 | if (chan->channel == 2484) |
677 | ar9003_hw_prog_ini(ah, &ah->ini_japan2484, 1); | 677 | ar9003_hw_prog_ini(ah, &ah->ini_japan2484, 1); |
678 | 678 | ||
679 | if (AR_SREV_9462(ah)) | ||
680 | REG_WRITE(ah, AR_GLB_SWREG_DISCONT_MODE, | ||
681 | AR_GLB_SWREG_DISCONT_EN_BT_WLAN); | ||
682 | |||
679 | ah->modes_index = modesIndex; | 683 | ah->modes_index = modesIndex; |
680 | ar9003_hw_override_ini(ah); | 684 | ar9003_hw_override_ini(ah); |
681 | ar9003_hw_set_channel_regs(ah, chan); | 685 | ar9003_hw_set_channel_regs(ah, chan); |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 3740aab864f4..03d590924c64 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -824,7 +824,6 @@ struct ath_hw { | |||
824 | struct ar5416IniArray ini_japan2484; | 824 | struct ar5416IniArray ini_japan2484; |
825 | struct ar5416IniArray iniModes_9271_ANI_reg; | 825 | struct ar5416IniArray iniModes_9271_ANI_reg; |
826 | struct ar5416IniArray ini_radio_post_sys2ant; | 826 | struct ar5416IniArray ini_radio_post_sys2ant; |
827 | struct ar5416IniArray ini_BTCOEX_MAX_TXPWR; | ||
828 | 827 | ||
829 | struct ar5416IniArray iniMac[ATH_INI_NUM_SPLIT]; | 828 | struct ar5416IniArray iniMac[ATH_INI_NUM_SPLIT]; |
830 | struct ar5416IniArray iniBB[ATH_INI_NUM_SPLIT]; | 829 | struct ar5416IniArray iniBB[ATH_INI_NUM_SPLIT]; |
diff --git a/drivers/net/wireless/ath/ath9k/reg.h b/drivers/net/wireless/ath/ath9k/reg.h index 458f81b4a7cb..560d6effac7a 100644 --- a/drivers/net/wireless/ath/ath9k/reg.h +++ b/drivers/net/wireless/ath/ath9k/reg.h | |||
@@ -2211,5 +2211,7 @@ enum { | |||
2211 | #define AR_BTCOEX_CTRL3_CONT_INFO_TIMEOUT 0x00000fff | 2211 | #define AR_BTCOEX_CTRL3_CONT_INFO_TIMEOUT 0x00000fff |
2212 | #define AR_BTCOEX_CTRL3_CONT_INFO_TIMEOUT_S 0 | 2212 | #define AR_BTCOEX_CTRL3_CONT_INFO_TIMEOUT_S 0 |
2213 | 2213 | ||
2214 | #define AR_GLB_SWREG_DISCONT_MODE 0x2002c | ||
2215 | #define AR_GLB_SWREG_DISCONT_EN_BT_WLAN 0x3 | ||
2214 | 2216 | ||
2215 | #endif | 2217 | #endif |