Staging: winbond: phy_calibration.h coding style cleanup.
I fixed all checkpatch.pl problems, removed versioning comments and "commented away" code. Signed-off-by: Lars Lindley <lindley@coyote.org> Acked-by: Pavel Machek <pavel@ucw.cz> Acked-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
8eb3e22e56
commit
0970305a9f
|
@ -3,7 +3,6 @@
|
|||
|
||||
#include "wbhal_f.h"
|
||||
|
||||
// 20031229 Turbo add
|
||||
#define REG_AGC_CTRL1 0x1000
|
||||
#define REG_AGC_CTRL2 0x1004
|
||||
#define REG_AGC_CTRL3 0x1008
|
||||
|
@ -35,22 +34,19 @@
|
|||
#define REG_A_FREQ_EST 0x1070
|
||||
|
||||
|
||||
|
||||
|
||||
// 20031101 Turbo add
|
||||
#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_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_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
|
||||
|
@ -74,34 +70,15 @@
|
|||
#define MASK_CANCEL_DC_Q 0x01F
|
||||
#define CANCEL_DC_Q_SHIFT 0
|
||||
|
||||
// LA20040210 kevin
|
||||
//#define MASK_ADC_DC_CAL_I(x) (((x)&0x1FE00)>>9)
|
||||
//#define MASK_ADC_DC_CAL_Q(x) ((x)&0x1FF)
|
||||
#define MASK_ADC_DC_CAL_I(x) (((x)&0x0003FE00)>>9)
|
||||
#define MASK_ADC_DC_CAL_Q(x) ((x)&0x000001FF)
|
||||
#define MASK_ADC_DC_CAL_I(x) (((x) & 0x0003FE00) >> 9)
|
||||
#define MASK_ADC_DC_CAL_Q(x) ((x) & 0x000001FF)
|
||||
|
||||
// LA20040210 kevin (Turbo has wrong definition)
|
||||
//#define MASK_IQCAL_TONE_I 0x7FFC000
|
||||
//#define SHIFT_IQCAL_TONE_I(x) ((x)>>13)
|
||||
//#define MASK_IQCAL_TONE_Q 0x1FFF
|
||||
//#define SHIFT_IQCAL_TONE_Q(x) ((x)>>0)
|
||||
#define MASK_IQCAL_TONE_I 0x00001FFF
|
||||
#define SHIFT_IQCAL_TONE_I(x) ((x)>>0)
|
||||
#define SHIFT_IQCAL_TONE_I(x) ((x) >> 0)
|
||||
#define MASK_IQCAL_TONE_Q 0x03FFE000
|
||||
#define SHIFT_IQCAL_TONE_Q(x) ((x)>>13)
|
||||
#define SHIFT_IQCAL_TONE_Q(x) ((x) >> 13)
|
||||
|
||||
// LA20040210 kevin (Turbo has wrong definition)
|
||||
//#define MASK_IQCAL_IMAGE_I 0x7FFC000
|
||||
//#define SHIFT_IQCAL_IMAGE_I(x) ((x)>>13)
|
||||
//#define MASK_IQCAL_IMAGE_Q 0x1FFF
|
||||
//#define SHIFT_IQCAL_IMAGE_Q(x) ((x)>>0)
|
||||
|
||||
//#define MASK_IQCAL_IMAGE_I 0x00001FFF
|
||||
//#define SHIFT_IQCAL_IMAGE_I(x) ((x)>>0)
|
||||
//#define MASK_IQCAL_IMAGE_Q 0x03FFE000
|
||||
//#define SHIFT_IQCAL_IMAGE_Q(x) ((x)>>13)
|
||||
|
||||
void phy_set_rf_data( struct hw_data * pHwData, u32 index, u32 value );
|
||||
#define phy_init_rf( _A ) //RFSynthesizer_initial( _A )
|
||||
void phy_set_rf_data(struct hw_data *pHwData, u32 index, u32 value);
|
||||
#define phy_init_rf(_A) /* RFSynthesizer_initial(_A) */
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue