Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
adf4350.h File Reference

Go to the source code of this file.

Data Structures

struct  adf4350_platform_data
 

Macros

#define ADF4350_REG0   0
 
#define ADF4350_REG1   1
 
#define ADF4350_REG2   2
 
#define ADF4350_REG3   3
 
#define ADF4350_REG4   4
 
#define ADF4350_REG5   5
 
#define ADF4350_REG0_FRACT(x)   (((x) & 0xFFF) << 3)
 
#define ADF4350_REG0_INT(x)   (((x) & 0xFFFF) << 15)
 
#define ADF4350_REG1_MOD(x)   (((x) & 0xFFF) << 3)
 
#define ADF4350_REG1_PHASE(x)   (((x) & 0xFFF) << 15)
 
#define ADF4350_REG1_PRESCALER   (1 << 27)
 
#define ADF4350_REG2_COUNTER_RESET_EN   (1 << 3)
 
#define ADF4350_REG2_CP_THREESTATE_EN   (1 << 4)
 
#define ADF4350_REG2_POWER_DOWN_EN   (1 << 5)
 
#define ADF4350_REG2_PD_POLARITY_POS   (1 << 6)
 
#define ADF4350_REG2_LDP_6ns   (1 << 7)
 
#define ADF4350_REG2_LDP_10ns   (0 << 7)
 
#define ADF4350_REG2_LDF_FRACT_N   (0 << 8)
 
#define ADF4350_REG2_LDF_INT_N   (1 << 8)
 
#define ADF4350_REG2_CHARGE_PUMP_CURR_uA(x)   (((((x)-312) / 312) & 0xF) << 9)
 
#define ADF4350_REG2_DOUBLE_BUFF_EN   (1 << 13)
 
#define ADF4350_REG2_10BIT_R_CNT(x)   ((x) << 14)
 
#define ADF4350_REG2_RDIV2_EN   (1 << 24)
 
#define ADF4350_REG2_RMULT2_EN   (1 << 25)
 
#define ADF4350_REG2_MUXOUT(x)   ((x) << 26)
 
#define ADF4350_REG2_NOISE_MODE(x)   ((x) << 29)
 
#define ADF4350_MUXOUT_THREESTATE   0
 
#define ADF4350_MUXOUT_DVDD   1
 
#define ADF4350_MUXOUT_GND   2
 
#define ADF4350_MUXOUT_R_DIV_OUT   3
 
#define ADF4350_MUXOUT_N_DIV_OUT   4
 
#define ADF4350_MUXOUT_ANALOG_LOCK_DETECT   5
 
#define ADF4350_MUXOUT_DIGITAL_LOCK_DETECT   6
 
#define ADF4350_REG3_12BIT_CLKDIV(x)   ((x) << 3)
 
#define ADF4350_REG3_12BIT_CLKDIV_MODE(x)   ((x) << 16)
 
#define ADF4350_REG3_12BIT_CSR_EN   (1 << 18)
 
#define ADF4351_REG3_CHARGE_CANCELLATION_EN   (1 << 21)
 
#define ADF4351_REG3_ANTI_BACKLASH_3ns_EN   (1 << 22)
 
#define ADF4351_REG3_BAND_SEL_CLOCK_MODE_HIGH   (1 << 23)
 
#define ADF4350_REG4_OUTPUT_PWR(x)   ((x) << 3)
 
#define ADF4350_REG4_RF_OUT_EN   (1 << 5)
 
#define ADF4350_REG4_AUX_OUTPUT_PWR(x)   ((x) << 6)
 
#define ADF4350_REG4_AUX_OUTPUT_EN   (1 << 8)
 
#define ADF4350_REG4_AUX_OUTPUT_FUND   (1 << 9)
 
#define ADF4350_REG4_AUX_OUTPUT_DIV   (0 << 9)
 
#define ADF4350_REG4_MUTE_TILL_LOCK_EN   (1 << 10)
 
#define ADF4350_REG4_VCO_PWRDOWN_EN   (1 << 11)
 
#define ADF4350_REG4_8BIT_BAND_SEL_CLKDIV(x)   ((x) << 12)
 
#define ADF4350_REG4_RF_DIV_SEL(x)   ((x) << 20)
 
#define ADF4350_REG4_FEEDBACK_DIVIDED   (0 << 23)
 
#define ADF4350_REG4_FEEDBACK_FUND   (1 << 23)
 
#define ADF4350_REG5_LD_PIN_MODE_LOW   (0 << 22)
 
#define ADF4350_REG5_LD_PIN_MODE_DIGITAL   (1 << 22)
 
#define ADF4350_REG5_LD_PIN_MODE_HIGH   (3 << 22)
 
#define ADF4350_MAX_OUT_FREQ   4400000000ULL /* Hz */
 
#define ADF4350_MIN_OUT_FREQ   137500000 /* Hz */
 
#define ADF4351_MIN_OUT_FREQ   34375000 /* Hz */
 
#define ADF4350_MIN_VCO_FREQ   2200000000ULL /* Hz */
 
#define ADF4350_MAX_FREQ_45_PRESC   3000000000ULL /* Hz */
 
#define ADF4350_MAX_FREQ_PFD   32000000 /* Hz */
 
#define ADF4350_MAX_BANDSEL_CLK   125000 /* Hz */
 
#define ADF4350_MAX_FREQ_REFIN   250000000 /* Hz */
 
#define ADF4350_MAX_MODULUS   4095
 
#define ADF4350_MAX_R_CNT   1023
 

Macro Definition Documentation

#define ADF4350_MAX_BANDSEL_CLK   125000 /* Hz */

Definition at line 87 of file adf4350.h.

#define ADF4350_MAX_FREQ_45_PRESC   3000000000ULL /* Hz */

Definition at line 85 of file adf4350.h.

#define ADF4350_MAX_FREQ_PFD   32000000 /* Hz */

Definition at line 86 of file adf4350.h.

#define ADF4350_MAX_FREQ_REFIN   250000000 /* Hz */

Definition at line 88 of file adf4350.h.

#define ADF4350_MAX_MODULUS   4095

Definition at line 89 of file adf4350.h.

#define ADF4350_MAX_OUT_FREQ   4400000000ULL /* Hz */

Definition at line 81 of file adf4350.h.

#define ADF4350_MAX_R_CNT   1023

Definition at line 90 of file adf4350.h.

#define ADF4350_MIN_OUT_FREQ   137500000 /* Hz */

Definition at line 82 of file adf4350.h.

#define ADF4350_MIN_VCO_FREQ   2200000000ULL /* Hz */

Definition at line 84 of file adf4350.h.

#define ADF4350_MUXOUT_ANALOG_LOCK_DETECT   5

Definition at line 50 of file adf4350.h.

#define ADF4350_MUXOUT_DIGITAL_LOCK_DETECT   6

Definition at line 51 of file adf4350.h.

#define ADF4350_MUXOUT_DVDD   1

Definition at line 46 of file adf4350.h.

#define ADF4350_MUXOUT_GND   2

Definition at line 47 of file adf4350.h.

#define ADF4350_MUXOUT_N_DIV_OUT   4

Definition at line 49 of file adf4350.h.

#define ADF4350_MUXOUT_R_DIV_OUT   3

Definition at line 48 of file adf4350.h.

#define ADF4350_MUXOUT_THREESTATE   0

Definition at line 45 of file adf4350.h.

#define ADF4350_REG0   0

Definition at line 13 of file adf4350.h.

#define ADF4350_REG0_FRACT (   x)    (((x) & 0xFFF) << 3)

Definition at line 21 of file adf4350.h.

#define ADF4350_REG0_INT (   x)    (((x) & 0xFFFF) << 15)

Definition at line 22 of file adf4350.h.

#define ADF4350_REG1   1

Definition at line 14 of file adf4350.h.

#define ADF4350_REG1_MOD (   x)    (((x) & 0xFFF) << 3)

Definition at line 25 of file adf4350.h.

#define ADF4350_REG1_PHASE (   x)    (((x) & 0xFFF) << 15)

Definition at line 26 of file adf4350.h.

#define ADF4350_REG1_PRESCALER   (1 << 27)

Definition at line 27 of file adf4350.h.

#define ADF4350_REG2   2

Definition at line 15 of file adf4350.h.

#define ADF4350_REG2_10BIT_R_CNT (   x)    ((x) << 14)

Definition at line 40 of file adf4350.h.

#define ADF4350_REG2_CHARGE_PUMP_CURR_uA (   x)    (((((x)-312) / 312) & 0xF) << 9)

Definition at line 38 of file adf4350.h.

#define ADF4350_REG2_COUNTER_RESET_EN   (1 << 3)

Definition at line 30 of file adf4350.h.

#define ADF4350_REG2_CP_THREESTATE_EN   (1 << 4)

Definition at line 31 of file adf4350.h.

#define ADF4350_REG2_DOUBLE_BUFF_EN   (1 << 13)

Definition at line 39 of file adf4350.h.

#define ADF4350_REG2_LDF_FRACT_N   (0 << 8)

Definition at line 36 of file adf4350.h.

#define ADF4350_REG2_LDF_INT_N   (1 << 8)

Definition at line 37 of file adf4350.h.

#define ADF4350_REG2_LDP_10ns   (0 << 7)

Definition at line 35 of file adf4350.h.

#define ADF4350_REG2_LDP_6ns   (1 << 7)

Definition at line 34 of file adf4350.h.

#define ADF4350_REG2_MUXOUT (   x)    ((x) << 26)

Definition at line 43 of file adf4350.h.

#define ADF4350_REG2_NOISE_MODE (   x)    ((x) << 29)

Definition at line 44 of file adf4350.h.

#define ADF4350_REG2_PD_POLARITY_POS   (1 << 6)

Definition at line 33 of file adf4350.h.

#define ADF4350_REG2_POWER_DOWN_EN   (1 << 5)

Definition at line 32 of file adf4350.h.

#define ADF4350_REG2_RDIV2_EN   (1 << 24)

Definition at line 41 of file adf4350.h.

#define ADF4350_REG2_RMULT2_EN   (1 << 25)

Definition at line 42 of file adf4350.h.

#define ADF4350_REG3   3

Definition at line 16 of file adf4350.h.

#define ADF4350_REG3_12BIT_CLKDIV (   x)    ((x) << 3)

Definition at line 54 of file adf4350.h.

#define ADF4350_REG3_12BIT_CLKDIV_MODE (   x)    ((x) << 16)

Definition at line 55 of file adf4350.h.

#define ADF4350_REG3_12BIT_CSR_EN   (1 << 18)

Definition at line 56 of file adf4350.h.

#define ADF4350_REG4   4

Definition at line 17 of file adf4350.h.

#define ADF4350_REG4_8BIT_BAND_SEL_CLKDIV (   x)    ((x) << 12)

Definition at line 70 of file adf4350.h.

#define ADF4350_REG4_AUX_OUTPUT_DIV   (0 << 9)

Definition at line 67 of file adf4350.h.

#define ADF4350_REG4_AUX_OUTPUT_EN   (1 << 8)

Definition at line 65 of file adf4350.h.

#define ADF4350_REG4_AUX_OUTPUT_FUND   (1 << 9)

Definition at line 66 of file adf4350.h.

#define ADF4350_REG4_AUX_OUTPUT_PWR (   x)    ((x) << 6)

Definition at line 64 of file adf4350.h.

#define ADF4350_REG4_FEEDBACK_DIVIDED   (0 << 23)

Definition at line 72 of file adf4350.h.

#define ADF4350_REG4_FEEDBACK_FUND   (1 << 23)

Definition at line 73 of file adf4350.h.

#define ADF4350_REG4_MUTE_TILL_LOCK_EN   (1 << 10)

Definition at line 68 of file adf4350.h.

#define ADF4350_REG4_OUTPUT_PWR (   x)    ((x) << 3)

Definition at line 62 of file adf4350.h.

#define ADF4350_REG4_RF_DIV_SEL (   x)    ((x) << 20)

Definition at line 71 of file adf4350.h.

#define ADF4350_REG4_RF_OUT_EN   (1 << 5)

Definition at line 63 of file adf4350.h.

#define ADF4350_REG4_VCO_PWRDOWN_EN   (1 << 11)

Definition at line 69 of file adf4350.h.

#define ADF4350_REG5   5

Definition at line 18 of file adf4350.h.

#define ADF4350_REG5_LD_PIN_MODE_DIGITAL   (1 << 22)

Definition at line 77 of file adf4350.h.

#define ADF4350_REG5_LD_PIN_MODE_HIGH   (3 << 22)

Definition at line 78 of file adf4350.h.

#define ADF4350_REG5_LD_PIN_MODE_LOW   (0 << 22)

Definition at line 76 of file adf4350.h.

#define ADF4351_MIN_OUT_FREQ   34375000 /* Hz */

Definition at line 83 of file adf4350.h.

#define ADF4351_REG3_ANTI_BACKLASH_3ns_EN   (1 << 22)

Definition at line 58 of file adf4350.h.

#define ADF4351_REG3_BAND_SEL_CLOCK_MODE_HIGH   (1 << 23)

Definition at line 59 of file adf4350.h.

#define ADF4351_REG3_CHARGE_CANCELLATION_EN   (1 << 21)

Definition at line 57 of file adf4350.h.