aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/hw.c
diff options
context:
space:
mode:
authorVivek Natarajan <vivek.natraj@gmail.com>2009-08-14 02:03:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-08-20 11:35:52 -0400
commit326bebbcb51d3ce9761f616b8b9a35827fd9c697 (patch)
tree74429f71ed8c0be68563ca8cf539254cfb84922b /drivers/net/wireless/ath/ath9k/hw.c
parentd4fe5afa006bf308962877c4768c4e60d37a3da2 (diff)
ath9k: Updates for AR9287_12 version of chipset.
Enable AsyncFIFO and AGGWEP for AR9287_12 and later revisions only. Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 9a139dcc69b..df62113d89d 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -2392,7 +2392,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
2392 if (AR_SREV_9280_10_OR_LATER(ah)) 2392 if (AR_SREV_9280_10_OR_LATER(ah))
2393 REG_SET_BIT(ah, AR_GPIO_INPUT_EN_VAL, AR_GPIO_JTAG_DISABLE); 2393 REG_SET_BIT(ah, AR_GPIO_INPUT_EN_VAL, AR_GPIO_JTAG_DISABLE);
2394 2394
2395 if (AR_SREV_9287_10_OR_LATER(ah)) { 2395 if (AR_SREV_9287_12_OR_LATER(ah)) {
2396 /* Enable ASYNC FIFO */ 2396 /* Enable ASYNC FIFO */
2397 REG_SET_BIT(ah, AR_MAC_PCU_ASYNC_FIFO_REG3, 2397 REG_SET_BIT(ah, AR_MAC_PCU_ASYNC_FIFO_REG3,
2398 AR_MAC_PCU_ASYNC_FIFO_REG3_DATAPATH_SEL); 2398 AR_MAC_PCU_ASYNC_FIFO_REG3_DATAPATH_SEL);
@@ -2478,7 +2478,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
2478 2478
2479 ath9k_hw_init_user_settings(ah); 2479 ath9k_hw_init_user_settings(ah);
2480 2480
2481 if (AR_SREV_9287_10_OR_LATER(ah)) { 2481 if (AR_SREV_9287_12_OR_LATER(ah)) {
2482 REG_WRITE(ah, AR_D_GBL_IFS_SIFS, 2482 REG_WRITE(ah, AR_D_GBL_IFS_SIFS,
2483 AR_D_GBL_IFS_SIFS_ASYNC_FIFO_DUR); 2483 AR_D_GBL_IFS_SIFS_ASYNC_FIFO_DUR);
2484 REG_WRITE(ah, AR_D_GBL_IFS_SLOT, 2484 REG_WRITE(ah, AR_D_GBL_IFS_SLOT,
@@ -2494,7 +2494,7 @@ int ath9k_hw_reset(struct ath_hw *ah, struct ath9k_channel *chan,
2494 REG_RMW_FIELD(ah, AR_AHB_MODE, AR_AHB_CUSTOM_BURST_EN, 2494 REG_RMW_FIELD(ah, AR_AHB_MODE, AR_AHB_CUSTOM_BURST_EN,
2495 AR_AHB_CUSTOM_BURST_ASYNC_FIFO_VAL); 2495 AR_AHB_CUSTOM_BURST_ASYNC_FIFO_VAL);
2496 } 2496 }
2497 if (AR_SREV_9287_10_OR_LATER(ah)) { 2497 if (AR_SREV_9287_12_OR_LATER(ah)) {
2498 REG_SET_BIT(ah, AR_PCU_MISC_MODE2, 2498 REG_SET_BIT(ah, AR_PCU_MISC_MODE2,
2499 AR_PCU_MISC_MODE2_ENABLE_AGGWEP); 2499 AR_PCU_MISC_MODE2_ENABLE_AGGWEP);
2500 } 2500 }