Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
phy_calibration.h File Reference
#include "wbhal.h"

Go to the source code of this file.

Macros

#define REG_AGC_CTRL1   0x1000
 
#define REG_AGC_CTRL2   0x1004
 
#define REG_AGC_CTRL3   0x1008
 
#define REG_AGC_CTRL4   0x100C
 
#define REG_AGC_CTRL5   0x1010
 
#define REG_AGC_CTRL6   0x1014
 
#define REG_AGC_CTRL7   0x1018
 
#define REG_AGC_CTRL8   0x101C
 
#define REG_AGC_CTRL9   0x1020
 
#define REG_AGC_CTRL10   0x1024
 
#define REG_CCA_CTRL   0x1028
 
#define REG_A_ACQ_CTRL   0x102C
 
#define REG_B_ACQ_CTRL   0x1030
 
#define REG_A_TXRX_CTRL   0x1034
 
#define REG_B_TXRX_CTRL   0x1038
 
#define REG_A_TX_COEF3   0x103C
 
#define REG_A_TX_COEF2   0x1040
 
#define REG_A_TX_COEF1   0x1044
 
#define REG_B_TX_COEF2   0x1048
 
#define REG_B_TX_COEF1   0x104C
 
#define REG_MODE_CTRL   0x1050
 
#define REG_CALIB_DATA   0x1054
 
#define REG_IQ_ALPHA   0x1058
 
#define REG_DC_CANCEL   0x105C
 
#define REG_WTO_READ   0x1060
 
#define REG_OFFSET_READ   0x1064
 
#define REG_CALIB_READ1   0x1068
 
#define REG_CALIB_READ2   0x106C
 
#define REG_A_FREQ_EST   0x1070
 
#define MASK_AMER_OFF_REG   BIT(31)
 
#define MASK_BMER_OFF_REG   BIT(31)
 
#define MASK_LNA_FIX_GAIN   (BIT(3) | BIT(4))
 
#define MASK_AGC_FIX   BIT(1)
 
#define MASK_AGC_FIX_GAIN   0xFF00
 
#define MASK_ADC_DC_CAL_STR   BIT(10)
 
#define MASK_CALIB_START   BIT(4)
 
#define MASK_IQCAL_TONE_SEL   (BIT(3) | BIT(2))
 
#define MASK_IQCAL_MODE   (BIT(1) | BIT(0))
 
#define MASK_TX_CAL_0   0xF0000000
 
#define TX_CAL_0_SHIFT   28
 
#define MASK_TX_CAL_1   0x0F000000
 
#define TX_CAL_1_SHIFT   24
 
#define MASK_TX_CAL_2   0x00F00000
 
#define TX_CAL_2_SHIFT   20
 
#define MASK_TX_CAL_3   0x000F0000
 
#define TX_CAL_3_SHIFT   16
 
#define MASK_RX_CAL_0   0x0000F000
 
#define RX_CAL_0_SHIFT   12
 
#define MASK_RX_CAL_1   0x00000F00
 
#define RX_CAL_1_SHIFT   8
 
#define MASK_RX_CAL_2   0x000000F0
 
#define RX_CAL_2_SHIFT   4
 
#define MASK_RX_CAL_3   0x0000000F
 
#define RX_CAL_3_SHIFT   0
 
#define MASK_CANCEL_DC_I   0x3E0
 
#define CANCEL_DC_I_SHIFT   5
 
#define MASK_CANCEL_DC_Q   0x01F
 
#define CANCEL_DC_Q_SHIFT   0
 
#define MASK_ADC_DC_CAL_I(x)   (((x) & 0x0003FE00) >> 9)
 
#define MASK_ADC_DC_CAL_Q(x)   ((x) & 0x000001FF)
 
#define MASK_IQCAL_TONE_I   0x00001FFF
 
#define SHIFT_IQCAL_TONE_I(x)   ((x) >> 0)
 
#define MASK_IQCAL_TONE_Q   0x03FFE000
 
#define SHIFT_IQCAL_TONE_Q(x)   ((x) >> 13)
 
#define phy_init_rf(_A)   /* RFSynthesizer_initial(_A) */
 

Functions

void phy_set_rf_data (struct hw_data *pHwData, u32 index, u32 value)
 

Macro Definition Documentation

#define CANCEL_DC_I_SHIFT   5

Definition at line 69 of file phy_calibration.h.

#define CANCEL_DC_Q_SHIFT   0

Definition at line 71 of file phy_calibration.h.

#define MASK_ADC_DC_CAL_I (   x)    (((x) & 0x0003FE00) >> 9)

Definition at line 73 of file phy_calibration.h.

#define MASK_ADC_DC_CAL_Q (   x)    ((x) & 0x000001FF)

Definition at line 74 of file phy_calibration.h.

#define MASK_ADC_DC_CAL_STR   BIT(10)

Definition at line 46 of file phy_calibration.h.

#define MASK_AGC_FIX   BIT(1)

Definition at line 42 of file phy_calibration.h.

#define MASK_AGC_FIX_GAIN   0xFF00

Definition at line 44 of file phy_calibration.h.

#define MASK_AMER_OFF_REG   BIT(31)

Definition at line 37 of file phy_calibration.h.

#define MASK_BMER_OFF_REG   BIT(31)

Definition at line 39 of file phy_calibration.h.

#define MASK_CALIB_START   BIT(4)

Definition at line 47 of file phy_calibration.h.

#define MASK_CANCEL_DC_I   0x3E0

Definition at line 68 of file phy_calibration.h.

#define MASK_CANCEL_DC_Q   0x01F

Definition at line 70 of file phy_calibration.h.

#define MASK_IQCAL_MODE   (BIT(1) | BIT(0))

