diff options
author | Senthil Balasubramanian <senthilkumar@atheros.com> | 2009-02-12 03:27:03 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-27 14:51:46 -0500 |
commit | 8bd1d07f9345750bd4d767e6c1600919672f98ba (patch) | |
tree | 42b201403637888b4c5cde5e1fd096c373d4ca05 /drivers/net/wireless/ath9k/phy.h | |
parent | 81cb7623ad3b408f871fa36b774fc20d8dfccac0 (diff) |
ath9k: Add open loop control support
This patch adds Open Loop Control support for Atheros chipsets that
supports open loop power control.
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/phy.h')
-rw-r--r-- | drivers/net/wireless/ath9k/phy.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/phy.h b/drivers/net/wireless/ath9k/phy.h index 4758c37e4b88..3dbdd54be4e9 100644 --- a/drivers/net/wireless/ath9k/phy.h +++ b/drivers/net/wireless/ath9k/phy.h | |||
@@ -387,6 +387,8 @@ bool ath9k_hw_init_rf(struct ath_hw *ah, | |||
387 | 387 | ||
388 | #define AR_PHY_CCK_TX_CTRL 0xA204 | 388 | #define AR_PHY_CCK_TX_CTRL 0xA204 |
389 | #define AR_PHY_CCK_TX_CTRL_JAPAN 0x00000010 | 389 | #define AR_PHY_CCK_TX_CTRL_JAPAN 0x00000010 |
390 | #define AR_PHY_CCK_TX_CTRL_TX_DAC_SCALE_CCK 0x0000000C | ||
391 | #define AR_PHY_CCK_TX_CTRL_TX_DAC_SCALE_CCK_S 2 | ||
390 | 392 | ||
391 | #define AR_PHY_CCK_DETECT 0xA208 | 393 | #define AR_PHY_CCK_DETECT 0xA208 |
392 | #define AR_PHY_CCK_DETECT_WEAK_SIG_THR_CCK 0x0000003F | 394 | #define AR_PHY_CCK_DETECT_WEAK_SIG_THR_CCK 0x0000003F |
@@ -444,6 +446,29 @@ bool ath9k_hw_init_rf(struct ath_hw *ah, | |||
444 | #define AR_PHY_TPCRG1_PD_GAIN_3 0x00300000 | 446 | #define AR_PHY_TPCRG1_PD_GAIN_3 0x00300000 |
445 | #define AR_PHY_TPCRG1_PD_GAIN_3_S 20 | 447 | #define AR_PHY_TPCRG1_PD_GAIN_3_S 20 |
446 | 448 | ||
449 | #define AR_PHY_TX_PWRCTRL4 0xa264 | ||
450 | #define AR_PHY_TX_PWRCTRL_PD_AVG_VALID 0x00000001 | ||
451 | #define AR_PHY_TX_PWRCTRL_PD_AVG_VALID_S 0 | ||
452 | #define AR_PHY_TX_PWRCTRL_PD_AVG_OUT 0x000001FE | ||
453 | #define AR_PHY_TX_PWRCTRL_PD_AVG_OUT_S 1 | ||
454 | |||
455 | #define AR_PHY_TX_PWRCTRL6_0 0xa270 | ||
456 | #define AR_PHY_TX_PWRCTRL6_1 0xb270 | ||
457 | #define AR_PHY_TX_PWRCTRL_ERR_EST_MODE 0x03000000 | ||
458 | #define AR_PHY_TX_PWRCTRL_ERR_EST_MODE_S 24 | ||
459 | |||
460 | #define AR_PHY_TX_PWRCTRL7 0xa274 | ||
461 | #define AR_PHY_TX_PWRCTRL_INIT_TX_GAIN 0x01F80000 | ||
462 | #define AR_PHY_TX_PWRCTRL_INIT_TX_GAIN_S 19 | ||
463 | |||
464 | #define AR_PHY_TX_PWRCTRL9 0xa27C | ||
465 | #define AR_PHY_TX_DESIRED_SCALE_CCK 0x00007C00 | ||
466 | #define AR_PHY_TX_DESIRED_SCALE_CCK_S 10 | ||
467 | |||
468 | #define AR_PHY_TX_GAIN_TBL1 0xa300 | ||
469 | #define AR_PHY_TX_GAIN 0x0007F000 | ||
470 | #define AR_PHY_TX_GAIN_S 12 | ||
471 | |||
447 | #define AR_PHY_VIT_MASK2_M_46_61 0xa3a0 | 472 | #define AR_PHY_VIT_MASK2_M_46_61 0xa3a0 |
448 | #define AR_PHY_MASK2_M_31_45 0xa3a4 | 473 | #define AR_PHY_MASK2_M_31_45 0xa3a4 |
449 | #define AR_PHY_MASK2_M_16_30 0xa3a8 | 474 | #define AR_PHY_MASK2_M_16_30 0xa3a8 |