iPXE
|
Go to the source code of this file.
Macros | |
#define | AR9285_CLCAL_REDO_THRESH 1 |
Enumerations | |
enum | ar9002_cal_types { ADC_GAIN_CAL = BIT(0), ADC_DC_CAL = BIT(1), IQ_MISMATCH_CAL = BIT(2) } |
Variables | |
static const struct ath9k_percal_data | iq_cal_multi_sample |
static const struct ath9k_percal_data | iq_cal_single_sample |
static const struct ath9k_percal_data | adc_gain_cal_multi_sample |
static const struct ath9k_percal_data | adc_gain_cal_single_sample |
static const struct ath9k_percal_data | adc_dc_cal_multi_sample |
static const struct ath9k_percal_data | adc_dc_cal_single_sample |
#define AR9285_CLCAL_REDO_THRESH 1 |
Definition at line 24 of file ath9k_ar9002_calib.c.
enum ar9002_cal_types |
Enumerator | |
---|---|
ADC_GAIN_CAL | |
ADC_DC_CAL | |
IQ_MISMATCH_CAL |
Definition at line 26 of file ath9k_ar9002_calib.c.
|
static |
Definition at line 32 of file ath9k_ar9002_calib.c.
References ADC_DC_CAL, ADC_GAIN_CAL, ah, IQ_MISMATCH_CAL, IS_CHAN_2GHZ, IS_CHAN_B, IS_CHAN_HT20, and supported.
Referenced by ar9002_hw_init_cal().
|
static |
Definition at line 54 of file ath9k_ar9002_calib.c.
References ADC_DC_CAL, ADC_GAIN_CAL, ah, AR_PHY_CALMODE, AR_PHY_CALMODE_ADC_DC_PER, AR_PHY_CALMODE_ADC_GAIN, AR_PHY_CALMODE_IQ, AR_PHY_TIMING_CTRL4, AR_PHY_TIMING_CTRL4_DO_CAL, AR_PHY_TIMING_CTRL4_IQCAL_LOG_COUNT_MAX, ath9k_percal_data::calCountMax, ath9k_cal_list::calData, ath9k_percal_data::calType, DBG2, IQ_MISMATCH_CAL, REG_RMW_FIELD, REG_SET_BIT, and REG_WRITE.
Referenced by ar9002_hw_attach_calib_ops(), and ar9002_hw_per_calibration().
|
static |
Definition at line 83 of file ath9k_ar9002_calib.c.
References ah, AR5416_MAX_CHAINS, ar9002_hw_setup_calibration(), AR_PHY_TIMING_CTRL4, AR_PHY_TIMING_CTRL4_DO_CAL, ath9k_hw_reset_calibration(), CAL_DONE, CAL_RUNNING, ath9k_percal_data::calCollect, ath9k_cal_list::calData, ath9k_percal_data::calNumSamples, ath9k_percal_data::calPostProc, ath9k_cal_list::calState, ath9k_percal_data::calType, ath9k_hw_cal_data::CalValid, and REG_READ.
Referenced by ar9002_hw_calibrate().
|
static |
Definition at line 121 of file ath9k_ar9002_calib.c.
References ah, AR5416_MAX_CHAINS, AR_PHY_CAL_MEAS_0, AR_PHY_CAL_MEAS_1, AR_PHY_CAL_MEAS_2, DBG2, and REG_READ.
|
static |
Definition at line 140 of file ath9k_ar9002_calib.c.
References ah, AR5416_MAX_CHAINS, AR_PHY_CAL_MEAS_0, AR_PHY_CAL_MEAS_1, AR_PHY_CAL_MEAS_2, AR_PHY_CAL_MEAS_3, DBG2, and REG_READ.
|
static |
Definition at line 164 of file ath9k_ar9002_calib.c.
References ah, AR5416_MAX_CHAINS, AR_PHY_CAL_MEAS_0, AR_PHY_CAL_MEAS_1, AR_PHY_CAL_MEAS_2, AR_PHY_CAL_MEAS_3, DBG2, and REG_READ.
Definition at line 188 of file ath9k_ar9002_calib.c.
References ah, AR_PHY_TIMING_CTRL4, AR_PHY_TIMING_CTRL4_IQCORR_ENABLE, AR_PHY_TIMING_CTRL4_IQCORR_Q_I_COFF, AR_PHY_TIMING_CTRL4_IQCORR_Q_Q_COFF, DBG2, ath9k_hw_cal_data::iCoff, ath9k_hw_cal_data::qCoff, REG_RMW_FIELD, and REG_SET_BIT.
Definition at line 265 of file ath9k_ar9002_calib.c.
References ah, AR_PHY_NEW_ADC_DC_GAIN_CORR, AR_PHY_NEW_ADC_GAIN_CORR_ENABLE, DBG2, REG_READ, REG_WRITE, and val.
Definition at line 322 of file ath9k_ar9002_calib.c.
References ah, AR_PHY_NEW_ADC_DC_GAIN_CORR, AR_PHY_NEW_ADC_DC_OFFSET_CORR_ENABLE, ath9k_percal_data::calCountMax, ath9k_percal_data::calNumSamples, DBG2, REG_READ, REG_WRITE, and val.
|
static |
Definition at line 379 of file ath9k_ar9002_calib.c.
References ah, AR_PHY_CH0_TX_PWRCTRL11, AR_PHY_CH1_TX_PWRCTRL11, AR_PHY_TX_PWRCTRL4, AR_PHY_TX_PWRCTRL_OLPC_TEMP_COMP, AR_PHY_TX_PWRCTRL_PD_AVG_OUT, EEP_TEMPSENSE_SLOPE, MS, REG_READ, and REG_RMW_FIELD.
Referenced by ar9002_hw_olc_temp_compensation().
|
static |
Definition at line 409 of file ath9k_ar9002_calib.c.
References ah, AR9280_TX_GAIN_TABLE_SIZE, AR_PHY_TX_GAIN, AR_PHY_TX_GAIN_TBL1, AR_PHY_TX_PWRCTRL4, AR_PHY_TX_PWRCTRL_PD_AVG_OUT, EEP_DAC_HPWR_5G, MS, REG_READ, and REG_RMW_FIELD.
Referenced by ar9002_hw_olc_temp_compensation().
|
static |
Definition at line 439 of file ath9k_ar9002_calib.c.
References ah, AR9271_AN_RF2G3_CCOMP, AR9271_AN_RF2G6_OFFS, AR9285_AN_RF2G1, AR9285_AN_RF2G1_ENPACAL, AR9285_AN_RF2G1_PDPADRV1, AR9285_AN_RF2G1_PDPADRV2, AR9285_AN_RF2G1_PDPAOUT, AR9285_AN_RF2G2, AR9285_AN_RF2G2_OFFCAL, AR9285_AN_RF2G3, AR9285_AN_RF2G6, AR9285_AN_RF2G7, AR9285_AN_RF2G7_PADRVGN2TAB0, AR9285_AN_RF2G7_PWDDB, AR9285_AN_RF2G8, AR9285_AN_RF2G8_PADRVGN2TAB0, AR9285_AN_RXTXBB1, AR9285_AN_RXTXBB1_PDDACIF, AR9285_AN_RXTXBB1_PDRXTXBB1, AR9285_AN_RXTXBB1_PDV2I, AR9285_AN_RXTXBB1_SPARE9, AR9285_AN_TOP2, AR9285_AN_TOP3, AR9285_AN_TOP3_PWDDAC, ARRAY_SIZE, ENABLE_REGWRITE_BUFFER, MAX_PACAL_SKIPCOUNT, MS, REG_READ, REG_RMW_FIELD, REG_WRITE, REGWRITE_BUFFER_FLUSH, and udelay().
Referenced by ar9002_hw_pa_cal().
|
inlinestatic |
Definition at line 544 of file ath9k_ar9002_calib.c.
References ah, AR5416_EEP_TXGAIN_HIGH_POWER, AR9285_AN_RF2G1, AR9285_AN_RF2G1_ENPACAL, AR9285_AN_RF2G1_PDPADRV1, AR9285_AN_RF2G1_PDPADRV2, AR9285_AN_RF2G1_PDPAOUT, AR9285_AN_RF2G2, AR9285_AN_RF2G2_OFFCAL, AR9285_AN_RF2G3, AR9285_AN_RF2G3_PDVCCOMP, AR9285_AN_RF2G6, AR9285_AN_RF2G6_CCOMP, AR9285_AN_RF2G6_OFFS, AR9285_AN_RF2G7, AR9285_AN_RF2G7_PADRVGN2TAB0, AR9285_AN_RF2G7_PWDDB, AR9285_AN_RF2G8, AR9285_AN_RF2G8_PADRVGN2TAB0, AR9285_AN_RF2G9, AR9285_AN_RXTXBB1, AR9285_AN_RXTXBB1_PDDACIF, AR9285_AN_RXTXBB1_PDRXTXBB1, AR9285_AN_RXTXBB1_PDV2I, AR9285_AN_RXTXBB1_SPARE9, AR9285_AN_TOP2, AR9285_AN_TOP3, AR9285_AN_TOP3_PWDDAC, ARRAY_SIZE, DBG2, EEP_TXGAIN_TYPE, MAX_PACAL_SKIPCOUNT, MS, offset, REG_READ, REG_RMW_FIELD, REG_WRITE, and udelay().
Referenced by ar9002_hw_pa_cal().
|
static |
Definition at line 648 of file ath9k_ar9002_calib.c.
References ah, ar9271_hw_pa_cal(), ar9285_hw_pa_cal(), AR_SREV_9271, and AR_SREV_9285_12_OR_LATER.
Referenced by ar9002_hw_calibrate(), and ar9002_hw_init_cal().
|
static |
Definition at line 663 of file ath9k_ar9002_calib.c.
References ah, ar9280_hw_olc_temp_compensation(), ar9287_hw_olc_temp_compensation(), OLC_FOR_AR9280_20_LATER, and OLC_FOR_AR9287_10_LATER.
Referenced by ar9002_hw_calibrate().
|
static |
Definition at line 671 of file ath9k_ar9002_calib.c.
References ah, ar9002_hw_olc_temp_compensation(), ar9002_hw_pa_cal(), ar9002_hw_per_calibration(), AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_NF, ath9k_hw_getnf(), ath9k_hw_loadnf(), ath9k_hw_reset_calibration(), ath9k_hw_start_nfcal(), CAL_RUNNING, CAL_WAITING, ath9k_cal_list::calNext, ath9k_cal_list::calState, and REG_READ.
Referenced by ar9002_hw_attach_calib_ops().
|
static |
Definition at line 727 of file ath9k_ar9002_calib.c.
References ah, AH_WAIT_TIMEOUT, AR_PHY_ADC_CTL, AR_PHY_ADC_CTL_OFF_PWDADC, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL, AR_PHY_AGC_CONTROL_FLTR_CAL, AR_PHY_CL_CAL_CTL, AR_PHY_CL_CAL_ENABLE, AR_PHY_FC_DYN2040_EN, AR_PHY_PARALLEL_CAL_ENABLE, AR_PHY_TPCRG1, AR_PHY_TPCRG1_PD_CAL_ENABLE, AR_PHY_TURBO, ath9k_hw_wait(), DBG, IS_CHAN_HT20, REG_CLR_BIT, and REG_SET_BIT.
Referenced by ar9002_hw_init_cal(), and ar9285_hw_clc().
|
static |
Definition at line 765 of file ath9k_ar9002_calib.c.
References ah, AR9285_CLCAL_REDO_THRESH, ar9285_hw_cl_cal(), AR9285_RF2G5, AR9285_RF2G5_IC50TX, AR9285_RF2G5_IC50TX_SET, AR9285_RF2G5_IC50TX_XE_SET, AR_PHY_CLC_I0, AR_PHY_CLC_I0_S, AR_PHY_CLC_Q0, AR_PHY_CLC_Q0_S, AR_PHY_CLC_TBL1, AR_PHY_TX_GAIN_CLC, AR_PHY_TX_GAIN_CLC_S, AR_PHY_TX_GAIN_TBL1, AR_PHY_TX_PWRCTRL7, AR_PHY_TX_PWRCTRL_TX_GAIN_TAB_MAX, AR_SREV_9285E_20, MS, REG_READ, and REG_WRITE.
Referenced by ar9002_hw_init_cal().
|
static |
Definition at line 821 of file ath9k_ar9002_calib.c.
References ADC_DC_CAL, ADC_GAIN_CAL, ah, AH_WAIT_TIMEOUT, ar9002_hw_is_cal_supported(), ar9002_hw_pa_cal(), ar9285_hw_cl_cal(), ar9285_hw_clc(), AR_PHY_ADC_CTL, AR_PHY_ADC_CTL_OFF_PWDADC, AR_PHY_AGC_CONTROL, AR_PHY_AGC_CONTROL_CAL, AR_PHY_AGC_CONTROL_FLTR_CAL, AR_SREV_9100, AR_SREV_9160_10_OR_LATER, AR_SREV_9271, AR_SREV_9280_20_OR_LATER, AR_SREV_9285, AR_SREV_9285_12_OR_LATER, AR_SREV_9287, AR_SREV_9287_11_OR_LATER, ath9k_hw_reset_calibration(), ath9k_hw_start_nfcal(), ath9k_hw_wait(), DBG, DBG2, INIT_CAL, INSERT_CAL, IQ_MISMATCH_CAL, NULL, REG_CLR_BIT, REG_READ, REG_SET_BIT, and REG_WRITE.
Referenced by ar9002_hw_attach_calib_ops().
|
static |
Definition at line 958 of file ath9k_ar9002_calib.c.
References ADC_DC_CAL, adc_dc_cal_multi_sample, adc_dc_cal_single_sample, ADC_GAIN_CAL, adc_gain_cal_multi_sample, adc_gain_cal_single_sample, ah, AR_SREV_9100, AR_SREV_9160_10_OR_LATER, AR_SREV_9280_20_OR_LATER, AR_SREV_9287, iq_cal_multi_sample, iq_cal_single_sample, and IQ_MISMATCH_CAL.
Referenced by ar9002_hw_attach_calib_ops().
void ar9002_hw_attach_calib_ops | ( | struct ath_hw * | ah | ) |
Definition at line 987 of file ath9k_ar9002_calib.c.
References ah, ar9002_hw_calibrate(), ar9002_hw_init_cal(), ar9002_hw_init_cal_settings(), ar9002_hw_setup_calibration(), ath9k_hw_ops(), ath9k_hw_private_ops(), ath_hw_ops::calibrate, ath_hw_private_ops::init_cal, ath_hw_private_ops::init_cal_settings, and ath_hw_private_ops::setup_calibration.
Referenced by ar9002_hw_attach_ops().
|
static |
Definition at line 915 of file ath9k_ar9002_calib.c.
Referenced by ar9002_hw_init_cal_settings().
|
static |
Definition at line 922 of file ath9k_ar9002_calib.c.
Referenced by ar9002_hw_init_cal_settings().
|
static |
Definition at line 929 of file ath9k_ar9002_calib.c.
Referenced by ar9002_hw_init_cal_settings().
|
static |
Definition at line 936 of file ath9k_ar9002_calib.c.
Referenced by ar9002_hw_init_cal_settings().
|
static |
Definition at line 943 of file ath9k_ar9002_calib.c.
Referenced by ar9002_hw_init_cal_settings().
|
static |
Definition at line 950 of file ath9k_ar9002_calib.c.
Referenced by ar9002_hw_init_cal_settings().