Definition at line 49 of file phy_calibration.h.

#define MASK_IQCAL_TONE_I   0x00001FFF

Definition at line 76 of file phy_calibration.h.

#define MASK_IQCAL_TONE_Q   0x03FFE000

Definition at line 78 of file phy_calibration.h.

#define MASK_IQCAL_TONE_SEL   (BIT(3) | BIT(2))

Definition at line 48 of file phy_calibration.h.

#define MASK_LNA_FIX_GAIN   (BIT(3) | BIT(4))

Definition at line 41 of file phy_calibration.h.

#define MASK_RX_CAL_0   0x0000F000

Definition at line 59 of file phy_calibration.h.

#define MASK_RX_CAL_1   0x00000F00

Definition at line 61 of file phy_calibration.h.

#define MASK_RX_CAL_2   0x000000F0

Definition at line 63 of file phy_calibration.h.

#define MASK_RX_CAL_3   0x0000000F

Definition at line 65 of file phy_calibration.h.

#define MASK_TX_CAL_0   0xF0000000

Definition at line 51 of file phy_calibration.h.

#define MASK_TX_CAL_1   0x0F000000

Definition at line 53 of file phy_calibration.h.

#define MASK_TX_CAL_2   0x00F00000

Definition at line 55 of file phy_calibration.h.

#define MASK_TX_CAL_3   0x000F0000

Definition at line 57 of file phy_calibration.h.

#define phy_init_rf (   _A)    /* RFSynthesizer_initial(_A) */

Definition at line 82 of file phy_calibration.h.

#define REG_A_ACQ_CTRL   0x102C

Definition at line 17 of file phy_calibration.h.

#define REG_A_FREQ_EST   0x1070

Definition at line 34 of file phy_calibration.h.

#define REG_A_TX_COEF1   0x1044

Definition at line 23 of file phy_calibration.h.

#define REG_A_TX_COEF2   0x1040

Definition at line 22 of file phy_calibration.h.

#define REG_A_TX_COEF3   0x103C

Definition at line 21 of file phy_calibration.h.

#define REG_A_TXRX_CTRL   0x1034

Definition at line 19 of file phy_calibration.h.

#define REG_AGC_CTRL1   0x1000

Definition at line 6 of file phy_calibration.h.

#define REG_AGC_CTRL10   0x1024

Definition at line 15 of file phy_calibration.h.

#define REG_AGC_CTRL2   0x1004

Definition at line 7 of file phy_calibration.h.

#define REG_AGC_CTRL3   0x1008

Definition at line 8 of file phy_calibration.h.

#define REG_AGC_CTRL4   0x100C

Definition at line 9 of file phy_calibration.h.

#define REG_AGC_CTRL5   0x1010

Definition at line 10 of file phy_calibration.h.

#define REG_AGC_CTRL6   0x1014

Definition at line 11 of file phy_calibration.h.

#define REG_AGC_CTRL7   0x1018

Definition at line 12 of file phy_calibration.h.

#define REG_AGC_CTRL8   0x101C

Definition at line 13 of file phy_calibration.h.

#define REG_AGC_CTRL9   0x1020

Definition at line 14 of file phy_calibration.h.

#define REG_B_ACQ_CTRL   0x1030

Definition at line 18 of file phy_calibration.h.

#define REG_B_TX_COEF1   0x104C

Definition at line 25 of file phy_calibration.h.

#define REG_B_TX_COEF2   0x1048

Definition at line 24 of file phy_calibration.h.

#define REG_B_TXRX_CTRL   0x1038

Definition at line 20 of file phy_calibration.h.

#define REG_CALIB_DATA   0x1054

Definition at line 27 of file phy_calibration.h.

#define REG_CALIB_READ1   0x1068

Definition at line 32 of file phy_calibration.h.

#define REG_CALIB_READ2   0x106C

Definition at line 33 of file phy_calibration.h.

#define REG_CCA_CTRL   0x1028

Definition at line 16 of file phy_calibration.h.

#define REG_DC_CANCEL   0x105C

Definition at line 29 of file phy_calibration.h.

#define REG_IQ_ALPHA   0x1058

Definition at line 28 of file phy_calibration.h.

#define REG_MODE_CTRL   0x1050

Definition at line 26 of file phy_calibration.h.

#define REG_OFFSET_READ   0x1064

Definition at line 31 of file phy_calibration.h.

#define REG_WTO_READ   0x1060

Definition at line 30 of file phy_calibration.h.

#define RX_CAL_0_SHIFT   12

Definition at line 60 of file phy_calibration.h.

#define RX_CAL_1_SHIFT   8

Definition at line 62 of file phy_calibration.h.

#define RX_CAL_2_SHIFT   4

Definition at line 64 of file phy_calibration.h.

#define RX_CAL_3_SHIFT   0

Definition at line 66 of file phy_calibration.h.

#define SHIFT_IQCAL_TONE_I (   x)    ((x) >> 0)

Definition at line 77 of file phy_calibration.h.

#define SHIFT_IQCAL_TONE_Q (   x)    ((x) >> 13)

Definition at line 79 of file phy_calibration.h.

#define TX_CAL_0_SHIFT   28

Definition at line 52 of file phy_calibration.h.

#define TX_CAL_1_SHIFT   24

Definition at line 54 of file phy_calibration.h.

#define TX_CAL_2_SHIFT   20

Definition at line 56 of file phy_calibration.h.

#define TX_CAL_3_SHIFT   16

Definition at line 58 of file phy_calibration.h.

Function Documentation

void phy_set_rf_data ( struct hw_data pHwData,
u32  index,
u32  value 
)

Definition at line 1477 of file phy_calibration.c.