]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath9k: Program initvals for CUS217
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 18 Jun 2013 10:12:38 +0000 (15:42 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 18 Jun 2013 18:46:48 +0000 (14:46 -0400)
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_hw.c
drivers/net/wireless/ath/ath9k/ar9003_phy.c
drivers/net/wireless/ath/ath9k/hw.h

index ce748afd7f1aea26ce8d9ec63426150504d8a365..671aaa7e73372357994f79ac117ff8f83335e03a 100644 (file)
@@ -630,6 +630,10 @@ static void ar9003_rx_gain_table_mode2(struct ath_hw *ah)
        if (AR_SREV_9462_20(ah)) {
                INIT_INI_ARRAY(&ah->iniModesRxGain,
                               ar9462_common_mixed_rx_gain_table_2p0);
+               INIT_INI_ARRAY(&ah->ini_modes_rxgain_bb_core,
+                              ar9462_2p0_baseband_core_mix_rxgain);
+               INIT_INI_ARRAY(&ah->ini_modes_rxgain_bb_postamble,
+                              ar9462_2p0_baseband_postamble_mix_rxgain);
                INIT_INI_ARRAY(&ah->ini_modes_rxgain_5g_xlna,
                               ar9462_2p0_baseband_postamble_5g_xlna);
        }
index df919e2b61d526c0eae0d90a3bf92bb045c833fd..df84d20e109282faf44cd454c473852b5f9bc5b2 100644 (file)
@@ -755,6 +755,16 @@ static int ar9003_hw_process_ini(struct ath_hw *ah,
        REG_WRITE_ARRAY(&ah->iniModesRxGain, 1, regWrites);
 
        if (AR_SREV_9462_20(ah)) {
+               /*
+                * CUS217 mix LNA mode.
+                */
+               if (ar9003_hw_get_rx_gain_idx(ah) == 2) {
+                       REG_WRITE_ARRAY(&ah->ini_modes_rxgain_bb_core,
+                                       1, regWrites);
+                       REG_WRITE_ARRAY(&ah->ini_modes_rxgain_bb_postamble,
+                                       modesIndex, regWrites);
+               }
+
                /*
                 * 5G-XLNA
                 */
index e07663964463ecf93a6e6c04b1ff927231e45c19..cd74b3afef7db179fc4fcedc23eaa509722da52c 100644 (file)
@@ -893,6 +893,8 @@ struct ath_hw {
        struct ar5416IniArray iniModes_9271_ANI_reg;
        struct ar5416IniArray ini_radio_post_sys2ant;
        struct ar5416IniArray ini_modes_rxgain_5g_xlna;
+       struct ar5416IniArray ini_modes_rxgain_bb_core;
+       struct ar5416IniArray ini_modes_rxgain_bb_postamble;
 
        struct ar5416IniArray iniMac[ATH_INI_NUM_SPLIT];
        struct ar5416IniArray iniBB[ATH_INI_NUM_SPLIT];