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/eeprom.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/eeprom.h')
-rw-r--r-- | drivers/net/wireless/ath9k/eeprom.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/eeprom.h b/drivers/net/wireless/ath9k/eeprom.h index 60cb23de97c6..2cfea5d56d10 100644 --- a/drivers/net/wireless/ath9k/eeprom.h +++ b/drivers/net/wireless/ath9k/eeprom.h | |||
@@ -168,6 +168,8 @@ | |||
168 | #define AR5416_EEP4K_PD_GAIN_ICEPTS 5 | 168 | #define AR5416_EEP4K_PD_GAIN_ICEPTS 5 |
169 | #define AR5416_EEP4K_MAX_CHAINS 1 | 169 | #define AR5416_EEP4K_MAX_CHAINS 1 |
170 | 170 | ||
171 | #define AR9280_TX_GAIN_TABLE_SIZE 22 | ||
172 | |||
171 | enum eeprom_param { | 173 | enum eeprom_param { |
172 | EEP_NFTHRESH_5, | 174 | EEP_NFTHRESH_5, |
173 | EEP_NFTHRESH_2, | 175 | EEP_NFTHRESH_2, |
@@ -188,6 +190,8 @@ enum eeprom_param { | |||
188 | EEP_RX_MASK, | 190 | EEP_RX_MASK, |
189 | EEP_RXGAIN_TYPE, | 191 | EEP_RXGAIN_TYPE, |
190 | EEP_TXGAIN_TYPE, | 192 | EEP_TXGAIN_TYPE, |
193 | EEP_OL_PWRCTRL, | ||
194 | EEP_RC_CHAIN_MASK, | ||
191 | EEP_DAC_HPWR_5G, | 195 | EEP_DAC_HPWR_5G, |
192 | EEP_FRAC_N_5G | 196 | EEP_FRAC_N_5G |
193 | }; | 197 | }; |
@@ -229,7 +233,7 @@ struct base_eep_header { | |||
229 | u8 futureBase_1[2]; | 233 | u8 futureBase_1[2]; |
230 | u8 rxGainType; | 234 | u8 rxGainType; |
231 | u8 dacHiPwrMode_5G; | 235 | u8 dacHiPwrMode_5G; |
232 | u8 futureBase_2; | 236 | u8 openLoopPwrCntl; |
233 | u8 dacLpMode; | 237 | u8 dacLpMode; |
234 | u8 txGainType; | 238 | u8 txGainType; |
235 | u8 rcChainMask; | 239 | u8 rcChainMask; |
@@ -310,6 +314,13 @@ struct modal_eep_header { | |||
310 | struct spur_chan spurChans[AR5416_EEPROM_MODAL_SPURS]; | 314 | struct spur_chan spurChans[AR5416_EEPROM_MODAL_SPURS]; |
311 | } __packed; | 315 | } __packed; |
312 | 316 | ||
317 | struct calDataPerFreqOpLoop { | ||
318 | u8 pwrPdg[2][5]; | ||
319 | u8 vpdPdg[2][5]; | ||
320 | u8 pcdac[2][5]; | ||
321 | u8 empty[2][5]; | ||
322 | } __packed; | ||
323 | |||
313 | struct modal_eep_4k_header { | 324 | struct modal_eep_4k_header { |
314 | u32 antCtrlChain[AR5416_EEP4K_MAX_CHAINS]; | 325 | u32 antCtrlChain[AR5416_EEP4K_MAX_CHAINS]; |
315 | u32 antCtrlCommon; | 326 | u32 antCtrlCommon; |