|
@@ -45,11 +45,6 @@ static void ar9002_hw_setup_calibration(struct ath_hw *ah,
|
|
|
ath_print(common, ATH_DBG_CALIBRATE,
|
|
|
"starting ADC DC Calibration\n");
|
|
|
break;
|
|
|
- case ADC_DC_INIT_CAL:
|
|
|
- REG_WRITE(ah, AR_PHY_CALMODE, AR_PHY_CALMODE_ADC_DC_INIT);
|
|
|
- ath_print(common, ATH_DBG_CALIBRATE,
|
|
|
- "starting Init ADC DC Calibration\n");
|
|
|
- break;
|
|
|
case TEMP_COMP_CAL:
|
|
|
break; /* Not supported */
|
|
|
}
|
|
@@ -950,13 +945,6 @@ static const struct ath9k_percal_data adc_dc_cal_single_sample = {
|
|
|
ar9002_hw_adc_dccal_collect,
|
|
|
ar9002_hw_adc_dccal_calibrate
|
|
|
};
|
|
|
-static const struct ath9k_percal_data adc_init_dc_cal = {
|
|
|
- ADC_DC_INIT_CAL,
|
|
|
- MIN_CAL_SAMPLES,
|
|
|
- INIT_LOG_COUNT,
|
|
|
- ar9002_hw_adc_dccal_collect,
|
|
|
- ar9002_hw_adc_dccal_calibrate
|
|
|
-};
|
|
|
|
|
|
static void ar9002_hw_init_cal_settings(struct ath_hw *ah)
|
|
|
{
|
|
@@ -973,16 +961,12 @@ static void ar9002_hw_init_cal_settings(struct ath_hw *ah)
|
|
|
&adc_gain_cal_single_sample;
|
|
|
ah->adcdc_caldata.calData =
|
|
|
&adc_dc_cal_single_sample;
|
|
|
- ah->adcdc_calinitdata.calData =
|
|
|
- &adc_init_dc_cal;
|
|
|
} else {
|
|
|
ah->iq_caldata.calData = &iq_cal_multi_sample;
|
|
|
ah->adcgain_caldata.calData =
|
|
|
&adc_gain_cal_multi_sample;
|
|
|
ah->adcdc_caldata.calData =
|
|
|
&adc_dc_cal_multi_sample;
|
|
|
- ah->adcdc_calinitdata.calData =
|
|
|
- &adc_init_dc_cal;
|
|
|
}
|
|
|
ah->supp_cals = ADC_GAIN_CAL | ADC_DC_CAL | IQ_MISMATCH_CAL;
|
|
|
}
|