Header file of AD9152 Driver. More...
Go to the source code of this file.
Classes | |
struct | ad9152_init_param |
struct | ad9152_dev |
Macros | |
#define | REG_SPI_INTFCONFA 0x000 /* Interface configuration A */ |
#define | REG_SPI_CHIPTYPE 0x003 /* Chip Type */ |
#define | REG_SPI_PRODIDL 0x004 /* Product Identification Low Byte */ |
#define | REG_SPI_PRODIDH 0x005 /* Product Identification High Byte */ |
#define | REG_SPI_CHIPGRADE 0x006 /* Chip Grade */ |
#define | REG_PWRCNTRL0 0x011 /* Power Control Reg 1 */ |
#define | REG_TXENMASK1 0x012 /* TXenable masks */ |
#define | REG_PWRCNTRL3 0x013 /* Power control register 3 */ |
#define | REG_PWRCNTRL1 0x014 /* Power control register 1 */ |
#define | REG_IRQ_ENABLE0 0x01F /* Interrupt Enable */ |
#define | REG_IRQ_ENABLE1 0x020 /* Interrupt Enable */ |
#define | REG_IRQ_ENABLE2 0x021 /* Interrupt Enable */ |
#define | REG_IRQ_STATUS0 0x023 /* Interrupt Status */ |
#define | REG_IRQ_STATUS1 0x024 /* Interrupt Status */ |
#define | REG_IRQ_STATUS2 0x025 /* Interrupt Status */ |
#define | REG_IRQ_STATUS3 0x026 /* Interrupt Status */ |
#define | REG_IRQ_STATUS4 0x027 /* Interrupt Status */ |
#define | REG_JESD_CHECKS 0x030 /* JESD Parameter Checking */ |
#define | REG_SYNC_TESTCTRL 0x031 /* Sync Control Reg0 */ |
#define | REG_SYNC_DACDELAY_L 0x032 /* Sync Logic DacDelay [7:0] */ |
#define | REG_SYNC_DACDELAY_H 0x033 /* Sync Logic DacDelay [8] */ |
#define | REG_SYNC_ERRWINDOW 0x034 /* Sync Error Window */ |
#define | REG_SYNC_DLYCOUNT 0x035 /* Sync Control Ref Delay Count */ |
#define | REG_SYNC_REFCOUNT 0x036 /* Sync SysRef InActive Interval */ |
#define | REG_SYNC_LASTERR_L 0x038 /* SyncLASTerror_L */ |
#define | REG_SYNC_LASTERR_H 0x039 /* SyncLASTerror_H */ |
#define | REG_SYNC_CTRL 0x03A /* Sync Mode Control */ |
#define | REG_SYNC_STATUS 0x03B /* Sync Alignment Flags */ |
#define | REG_SYNC_CURRERR_L 0x03C /* Sync Alignment Error[7:0] */ |
#define | REG_SYNC_CURRERR_H 0x03D /* Sync Alignment Error[8] */ |
#define | REG_ERROR_THERM 0x03E /* Sync Error Thermometer */ |
#define | REG_DACGAIN0_1 0x040 /* MSBs of Full Scale Adjust DAC */ |
#define | REG_DACGAIN0_0 0x041 /* LSBs of Full Scale Adjust DAC */ |
#define | REG_DACGAIN1_1 0x042 /* MSBs of Full Scale Adjust DAC */ |
#define | REG_DACGAIN1_0 0x043 /* LSBs of Full Scale Adjust DAC */ |
#define | REG_COARSE_GROUP_DLY 0x047 /* Coarse Group Delay Adjustment */ |
#define | REG_NCO_ALIGNMODE 0x050 /* NCO Align Mode */ |
#define | REG_NCOKEY_ILSB 0x051 /* NCO Clear on Data Key I lsb */ |
#define | REG_NCOKEY_IMSB 0x052 /* NCO Clear on Data Key I msb */ |
#define | REG_NCOKEY_QLSB 0x053 /* NCO Clear on Data Key Q lsb */ |
#define | REG_NCOKEY_QMSB 0x054 /* NCO Clear on Data Key Q msb */ |
#define | REG_PA_THRES0 0x060 /* PDP Threshold */ |
#define | REG_PA_THRES1 0x061 /* PDP Threshold */ |
#define | REG_PA_AVG_TIME 0x062 /* PDP Control */ |
#define | REG_PA_POWER0 0x063 /* PDP Power */ |
#define | REG_PA_POWER1 0x064 /* PDP Power */ |
#define | REG_PA_OFFGAIN0 0x065 /* PDP Offgain 0 */ |
#define | REG_PA_OFFGAIN1 0x066 /* PDP Offgain 1 */ |
#define | REG_CLKCFG0 0x080 /* Clock Configuration */ |
#define | REG_SYSREF_ACTRL0 0x081 /* SYSREF Analog Control 0 */ |
#define | REG_SYSREF_ACTRL1 0x082 /* SYSREF Analog Control 1 */ |
#define | REG_DACPLLCNTRL 0x083 /* Top Level Control DAC Clock PLL */ |
#define | REG_DACPLLSTATUS 0x084 /* DAC PLL Status Bits */ |
#define | REG_DACINTEGERWORD0 0x085 /* Feedback divider tuning word */ |
#define | REG_DACLOOPFILT1 0x087 /* C1 and C2 control */ |
#define | REG_DACLOOPFILT2 0x088 /* R1 and C3 control */ |
#define | REG_DACLOOPFILT3 0x089 /* Bypass and R2 control */ |
#define | REG_DACCPCNTRL 0x08A /* Charge Pump/Cntrl Voltage */ |
#define | REG_DACLOGENCNTRL 0x08B /* Logen Control */ |
#define | REG_DACLDOCNTRL1 0x08C /* LDO Control1 + Reference Divider */ |
#define | REG_DAC_PLL_CONFIG0 0x08D /* DAC PLL Configuration */ |
#define | REG_CLK_DETECT 0x08E /* Clock Detect */ |
#define | REG_DIG_TEST0 0x0F7 /* Digital Test 0 */ |
#define | REG_DC_TEST_VALUEI0 0x0F8 /* DC Test Value I0 */ |
#define | REG_DC_TEST_VALUEI1 0x0F9 /* DC Test Value I1 */ |
#define | REG_DC_TEST_VALUEQ0 0x0FA /* DC Test Value Q0 */ |
#define | REG_DC_TEST_VALUEQ1 0x0FB /* DC Test Value Q1 */ |
#define | REG_DATA_FORMAT 0x110 /* Data format */ |
#define | REG_DATAPATH_CTRL 0x111 /* Datapath Control */ |
#define | REG_INTERP_MODE 0x112 /* Interpolation Mode */ |
#define | REG_NCO_FTW_UPDATE 0x113 /* NCO Frequency Tuning Word Update */ |
#define | REG_FTW0 0x114 /* NCO Frequency Tuning Word LSB */ |
#define | REG_FTW1 0x115 /* NCO Frequency Tuning Word */ |
#define | REG_FTW2 0x116 /* NCO Frequency Tuning Word */ |
#define | REG_FTW3 0x117 /* NCO Frequency Tuning Word */ |
#define | REG_FTW4 0x118 /* NCO Frequency Tuning Word */ |
#define | REG_FTW5 0x119 /* NCO Frequency Tuning Word MSB */ |
#define | REG_NCO_PHASE_OFFSET0 0x11A /* NCO Phase Offset LSB */ |
#define | REG_NCO_PHASE_OFFSET1 0x11B /* NCO Phase Offset MSB */ |
#define | REG_NCO_PHASE_ADJ0 0x11C /* I/Q Phase Adjust LSB */ |
#define | REG_NCO_PHASE_ADJ1 0x11D /* I/Q Phase Adjust MSB */ |
#define | REG_TXEN_SM_0 0x11F /* Transmit enable power control state machine */ |
#define | REG_DACOUT_ON_DOWN 0x125 /* DAC out down control and on trigger */ |
#define | REG_DACOFF 0x12C /* DAC Shutdown Source */ |
#define | REG_DIE_TEMP_CTRL0 0x12F /* Die Temp Range Control */ |
#define | REG_DIE_TEMP0 0x132 /* Die temp LSB */ |
#define | REG_DIE_TEMP1 0x133 /* Die Temp MSB */ |
#define | REG_DIE_TEMP_UPDATE 0x134 /* Die temperature update */ |
#define | REG_DC_OFFSET_CTRL 0x135 /* DC Offset Control */ |
#define | REG_IPATH_DC_OFFSET_1PART0 0x136 /* LSB of first part of DC Offset value for I path */ |
#define | REG_IPATH_DC_OFFSET_1PART1 0x137 /* MSB of first part of DC Offset value for I path */ |
#define | REG_QPATH_DC_OFFSET_1PART0 0x138 /* LSB of first part of DC Offset value for Q path */ |
#define | REG_QPATH_DC_OFFSET_1PART1 0x139 /* MSB of first part of DC Offset value for Q path */ |
#define | REG_IPATH_DC_OFFSET_2PART 0x13A /* Second part of DC Offset value for I path */ |
#define | REG_QPATH_DC_OFFSET_2PART 0x13B /* Second part of DC Offset value for Q path */ |
#define | REG_IDAC_DIG_GAIN0 0x13C /* I DAC Gain LSB */ |
#define | REG_IDAC_DIG_GAIN1 0x13D /* I DAC Gain MSB */ |
#define | REG_QDAC_DIG_GAIN0 0x13E /* Q DAC Gain LSB */ |
#define | REG_QDAC_DIG_GAIN1 0x13F /* Q DAC Gain MSB */ |
#define | REG_GAIN_RAMP_UP_STP0 0x140 /* LSB of digital gain rises */ |
#define | REG_GAIN_RAMP_UP_STP1 0x141 /* MSB of digital gain rises */ |
#define | REG_GAIN_RAMP_DOWN_STP0 0x142 /* LSB of digital gain drops */ |
#define | REG_GAIN_RAMP_DOWN_STP1 0x143 /* MSB of digital gain drops */ |
#define | REG_PRBS 0x14B /* PRBS Input Data Checker */ |
#define | REG_PRBS_ERROR_I 0x14C /* PRBS Error Counter Real */ |
#define | REG_PRBS_ERROR_Q 0x14D /* PRBS Error Counter Imaginary */ |
#define | REG_DATAPATH_CTRL2 0x151 /* Datapath Control 2 */ |
#define | REG_ACC_MODULUS0 0x152 /* ACC Modulus 0 */ |
#define | REG_ACC_MODULUS1 0x153 /* ACC Modulus 1 */ |
#define | REG_ACC_MODULUS2 0x154 /* ACC Modulus 2 */ |
#define | REG_ACC_MODULUS3 0x155 /* ACC Modulus 3 */ |
#define | REG_ACC_MODULUS4 0x156 /* ACC Modulus 4 */ |
#define | REG_ACC_MODULUS5 0x157 /* ACC Modulus 5 */ |
#define | REG_ACC_DELTA0 0x158 /* ACC Delta 0 */ |
#define | REG_ACC_DELTA1 0x159 /* ACC Delta 1 */ |
#define | REG_ACC_DELTA2 0x15A /* ACC Delta 2 */ |
#define | REG_ACC_DELTA3 0x15B /* ACC Delta 3 */ |
#define | REG_ACC_DELTA4 0x15C /* ACC Delta 4 */ |
#define | REG_ACC_DELTA5 0x15D /* ACC Delta 5 */ |
#define | REG_PFIR_COEFF0_L 0x17A /* PFIR Coefficient 0 LSB */ |
#define | REG_PFIR_COEFF0_H 0x17B /* PFIR Coefficient 0 MSB */ |
#define | REG_PFIR_COEFF1_L 0x17C /* PFIR Coefficient 1 LSB */ |
#define | REG_PFIR_COEFF1_H 0x17D /* PFIR Coefficient 1 MSB */ |
#define | REG_PFIR_COEFF2_L 0x17E /* PFIR Coefficient 2 LSB */ |
#define | REG_PFIR_COEFF2_H 0x17F /* PFIR Coefficient 2 MSB */ |
#define | REG_PFIR_COEFF3_L 0x180 /* PFIR Coefficient 3 LSB */ |
#define | REG_PFIR_COEFF3_H 0x181 /* PFIR Coefficient 3 MSB */ |
#define | REG_PFIR_COEFF_UPDATE 0x182 /* PFIR Coefficient Update */ |
#define | REG_DAC_PLL_CONFIG1 0x1B0 /* DAC PLL Configuration */ |
#define | REG_DACPLLT4 0x1B4 /* VCO Cal Control */ |
#define | REG_DACPLLT5 0x1B5 /* ALC/Varactor control */ |
#define | REG_DACPLLT6 0x1B6 /* DAC PLL VCO Control */ |
#define | REG_DAC_PLL_CONFIG2 0x1B9 /* DAC PLL Configuration */ |
#define | REG_DACPLLTB 0x1BB /* VCO Bias Control */ |
#define | REG_DAC_PLL_CONFIG3 0x1BC /* DAC PLL Configuration */ |
#define | REG_DAC_PLL_CONFIG4 0x1BE /* DAC PLL Configuration */ |
#define | REG_DAC_PLL_CONFIG5 0x1BF /* DAC PLL Configuration */ |
#define | REG_DAC_PLL_CONFIG6 0x1C0 /* DAC PLL Configuration */ |
#define | REG_DAC_PLL_CONFIG7 0x1C1 /* DAC PLL Configuration */ |
#define | REG_DACPLLT17 0x1C4 /* Varactor ControlV */ |
#define | REG_DACPLLT18 0x1C5 /* DAC PLL Control */ |
#define | REG_TEST_MODE 0x1FE /* Test Mode */ |
#define | REG_MASTER_PD 0x200 /* Master power down for Receiver PHYx */ |
#define | REG_PHY_PD 0x201 /* Power down for individual Receiver PHYx */ |
#define | REG_GENERIC_PD 0x203 /* Miscellaneous power down controls */ |
#define | REG_CDR_RESET 0x206 /* CDR Reset */ |
#define | REG_CDR_OPERATING_MODE_REG_0 0x230 /* Clock and data recovery operating modes */ |
#define | REG_EQ_BIAS_REG 0x268 /* Equalizer bias control */ |
#define | REG_SYNTH_ENABLE_CNTRL 0x280 /* Rx PLL enable controls */ |
#define | REG_PLL_STATUS 0x281 /* Rx PLL status readbacks */ |
#define | REG_SERDES_PLL_CONFIG0 0x284 /* SERDES PLL Configuration */ |
#define | REG_SERDES_PLL_CONFIG1 0x285 /* SERDES PLL Configuration */ |
#define | REG_SERDES_PLL_CONFIG2 0x286 /* SERDES PLL Configuration */ |
#define | REG_SERDES_PLL_CONFIG3 0x287 /* SERDES PLL Configuration */ |
#define | REG_REF_CLK_DIVIDER_LDO 0x289 /* Rx PLL LDO control */ |
#define | REG_SERDES_PLL_VCO_CONTROL0 0x28A /* SERDES PLL VCO Control 0 */ |
#define | REG_SERDES_PLL_CONFIG4 0x28B /* SERDES PLL Configuration */ |
#define | REG_SERDES_PLL_CONFIG5 0x290 /* SERDES PLL Configuration */ |
#define | REG_SERDES_PLL_VCO_CONTROL1 0x291 /* SERDES PLL VCO Control 1 */ |
#define | REG_SERDES_PLL_CONFIG6 0x294 /* SERDES PLL Configuration */ |
#define | REG_SERDES_PLL_VCO_CONTROL2 0x296 /* SERDES PLL VCO Control 2 */ |
#define | REG_SERDES_PLL_CONFIG7 0x297 /* SERDES PLL Configuration */ |
#define | REG_SERDES_PLL_CONFIG8 0x299 /* SERDES PLL Configuration */ |
#define | REG_SERDES_PLL_CONFIG9 0x29A /* SERDES PLL Configuration */ |
#define | REG_SERDES_PLL_CONFIG10 0x29C /* SERDES PLL Configuration */ |
#define | REG_SERDES_PLL_CONFIG11 0x29F /* SERDES PLL Configuration */ |
#define | REG_SERDES_PLL_CONFIG12 0x2A0 /* SERDES PLL Configuration */ |
#define | REG_TERM_BLK1_CTRLREG0 0x2A7 /* Termination controls for PHYs 0, 1, 6, and 7 */ |
#define | REG_JESD204B_TERM0 0x2AA /* JESD204B interface termination configuration */ |
#define | REG_JESD204B_TERM1 0x2AB /* JESD204B interface termination configuration */ |
#define | REG_GENERAL_JRX_CTRL_0 0x300 /* General JRX Control Register 0 */ |
#define | REG_GENERAL_JRX_CTRL_1 0x301 /* General JRX Control Register 1 */ |
#define | REG_DYN_LINK_LATENCY_0 0x302 /* Register 1 description */ |
#define | REG_LMFC_DELAY_0 0x304 /* Register 3 description */ |
#define | REG_LMFC_VAR_0 0x306 /* Register 5 description */ |
#define | REG_XBAR_LN_0_1 0x308 /* Register 7 description */ |
#define | REG_XBAR_LN_2_3 0x309 /* Register 8 description */ |
#define | REG_FIFO_STATUS_REG_0 0x30C /* Register 11 description */ |
#define | REG_FIFO_STATUS_REG_1 0x30D /* Register 12 description */ |
#define | REG_SYNCB_GEN_0 0x311 /* Register 16 description */ |
#define | REG_SYNCB_GEN_1 0x312 /* Register 17 description */ |
#define | REG_SYNCB_GEN_3 0x313 /* Register 18 description */ |
#define | REG_SERDES_SPI_REG 0x314 /* SERDES SPI Configuration */ |
#define | REG_PHY_PRBS_TEST_EN 0x315 /* PHY PRBS TEST ENABLE FOR INDIVIDUAL LANES */ |
#define | REG_PHY_PRBS_TEST_CTRL 0x316 /* Reg 20 Description */ |
#define | REG_PHY_PRBS_TEST_THRESH_LOBITS 0x317 /* Reg 21 Description */ |
#define | REG_PHY_PRBS_TEST_THRESH_MIDBITS 0x318 /* Reg 22 Description */ |
#define | REG_PHY_PRBS_TEST_THRESH_HIBITS 0x319 /* Reg 23 Description */ |
#define | REG_PHY_PRBS_TEST_ERRCNT_LOBITS 0x31A /* Reg 24 Description */ |
#define | REG_PHY_PRBS_TEST_ERRCNT_MIDBITS 0x31B /* Reg 25 Description */ |
#define | REG_PHY_PRBS_TEST_ERRCNT_HIBITS 0x31C /* Reg 26 Description */ |
#define | REG_PHY_PRBS_TEST_STATUS 0x31D /* Reg 27 Description */ |
#define | REG_SHORT_TPL_TEST_0 0x32C /* Reg 46 Description */ |
#define | REG_SHORT_TPL_TEST_1 0x32D /* Reg 47 Description */ |
#define | REG_SHORT_TPL_TEST_2 0x32E /* Reg 48 Description */ |
#define | REG_SHORT_TPL_TEST_3 0x32F /* Reg 49 Description */ |
#define | REG_JESD_BIT_INVERSE_CTRL 0x334 /* Reg 42 Description */ |
#define | REG_DID_REG 0x400 /* Reg 0 Description */ |
#define | REG_BID_REG 0x401 /* Reg 1 Description */ |
#define | REG_LID0_REG 0x402 /* Reg 2 Description */ |
#define | REG_SCR_L_REG 0x403 /* Reg 3 Description */ |
#define | REG_F_REG 0x404 /* Reg 4 Description */ |
#define | REG_K_REG 0x405 /* Reg 5 Description */ |
#define | REG_M_REG 0x406 /* Reg 6 Description */ |
#define | REG_CS_N_REG 0x407 /* Reg 7 Description */ |
#define | REG_NP_REG 0x408 /* Reg 8 Description */ |
#define | REG_S_REG 0x409 /* Reg 9 Description */ |
#define | REG_HD_CF_REG 0x40A /* Reg 10 Description */ |
#define | REG_RES1_REG 0x40B /* Reg 11 Description */ |
#define | REG_RES2_REG 0x40C /* Reg 12 Description */ |
#define | REG_CHECKSUM_REG 0x40D /* Reg 13 Description */ |
#define | REG_COMPSUM0_REG 0x40E /* Reg 14 Description */ |
#define | REG_LID1_REG 0x412 /* Reg 18 Description */ |
#define | REG_CHECKSUM1_REG 0x415 /* Reg 19 Description */ |
#define | REG_COMPSUM1_REG 0x416 /* Reg 22 Description */ |
#define | REG_LID2_REG 0x41A /* Reg 26 Description */ |
#define | REG_CHECKSUM2_REG 0x41D /* Reg 29 Description */ |
#define | REG_COMPSUM2_REG 0x41E /* Reg 30 Description */ |
#define | REG_LID3_REG 0x422 /* Reg 34 Description */ |
#define | REG_CHECKSUM3_REG 0x425 /* Reg 37 Description */ |
#define | REG_COMPSUM3_REG 0x426 /* Reg 38 Description */ |
#define | REG_ILS_DID 0x450 /* Reg 80 Description */ |
#define | REG_ILS_BID 0x451 /* Reg 81 Description */ |
#define | REG_ILS_LID0 0x452 /* Reg 82 Description */ |
#define | REG_ILS_SCR_L 0x453 /* Reg 83 Description */ |
#define | REG_ILS_F 0x454 /* Reg 84 Description */ |
#define | REG_ILS_K 0x455 /* Reg 85 Description */ |
#define | REG_ILS_M 0x456 /* Reg 86 Description */ |
#define | REG_ILS_CS_N 0x457 /* Reg 87 Description */ |
#define | REG_ILS_NP 0x458 /* Reg 88 Description */ |
#define | REG_ILS_S 0x459 /* Reg 89 Description */ |
#define | REG_ILS_HD_CF 0x45A /* Reg 90 Description */ |
#define | REG_ILS_RES1 0x45B /* Reg 91 Description */ |
#define | REG_ILS_RES2 0x45C /* Reg 92 Description */ |
#define | REG_ILS_CHECKSUM 0x45D /* Reg 93 Description */ |
#define | REG_ERRCNTRMON 0x46B /* Reg 107 Description */ |
#define | REG_LANEDESKEW 0x46C /* Reg 108 Description */ |
#define | REG_BADDISPARITY 0x46D /* Reg 109 Description */ |
#define | REG_NITDISPARITY 0x46E /* Reg 110 Description */ |
#define | REG_UNEXPECTEDKCHAR 0x46F /* Reg 111 Description */ |
#define | REG_CODEGRPSYNCFLG 0x470 /* Reg 112 Description */ |
#define | REG_FRAMESYNCFLG 0x471 /* Reg 113 Description */ |
#define | REG_GOODCHKSUMFLG 0x472 /* Reg 114 Description */ |
#define | REG_INITLANESYNCFLG 0x473 /* Reg 115 Description */ |
#define | REG_CTRLREG1 0x476 /* Reg 118 Description */ |
#define | REG_CTRLREG2 0x477 /* Reg 119 Description */ |
#define | REG_KVAL 0x478 /* Reg 120 Description */ |
#define | REG_IRQVECTOR 0x47A /* Reg 122 Description */ |
#define | REG_SYNCASSERTIONMASK 0x47B /* Reg 123 Description */ |
#define | REG_ERRORTHRES 0x47C /* Reg 124 Description */ |
#define | REG_LANEENABLE 0x47D /* Reg 125 Description */ |
#define | REG_RAMP_ENA 0x47E /* Ramp Check Enable */ |
#define | SOFTRESET_M (1 << 7) /* Soft Reset (Mirror) */ |
#define | LSBFIRST_M (1 << 6) /* LSB First (Mirror) */ |
#define | ADDRINC_M (1 << 5) /* Address Increment (Mirror) */ |
#define | SDOACTIVE_M (1 << 4) /* SDO Active (Mirror) */ |
#define | SDOACTIVE (1 << 3) /* SDO Active */ |
#define | ADDRINC (1 << 2) /* Address Increment */ |
#define | LSBFIRST (1 << 1) /* LSB First */ |
#define | SOFTRESET (1 << 0) /* Soft Reset */ |
#define | SINGLEINS (1 << 7) /* Single Instruction */ |
#define | CSBSTALL (1 << 6) /* CSb Stalling */ |
#define | DEVSTATUS(x) |
#define | CUSTOPMODE(x) |
#define | SYSOPMODE(x) |
#define | PROD_GRADE(x) |
#define | DEV_REVISION(x) |
#define | PAGEINDX(x) |
#define | SLAVEUPDATE (1 << 0) /* M/S Update Bit */ |
#define | PD_BG (1 << 7) /* Reference PowerDown */ |
#define | PD_DAC_0 (1 << 6) /* PD Ichannel DAC 0 */ |
#define | PD_DAC_1 (1 << 5) /* PD Qchannel DAC 1 */ |
#define | PD_DAC_2 (1 << 4) /* PD Ichannel DAC 2 */ |
#define | PD_DAC_3 (1 << 3) /* PD Qchannel DAC 3 */ |
#define | PD_DACM (1 << 2) /* PD Dac master Bias */ |
#define | SYS_MASK (1 << 2) /* SYSREF Receiver TXen mask */ |
#define | DACB_MASK (1 << 1) /* Dual B Dac TXen1 mask */ |
#define | DACA_MASK (1 << 0) /* Dual A Dac TXen0 mask */ |
#define | ENA_PA_CTRL_FROM_PAPROT_ERR (1 << 6) /* Control PDP enable from PAProt block */ |
#define | ENA_PA_CTRL_FROM_TXENSM (1 << 5) /* Control PDP enable from Txen State machine */ |
#define | ENA_PA_CTRL_FROM_BLSM (1 << 4) /* Control PDP enable from Blanking state machine */ |
#define | ENA_PA_CTRL_FROM_SPI (1 << 3) /* Control PDP enable via SPI */ |
#define | SPI_PA_CTRL (1 << 2) /* PDP on/off via SPI */ |
#define | ENA_SPI_TXEN (1 << 1) /* TXEN from SPI control */ |
#define | SPI_TXEN (1 << 0) /* Spi TXEN */ |
#define | COARSE_GROUP_DLY(x) |
#define | EN_CALPASS (1 << 7) /* Enable Calib PASS detection */ |
#define | EN_CALFAIL (1 << 6) /* Enable Calib FAIL detection */ |
#define | EN_DACPLLLOST (1 << 5) /* Enable DAC Pll Lost detection */ |
#define | EN_DACPLLLOCK (1 << 4) /* Enable DAC Pll Lock detection */ |
#define | EN_SERPLLLOST (1 << 3) /* Enable Serdes PLL Lost detection */ |
#define | EN_SERPLLLOCK (1 << 2) /* Enable Serdes PLL Lock detection */ |
#define | EN_LANEFIFOERR (1 << 1) /* Enable Lane FIFO Error detection */ |
#define | EN_DRDLFIFOERR (1 << 0) /* Enable DRDL FIFO Error detection */ |
#define | EN_PARMBAD (1 << 7) /* enable BAD Parameter interrupt */ |
#define | EN_PRBSQ1 (1 << 3) /* enable PRBS imag DAC B interrupt */ |
#define | EN_PRBSI1 (1 << 2) /* enable PRBS real DAC B interrupt */ |
#define | EN_PRBSQ0 (1 << 1) /* enable PRBS imag DAC A interrupt */ |
#define | EN_PRBSI0 (1 << 0) /* enable PRBS real DAC A interrupt */ |
#define | EN_PAERR0 (1 << 7) /* Link A PA Error */ |
#define | EN_BIST_DONE0 (1 << 6) /* Link A BIST done */ |
#define | EN_BLNKDONE0 (1 << 5) /* Link A Blanking done */ |
#define | EN_REFNCOCLR0 (1 << 4) /* Link A Nco Clear Tripped */ |
#define | EN_REFLOCK0 (1 << 3) /* Link A Alignment Locked */ |
#define | EN_REFROTA0 (1 << 2) /* Link A Alignment Rotate */ |
#define | EN_REFWLIM0 (1 << 1) /* Link A Over/Under Threshold */ |
#define | EN_REFTRIP0 (1 << 0) /* Link A Alignment Trip */ |
#define | EN_PAERR1 (1 << 7) /* Link B PA Error */ |
#define | EN_BIST_DONE1 (1 << 6) /* Link B BIST done */ |
#define | EN_BLNKDONE1 (1 << 5) /* Link B Blanking done */ |
#define | EN_REFNCOCLR1 (1 << 4) /* Link B Nco Clear Tripped */ |
#define | EN_REFLOCK1 (1 << 3) /* Link B Alignment Locked */ |
#define | EN_REFROTA1 (1 << 2) /* Link B Alignment Rotate */ |
#define | EN_REFWLIM1 (1 << 1) /* Link B Over/Under Threshold */ |
#define | EN_REFTRIP1 (1 << 0) /* Link B Alignment Trip */ |
#define | IRQ_CALPASS (1 << 7) /* Calib PASS detection */ |
#define | IRQ_CALFAIL (1 << 6) /* Calib FAIL detection */ |
#define | IRQ_DACPLLLOST (1 << 5) /* DAC PLL Lost */ |
#define | IRQ_DACPLLLOCK (1 << 4) /* DAC PLL Lock */ |
#define | IRQ_SERPLLLOST (1 << 3) /* Serdes PLL Lost */ |
#define | IRQ_SERPLLLOCK (1 << 2) /* Serdes PLL Lock */ |
#define | IRQ_LANEFIFOERR (1 << 1) /* Lane Fifo Error */ |
#define | IRQ_DRDLFIFOERR (1 << 0) /* DRDL Fifo Error */ |
#define | IRQ_PARMBAD (1 << 7) /* BAD Parameter interrupt */ |
#define | IRQ_PRBSQ1 (1 << 3) /* PRBS data check error DAC 1 imag */ |
#define | IRQ_PRBSI1 (1 << 2) /* PRBS data check error DAC 1 real */ |
#define | IRQ_PRBSQ0 (1 << 1) /* PRBS data check error DAC 0 imag */ |
#define | IRQ_PRBSI0 (1 << 0) /* PRBS data check error DAC 0 real */ |
#define | IRQ_PAERR0 (1 << 7) /* Link A PA Error */ |
#define | IRQ_BIST_DONE0 (1 << 6) /* Link A BIST done */ |
#define | IRQ_BLNKDONE0 (1 << 5) /* Link A Blanking Done */ |
#define | IRQ_REFNCOCLR0 (1 << 4) /* Link A Alignment UnderRange */ |
#define | IRQ_REFLOCK0 (1 << 3) /* Link A BIST done */ |
#define | IRQ_REFROTA0 (1 << 2) /* Link A Alignment Trip */ |
#define | IRQ_REFWLIM0 (1 << 1) /* Link A Alignment Lock */ |
#define | IRQ_REFTRIP0 (1 << 0) /* Link A Alignment Rotate */ |
#define | IRQ_PAERR1 (1 << 7) /* Link B PA Error */ |
#define | IRQ_BIST_DONE1 (1 << 6) /* Link B BIST done */ |
#define | IRQ_BLNKDONE1 (1 << 5) /* Link A Blanking Done */ |
#define | IRQ_REFNCOCLR1 (1 << 4) /* Link B Alignment UnderRange */ |
#define | IRQ_REFLOCK1 (1 << 3) /* Link B BIST done */ |
#define | IRQ_REFROTA1 (1 << 2) /* Link B Alignment Trip */ |
#define | IRQ_REFWLIM1 (1 << 1) /* Link B Alignment Lock */ |
#define | IRQ_REFTRIP1 (1 << 0) /* Link B Alignment Rotate */ |
#define | ERR_DLYOVER (1 << 5) /* LMFC_Delay > JESD_K parameter */ |
#define | ERR_WINLIMIT (1 << 4) /* Unsupported Window Limit */ |
#define | ERR_JESDBAD (1 << 3) /* Unsupported M/L/S/F selection */ |
#define | ERR_KUNSUPP (1 << 2) /* Unsupported K values */ |
#define | ERR_SUBCLASS (1 << 1) /* Unsupported SubClassv value */ |
#define | ERR_INTSUPP (1 << 0) /* Unsupported Interpolation rate factor */ |
#define | TARRFAPHAZ (1 << 0) /* Target Polarity of Rf Divider */ |
#define | SYNCBYPASS(x) |
#define | DAC_DELAY_H (1 << 0) /* Dac Delay[8] */ |
#define | ERRWINDOW(x) |
#define | LASTUNDER (1 << 7) /* Sync Last Error Under Flag */ |
#define | LASTOVER (1 << 6) /* Sync Last Error Over Flag */ |
#define | LASTERROR_H (1 << 0) /* Sync Last Error[8] and Flags */ |
#define | SYNCENABLE (1 << 7) /* SyncLogic Enable */ |
#define | SYNCARM (1 << 6) /* Sync Arming Strobe */ |
#define | SYNCCLRSTKY (1 << 5) /* Sync Sticky Bit Clear */ |
#define | SYNCCLRLAST (1 << 4) /* Sync Clear LAST_ */ |
#define | SYNCMODE(x) |
#define | REFBUSY (1 << 7) /* Sync Machine Busy */ |
#define | REFLOCK (1 << 3) /* Sync Alignment Locked */ |
#define | REFROTA (1 << 2) /* Sync Rotated */ |
#define | REFWLIM (1 << 1) /* Sync Alignment Limit Range */ |
#define | REFTRIP (1 << 0) /* Sync Tripped after Arming */ |
#define | CURRUNDER (1 << 7) /* Sync Current Error Under Flag */ |
#define | CURROVER (1 << 6) /* Sync Current Error Over Flag */ |
#define | CURRERROR_H (1 << 0) /* SyncCurrent Error[8] */ |
#define | THRMOLD (1 << 7) /* Error is from a prior sample */ |
#define | THRMOVER (1 << 4) /* Error > +WinLimit */ |
#define | THRMPOS (1 << 3) /* Sync Current Error Under Flag */ |
#define | THRMZERO (1 << 2) /* Error = 0 */ |
#define | THRMNEG (1 << 1) /* Error < 0 */ |
#define | THRMUNDER (1 << 0) /* Error < -WinLimit */ |
#define | DACGAIN_IM0(x) |
#define | DACGAIN_IM1(x) |
#define | DACGAIN_IM2(x) |
#define | DACGAIN_IM3(x) |
#define | ENB_DACLDO3 (1 << 7) /* Disable DAC3 ldo */ |
#define | ENB_DACLDO2 (1 << 6) /* Disable DAC2 ldo */ |
#define | ENB_DACLDO1 (1 << 5) /* Disable DAC1 ldo */ |
#define | ENB_DACLDO0 (1 << 4) /* Disable DAC0 ldo */ |
#define | STAT_LDO3 (1 << 3) /* DAC3 LDO status */ |
#define | STAT_LDO2 (1 << 2) /* DAC2 LDO status */ |
#define | STAT_LDO1 (1 << 1) /* DAC1 LDO status */ |
#define | STAT_LDO0 (1 << 0) /* DAC0 LDO status */ |
#define | SHUFFLE_MSB0 (1 << 2) /* MSB shuffling mode */ |
#define | SHUFFLE_ISB0 (1 << 1) /* ISB shuffling mode */ |
#define | SHUFFLE_MSB1 (1 << 2) /* MSB shuffling mode */ |
#define | SHUFFLE_ISB1 (1 << 1) /* ISB shuffling mode */ |
#define | SHUFFLE_MSB2 (1 << 2) /* MSB shuffling mod */ |
#define | SHUFFLE_ISB2 (1 << 1) /* ISB shuffling mode */ |
#define | SHUFFLE_MSB3 (1 << 2) /* MSB shuffling mode */ |
#define | SHUFFLE_ISB3 (1 << 1) /* ISB shuffling mode */ |
#define | NCOCLRARM (1 << 7) /* Arm NCO Clear */ |
#define | NCOCLRMTCH (1 << 5) /* NCO Clear Data Match */ |
#define | NCOCLRPASS (1 << 4) /* NCO Clear PASSed */ |
#define | NCOCLRFAIL (1 << 3) /* NCO Clear FAILed */ |
#define | NCOCLRMODE(x) |
#define | PA_THRESH_MSB(x) |
#define | PA_ENABLE (1 << 7) /* 1 = Enable average power calculation and error detection */ |
#define | PA_BUS_SWAP (1 << 6) /* Swap channelA or channelB databus for power calculation */ |
#define | PA_AVG_TIME(x) |
#define | PA_POWER_MSB(x) |
#define | PD_CLK01 (1 << 7) /* Powerdown clock for Dual A */ |
#define | PD_CLK23 (1 << 6) /* Powerdown clock for Dual B */ |
#define | PD_CLK_DIG (1 << 5) /* Powerdown clocks to all DACs */ |
#define | PD_PCLK (1 << 4) /* Cal reference/Serdes PLL clock powerdown */ |
#define | PD_CLK_REC (1 << 3) /* Clock reciever powerdown */ |
#define | PD_SYSREF (1 << 4) /* Powerdown SYSREF buffer */ |
#define | HYS_ON (1 << 3) /* Hysteresis enabled */ |
#define | SYSREF_RISE (1 << 2) /* Use SYSREF rising edge */ |
#define | HYS_CNTRL1(x) |
#define | SYNTH_RECAL (1 << 7) /* Recalibrate VCO Band */ |
#define | ENABLE_SYNTH (1 << 4) /* Synthesizer Enable */ |
#define | CP_CAL_VALID (1 << 5) /* Charge Pump Cal Valid */ |
#define | RFPLL_LOCK (1 << 1) /* PLL Lock bit */ |
#define | LF_C2_WORD(x) |
#define | LF_C1_WORD(x) |
#define | LF_R1_WORD(x) |
#define | LF_C3_WORD(x) |
#define | LF_BYPASS_R3 (1 << 7) /* Bypass R3 res */ |
#define | LF_BYPASS_R1 (1 << 6) /* Bypass R1 res */ |
#define | LF_BYPASS_C2 (1 << 5) /* Bypass C2 cap */ |
#define | LF_BYPASS_C1 (1 << 4) /* Bypass C1 cap */ |
#define | LF_R3_WORD(x) |
#define | CP_CURRENT(x) |
#define | LO_DIV_MODE(x) |
#define | REF_DIVRATE(x) |
#define | INIT_SWEEP_ERR_DAC (1 << 1) /* Initial setup sweep failed */ |
#define | MSB_SWEEP_ERR_DAC (1 << 0) /* MSB sweep failed */ |
#define | CAL_MSB_TAC(x) |
#define | CAL_START_GL (1 << 1) /* Global Calibration start */ |
#define | CAL_EN_GL (1 << 0) /* Global Calibration enable */ |
#define | CAL_MSBLVLHI(x) |
#define | CAL_MSBLVLLO(x) |
#define | CAL_LTAC_THRES(x) |
#define | CAL_TAC_THRES(x) |
#define | MSB_GLOBAL_SUBAVG(x) |
#define | GLOBAL_AVG_CNT(x) |
#define | LOCAL_AVRG_CNT(x) |
#define | CAL_CLKDIV(x) |
#define | CAL_INDX(x) |
#define | CAL_FIN (1 << 7) /* Calibration finished */ |
#define | CAL_ACTIVE (1 << 6) /* Calibration active */ |
#define | CAL_ERRHI (1 << 5) /* SAR data error: too hi */ |
#define | CAL_ERRLO (1 << 4) /* SAR data error: too lo */ |
#define | CAL_TXDACBYDAC (1 << 3) /* Calibration of TXDAC by TXDAC */ |
#define | CAL_START (1 << 1) /* Calibration start */ |
#define | CAL_EN (1 << 0) /* Calibration enable */ |
#define | CAL_ADDR(x) |
#define | CAL_DATA(x) |
#define | CAL_UPDATE (1 << 7) /* Calibration DAC Coefficient Update */ |
#define | BINARY_FORMAT (1 << 7) /* Binary or 2's complementary format on DATA bus */ |
#define | INVSINC_ENABLE (1 << 7) /* 1 = Enable inver sinc filter */ |
#define | DIG_GAIN_ENABLE (1 << 5) /* 1 = Enable digital gain */ |
#define | PHASE_ADJ_ENABLE (1 << 4) /* 1 = Enable phase compensation */ |
#define | SEL_SIDEBAND (1 << 1) /* 1 = Select upper or lower sideband from modulation result */ |
#define | I_TO_Q (1 << 0) /* 1 = send I datapath into Q DAC */ |
#define | MODULATION_TYPE(x) |
#define | INTERP_MODE(x) |
#define | FTW_UPDATE_ACK (1 << 1) /* Frequency Tuning Word Update Acknowledge */ |
#define | FTW_UPDATE_REQ (1 << 0) /* Frequency Tuning Word Update Request from SPI */ |
#define | TX_DIG_CLK_PD (1 << 0) /* 1 = Digital clocks will be shut down when Tx_enable pin is low. */ |
#define | GP_PA_ON_INVERT (1 << 2) /* External Modulator polarity invert */ |
#define | GP_PA_CTRL (1 << 1) /* External PA control */ |
#define | TXEN_SM_EN (1 << 0) /* Enable TXEN state machine */ |
#define | PA_FALL(x) |
#define | PA_RISE(x) |
#define | DIG_FALL(x) |
#define | DIG_RISE(x) |
#define | DAC_FALL(x) |
#define | DAC_RISE(x) |
#define | DACOUT_SHUTDOWN (1 << 1) /* Shut down DAC output. 1 means DAC get shut down manually. */ |
#define | DACOUT_ON_TRIGGER (1 << 0) /* Turn on DAC output manually. Self clear signal. */ |
#define | PROTECT_MODE (1 << 7) /* PROTECT_MODE */ |
#define | DACOFF_AVG_PW (1 << 0) /* DACOFF_AVG_PW */ |
#define | ADC_TESTMODE (1 << 7) /* ADC_TESTMODE */ |
#define | AUXADC_ENABLE (1 << 0) /* AUXADC_ENABLE */ |
#define | FS_CURRENT(x) |
#define | REF_CURRENT(x) |
#define | SELECT_CLKDIG (1 << 3) /* SELECT_CLKDIG */ |
#define | EN_DIV2 (1 << 2) /* EN_DIV2 */ |
#define | INCAP_CTRL(x) |
#define | DIE_TEMP_UPDATE (1 << 0) /* Die temperature update */ |
#define | DISABLE_NOISE (1 << 1) /* DISABLE_NOISE */ |
#define | DC_OFFSET_ON (1 << 0) /* DC_OFFSET_ON */ |
#define | IPATH_DC_OFFSET_2PART(x) |
#define | QPATH_DC_OFFSET_2PART(x) |
#define | IDAC_DIG_GAIN1(x) |
#define | QDAC_DIG_GAIN1(x) |
#define | GAIN_RAMP_UP_STP1(x) |
#define | GAIN_RAMP_DOWN_STP1(x) |
#define | RESET_BLSM (1 << 7) /* Soft rest to the new Blanking SM */ |
#define | EN_FORCE_GAIN_SOFT_OFF (1 << 4) /* Enable forcing gan_soft_off from SPI */ |
#define | GAIN_SOFT_OFF (1 << 3) /* gain_soft_off forced value */ |
#define | GAIN_SOFT_ON (1 << 2) /* gain_soft_on forced value */ |
#define | EN_FORCE_GAIN_SOFT_ON (1 << 1) /* Force the gain_soft_on from SPI */ |
#define | SOFT_OFF_DONE (1 << 5) /* Blanking SoftOff Enable */ |
#define | SOFT_ON_DONE (1 << 4) /* Blanking SoftOn Done */ |
#define | GAIN_SOFT_OFF_RB (1 << 3) /* gain soft off readback */ |
#define | GAIN_SOFT_ON_RB (1 << 2) /* gain soft on readback */ |
#define | SOFT_OFF_EN_RB (1 << 1) /* Blanking SM soft Off read back */ |
#define | SOFT_ON_EN_RB (1 << 0) /* Blanking SM soft On read back */ |
#define | SOFTBLANKRB(x) |
#define | PRBS_GOOD_Q (1 << 7) /* Good data indicator imaginary channel */ |
#define | PRBS_GOOD_I (1 << 6) /* Good data indicator real channel */ |
#define | PRBS_INV_Q (1 << 4) /* Data Inversion imaginary channel */ |
#define | PRBS_INV_I (1 << 3) /* Data Inversion real channel */ |
#define | PRBS_MODE (1 << 2) /* Polynomial Select */ |
#define | PRBS_RESET (1 << 1) /* Reset Error Counters */ |
#define | PRBS_EN (1 << 0) /* Enable PRBS Checker */ |
#define | VCO_VAR(x) |
#define | VCO_BIAS_REF(x) |
#define | VCO_CAL_REF_MON (1 << 3) /* Sent control voltage to outside world */ |
#define | VCO_CAL_REF_TCF(x) |
#define | VCO_VAR_REF_TCF(x) |
#define | VCO_VAR_OFF(x) |
#define | SPIDRV(x) |
#define | DUTYCYCLEON (1 << 0) /* Clock Duty Cycle Control On */ |
#define | ATEST_EN (1 << 0) /* Enable Analog Test Mode */ |
#define | ATEST_TOPVSEL(x) |
#define | ATEST_DACSEL(x) |
#define | ATEST_VSEL(x) |
#define | EN_CLKDIV (1 << 3) /* Enable the fdac/8 clock path to generate PD timing clock */ |
#define | ASPI_OSC_RATE (1 << 2) /* Aspi Oscillator Rate */ |
#define | ASPI_CLK_SRC (1 << 1) /* Choose Aspi Clock Source */ |
#define | EN_ASPI_OSC (1 << 0) /* Enable Aspi Oscillator clock */ |
#define | SPI_PD_MASTER (1 << 0) |
#define | SPI_SYNC1_PD (1 << 1) |
#define | SPI_SYNC2_PD (1 << 0) |
#define | SPI_ENHALFRATE (1 << 5) |
#define | SPI_DIVISION_RATE(x) |
#define | SPI_EQ_CONFIG1(x) |
#define | SPI_EQ_CONFIG0(x) |
#define | SPI_EQ_CONFIG3(x) |
#define | SPI_EQ_CONFIG2(x) |
#define | SPI_EQ_CONFIG5(x) |
#define | SPI_EQ_CONFIG4(x) |
#define | SPI_EQ_CONFIG7(x) |
#define | SPI_EQ_CONFIG6(x) |
#define | SPI_EQ_EXTRA_SPI_LSBITS(x) |
#define | SPI_EQ_BIASPTAT(x) |
#define | SPI_EQ_BIASPLY(x) |
#define | SPI_RECAL_SYNTH (1 << 2) |
#define | SPI_ENABLE_SYNTH (1 << 0) |
#define | SPI_CP_CAL_VALID_RB (1 << 3) |
#define | SPI_PLL_LOCK_RB (1 << 0) |
#define | SPI_CDR_OVERSAMP(x) |
#define | SPI_I_TUNE_R_CAL_TERMBLK1 (1 << 0) |
#define | SPI_I_TUNE_R_CAL_TERMBLK2 (1 << 0) |
#define | CHECKSUM_MODE (1 << 6) /* Checksum mode */ |
#define | LINK_MODE (1 << 3) /* Link mode */ |
#define | SEL_REG_MAP_1 (1 << 2) /* Link register map selection */ |
#define | LINK_EN(x) |
#define | SUBCLASSV_LOCAL(x) |
#define | DYN_LINK_LATENCY_0(x) |
#define | DYN_LINK_LATENCY_1(x) |
#define | LMFC_DELAY_0(x) |
#define | LMFC_DELAY_1(x) |
#define | LMFC_VAR_0(x) |
#define | LMFC_VAR_1(x) |
#define | SRC_LANE1(x) |
#define | SRC_LANE0(x) |
#define | SRC_LANE3(x) |
#define | SRC_LANE2(x) |
#define | SRC_LANE5(x) |
#define | SRC_LANE4(x) |
#define | SRC_LANE7(x) |
#define | SRC_LANE6(x) |
#define | DRDL_FIFO_EMPTY (1 << 1) /* Deterministic latency (DRDL) FIFO is between JESD204B receiver and DAC2 and DAC3 */ |
#define | DRDL_FIFO_FULL (1 << 0) /* DRDL FIFO is between JESD204B receiver and DAC2 and DAC3 */ |
#define | EOMF_MASK_1 (1 << 3) /* EOMF_MASK_1 */ |
#define | EOMF_MASK_0 (1 << 2) /* EOMF_MASK_0 */ |
#define | EOF_MASK_1 (1 << 1) /* Mask EOF from QBD_1 */ |
#define | EOF_MASK_0 (1 << 0) /* Mask EOF from QBD_0 */ |
#define | SYNCB_ERR_DUR(x) |
#define | SYNCB_SYNCREQ_DUR(x) |
#define | PHY_TEST_START (1 << 1) /* PHY PRBS test start */ |
#define | PHY_TEST_RESET (1 << 0) /* PHY PRBS test reset */ |
#define | PHY_SRC_ERR_CNT(x) |
#define | PHY_PRBS_PAT_SEL(x) |
#define | SHORT_TPL_TEST_RESET (1 << 1) /* Short transport layer test reset */ |
#define | SHORT_TPL_TEST_EN (1 << 0) /* Short transport layer test enable */ |
#define | SHORT_TPL_SP_SEL(x) |
#define | SHORT_TPL_M_SEL(x) |
#define | SHORT_TPL_FAIL (1 << 0) /* Short transport layer test fail */ |
#define | ADJCNT_RD(x) |
#define | BID_RD(x) |
#define | ADJDIR_RD (1 << 6) |
#define | PHADJ_RD (1 << 5) |
#define | LID0_RD(x) |
#define | SCR_RD (1 << 7) |
#define | L_RD(x) |
#define | K_RD(x) |
#define | CS_RD(x) |
#define | N_RD(x) |
#define | SUBCLASSV_RD(x) |
#define | NP_RD(x) |
#define | JESDV_RD(x) |
#define | S_RD(x) |
#define | HD_RD (1 << 7) |
#define | CF_RD(x) |
#define | LID1_RD(x) |
#define | LID2_RD(x) |
#define | LID3_RD(x) |
#define | LID4_RD(x) |
#define | LID5_RD(x) |
#define | LID6_RD(x) |
#define | LID7_RD(x) |
#define | ADJCNT(x) |
#define | BID(x) |
#define | ADJDIR (1 << 6) |
#define | PHADJ (1 << 5) |
#define | LID0(x) |
#define | SCR (1 << 7) |
#define | L(x) |
#define | K(x) |
#define | CS(x) |
#define | N(x) |
#define | SUBCLASSV(x) |
#define | NP(x) |
#define | JESDV(x) |
#define | S(x) |
#define | HD (1 << 7) |
#define | CF(x) |
#define | LANESEL(x) |
#define | CNTRSEL(x) |
#define | RST_IRQ_DIS (1 << 7) |
#define | DIS_ERR_CNTR_DIS (1 << 6) |
#define | RST_ERR_CNTR_DIS (1 << 5) |
#define | LANE_ADDR_DIS(x) |
#define | RST_IRQ_NIT (1 << 7) |
#define | DIS_ERR_CNTR_NIT (1 << 6) |
#define | RST_ERR_CNTR_NIT (1 << 5) |
#define | LANE_ADDR_NIT(x) |
#define | RST_IRQ_K (1 << 7) |
#define | DIS_ERR_CNTR_K (1 << 6) |
#define | RST_ERR_CNTR_K (1 << 5) |
#define | LANE_ADDR_K(x) |
#define | ILAS_MODE (1 << 7) |
#define | REPDATATEST (1 << 5) |
#define | QUETESTERR (1 << 4) |
#define | AUTO_ECNTR_RST (1 << 3) |
#define | BADDIS_FLAG_OR_MASK (1 << 7) |
#define | NITD_FLAG_OR_MASK (1 << 6) |
#define | UEKC_FLAG_OR_MASK (1 << 5) |
#define | INITIALLANESYNC_FLAG_OR_MASK (1 << 3) |
#define | BADCHECKSUM_FLAG_OR_MASK (1 << 2) |
#define | CODEGRPSYNC_FLAG_OR_MASK (1 << 0) |
#define | BAD_DIS_S (1 << 7) |
#define | NIT_DIS_S (1 << 6) |
#define | UNEX_K_S (1 << 5) |
#define | CMM_FLAG_OR_MASK (1 << 4) |
#define | CMM_ENABLE (1 << 3) |
#define | AD9152_MAX_DAC_RATE 2000000000UL |
#define | AD9152_CHIP_ID 0x52 |
#define | AD9152_TEST_PN15 0x01 |
#define | AD9152_TEST_PN7 0x00 |
Functions | |
int32_t | ad9152_spi_read (struct ad9152_dev *dev, uint16_t reg_addr, uint8_t *reg_data) |
ad9152_spi_read | |
int32_t | ad9152_spi_write (struct ad9152_dev *dev, uint16_t reg_addr, uint8_t reg_data) |
ad9152_spi_write | |
int32_t | ad9152_setup (struct ad9152_dev **device, struct ad9152_init_param init_param) |
ad9152_setup | |
int32_t | ad9152_datapath_prbs_test (struct ad9152_dev *dev, struct ad9152_init_param init_param) |
ad9152_setup | |
int32_t | ad9152_short_pattern_test (struct ad9152_dev *dev, struct ad9152_init_param init_param) |
ad9152_setup | |
int32_t | ad9152_status (struct ad9152_dev *dev) |
ad9152_setup | |
int32_t | ad9152_remove (struct ad9152_dev *dev) |
Free the resources allocated by ad9152_setup(). | |
Header file of AD9152 Driver.
Copyright 2015-2016(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define AD9152_CHIP_ID 0x52 |
#define AD9152_MAX_DAC_RATE 2000000000UL |
#define AD9152_TEST_PN15 0x01 |
#define AD9152_TEST_PN7 0x00 |
#define ADC_TESTMODE (1 << 7) /* ADC_TESTMODE */ |
#define ADDRINC (1 << 2) /* Address Increment */ |
#define ADDRINC_M (1 << 5) /* Address Increment (Mirror) */ |
#define ADJCNT | ( | x | ) |
#define ADJCNT_RD | ( | x | ) |
#define ADJDIR (1 << 6) |
#define ADJDIR_RD (1 << 6) |
#define ASPI_CLK_SRC (1 << 1) /* Choose Aspi Clock Source */ |
#define ASPI_OSC_RATE (1 << 2) /* Aspi Oscillator Rate */ |
#define ATEST_DACSEL | ( | x | ) |
#define ATEST_EN (1 << 0) /* Enable Analog Test Mode */ |
#define ATEST_TOPVSEL | ( | x | ) |
#define ATEST_VSEL | ( | x | ) |
#define AUTO_ECNTR_RST (1 << 3) |
#define AUXADC_ENABLE (1 << 0) /* AUXADC_ENABLE */ |
#define BAD_DIS_S (1 << 7) |
#define BADCHECKSUM_FLAG_OR_MASK (1 << 2) |
#define BADDIS_FLAG_OR_MASK (1 << 7) |
#define BID | ( | x | ) |
#define BID_RD | ( | x | ) |
#define BINARY_FORMAT (1 << 7) /* Binary or 2's complementary format on DATA bus */ |
#define CAL_ACTIVE (1 << 6) /* Calibration active */ |
#define CAL_ADDR | ( | x | ) |
#define CAL_CLKDIV | ( | x | ) |
#define CAL_DATA | ( | x | ) |
#define CAL_EN (1 << 0) /* Calibration enable */ |
#define CAL_EN_GL (1 << 0) /* Global Calibration enable */ |
#define CAL_ERRHI (1 << 5) /* SAR data error: too hi */ |
#define CAL_ERRLO (1 << 4) /* SAR data error: too lo */ |
#define CAL_FIN (1 << 7) /* Calibration finished */ |
#define CAL_INDX | ( | x | ) |
#define CAL_LTAC_THRES | ( | x | ) |
#define CAL_MSB_TAC | ( | x | ) |
#define CAL_MSBLVLHI | ( | x | ) |
#define CAL_MSBLVLLO | ( | x | ) |
#define CAL_START (1 << 1) /* Calibration start */ |
#define CAL_START_GL (1 << 1) /* Global Calibration start */ |
#define CAL_TAC_THRES | ( | x | ) |
#define CAL_TXDACBYDAC (1 << 3) /* Calibration of TXDAC by TXDAC */ |
#define CAL_UPDATE (1 << 7) /* Calibration DAC Coefficient Update */ |
#define CF | ( | x | ) |
#define CF_RD | ( | x | ) |
#define CHECKSUM_MODE (1 << 6) /* Checksum mode */ |
#define CMM_ENABLE (1 << 3) |
#define CMM_FLAG_OR_MASK (1 << 4) |
#define CNTRSEL | ( | x | ) |
#define COARSE_GROUP_DLY | ( | x | ) |
#define CODEGRPSYNC_FLAG_OR_MASK (1 << 0) |
#define CP_CAL_VALID (1 << 5) /* Charge Pump Cal Valid */ |
#define CP_CURRENT | ( | x | ) |
#define CS | ( | x | ) |
#define CS_RD | ( | x | ) |
#define CSBSTALL (1 << 6) /* CSb Stalling */ |
#define CURRERROR_H (1 << 0) /* SyncCurrent Error[8] */ |
#define CURROVER (1 << 6) /* Sync Current Error Over Flag */ |
#define CURRUNDER (1 << 7) /* Sync Current Error Under Flag */ |
#define CUSTOPMODE | ( | x | ) |
#define DAC_DELAY_H (1 << 0) /* Dac Delay[8] */ |
#define DAC_FALL | ( | x | ) |
#define DAC_RISE | ( | x | ) |
#define DACA_MASK (1 << 0) /* Dual A Dac TXen0 mask */ |
#define DACB_MASK (1 << 1) /* Dual B Dac TXen1 mask */ |
#define DACGAIN_IM0 | ( | x | ) |
#define DACGAIN_IM1 | ( | x | ) |
#define DACGAIN_IM2 | ( | x | ) |
#define DACGAIN_IM3 | ( | x | ) |
#define DACOFF_AVG_PW (1 << 0) /* DACOFF_AVG_PW */ |
#define DACOUT_ON_TRIGGER (1 << 0) /* Turn on DAC output manually. Self clear signal. */ |
#define DACOUT_SHUTDOWN (1 << 1) /* Shut down DAC output. 1 means DAC get shut down manually. */ |
#define DC_OFFSET_ON (1 << 0) /* DC_OFFSET_ON */ |
#define DEV_REVISION | ( | x | ) |
#define DEVSTATUS | ( | x | ) |
#define DIE_TEMP_UPDATE (1 << 0) /* Die temperature update */ |
#define DIG_FALL | ( | x | ) |
#define DIG_GAIN_ENABLE (1 << 5) /* 1 = Enable digital gain */ |
#define DIG_RISE | ( | x | ) |
#define DIS_ERR_CNTR_DIS (1 << 6) |
#define DIS_ERR_CNTR_K (1 << 6) |
#define DIS_ERR_CNTR_NIT (1 << 6) |
#define DISABLE_NOISE (1 << 1) /* DISABLE_NOISE */ |
#define DRDL_FIFO_EMPTY (1 << 1) /* Deterministic latency (DRDL) FIFO is between JESD204B receiver and DAC2 and DAC3 */ |
#define DRDL_FIFO_FULL (1 << 0) /* DRDL FIFO is between JESD204B receiver and DAC2 and DAC3 */ |
#define DUTYCYCLEON (1 << 0) /* Clock Duty Cycle Control On */ |
#define DYN_LINK_LATENCY_0 | ( | x | ) |
#define DYN_LINK_LATENCY_1 | ( | x | ) |
#define EN_ASPI_OSC (1 << 0) /* Enable Aspi Oscillator clock */ |
#define EN_BIST_DONE0 (1 << 6) /* Link A BIST done */ |
#define EN_BIST_DONE1 (1 << 6) /* Link B BIST done */ |
#define EN_BLNKDONE0 (1 << 5) /* Link A Blanking done */ |
#define EN_BLNKDONE1 (1 << 5) /* Link B Blanking done */ |
#define EN_CALFAIL (1 << 6) /* Enable Calib FAIL detection */ |
#define EN_CALPASS (1 << 7) /* Enable Calib PASS detection */ |
#define EN_CLKDIV (1 << 3) /* Enable the fdac/8 clock path to generate PD timing clock */ |
#define EN_DACPLLLOCK (1 << 4) /* Enable DAC Pll Lock detection */ |
#define EN_DACPLLLOST (1 << 5) /* Enable DAC Pll Lost detection */ |
#define EN_DIV2 (1 << 2) /* EN_DIV2 */ |
#define EN_DRDLFIFOERR (1 << 0) /* Enable DRDL FIFO Error detection */ |
#define EN_FORCE_GAIN_SOFT_OFF (1 << 4) /* Enable forcing gan_soft_off from SPI */ |
#define EN_FORCE_GAIN_SOFT_ON (1 << 1) /* Force the gain_soft_on from SPI */ |
#define EN_LANEFIFOERR (1 << 1) /* Enable Lane FIFO Error detection */ |
#define EN_PAERR0 (1 << 7) /* Link A PA Error */ |
#define EN_PAERR1 (1 << 7) /* Link B PA Error */ |
#define EN_PARMBAD (1 << 7) /* enable BAD Parameter interrupt */ |
#define EN_PRBSI0 (1 << 0) /* enable PRBS real DAC A interrupt */ |
#define EN_PRBSI1 (1 << 2) /* enable PRBS real DAC B interrupt */ |
#define EN_PRBSQ0 (1 << 1) /* enable PRBS imag DAC A interrupt */ |
#define EN_PRBSQ1 (1 << 3) /* enable PRBS imag DAC B interrupt */ |
#define EN_REFLOCK0 (1 << 3) /* Link A Alignment Locked */ |
#define EN_REFLOCK1 (1 << 3) /* Link B Alignment Locked */ |
#define EN_REFNCOCLR0 (1 << 4) /* Link A Nco Clear Tripped */ |
#define EN_REFNCOCLR1 (1 << 4) /* Link B Nco Clear Tripped */ |
#define EN_REFROTA0 (1 << 2) /* Link A Alignment Rotate */ |
#define EN_REFROTA1 (1 << 2) /* Link B Alignment Rotate */ |
#define EN_REFTRIP0 (1 << 0) /* Link A Alignment Trip */ |
#define EN_REFTRIP1 (1 << 0) /* Link B Alignment Trip */ |
#define EN_REFWLIM0 (1 << 1) /* Link A Over/Under Threshold */ |
#define EN_REFWLIM1 (1 << 1) /* Link B Over/Under Threshold */ |
#define EN_SERPLLLOCK (1 << 2) /* Enable Serdes PLL Lock detection */ |
#define EN_SERPLLLOST (1 << 3) /* Enable Serdes PLL Lost detection */ |
#define ENA_PA_CTRL_FROM_BLSM (1 << 4) /* Control PDP enable from Blanking state machine */ |
#define ENA_PA_CTRL_FROM_PAPROT_ERR (1 << 6) /* Control PDP enable from PAProt block */ |
#define ENA_PA_CTRL_FROM_SPI (1 << 3) /* Control PDP enable via SPI */ |
#define ENA_PA_CTRL_FROM_TXENSM (1 << 5) /* Control PDP enable from Txen State machine */ |
#define ENA_SPI_TXEN (1 << 1) /* TXEN from SPI control */ |
#define ENABLE_SYNTH (1 << 4) /* Synthesizer Enable */ |
#define ENB_DACLDO0 (1 << 4) /* Disable DAC0 ldo */ |
#define ENB_DACLDO1 (1 << 5) /* Disable DAC1 ldo */ |
#define ENB_DACLDO2 (1 << 6) /* Disable DAC2 ldo */ |
#define ENB_DACLDO3 (1 << 7) /* Disable DAC3 ldo */ |
#define EOF_MASK_0 (1 << 0) /* Mask EOF from QBD_0 */ |
#define EOF_MASK_1 (1 << 1) /* Mask EOF from QBD_1 */ |
#define EOMF_MASK_0 (1 << 2) /* EOMF_MASK_0 */ |
#define EOMF_MASK_1 (1 << 3) /* EOMF_MASK_1 */ |
#define ERR_DLYOVER (1 << 5) /* LMFC_Delay > JESD_K parameter */ |
#define ERR_INTSUPP (1 << 0) /* Unsupported Interpolation rate factor */ |
#define ERR_KUNSUPP (1 << 2) /* Unsupported K values */ |
#define ERR_SUBCLASS (1 << 1) /* Unsupported SubClassv value */ |
#define ERR_WINLIMIT (1 << 4) /* Unsupported Window Limit */ |
#define ERRWINDOW | ( | x | ) |
#define FS_CURRENT | ( | x | ) |
#define FTW_UPDATE_ACK (1 << 1) /* Frequency Tuning Word Update Acknowledge */ |
#define FTW_UPDATE_REQ (1 << 0) /* Frequency Tuning Word Update Request from SPI */ |
#define GAIN_RAMP_DOWN_STP1 | ( | x | ) |
#define GAIN_RAMP_UP_STP1 | ( | x | ) |
#define GAIN_SOFT_OFF (1 << 3) /* gain_soft_off forced value */ |
#define GAIN_SOFT_OFF_RB (1 << 3) /* gain soft off readback */ |
#define GAIN_SOFT_ON (1 << 2) /* gain_soft_on forced value */ |
#define GAIN_SOFT_ON_RB (1 << 2) /* gain soft on readback */ |
#define GLOBAL_AVG_CNT | ( | x | ) |
#define GP_PA_CTRL (1 << 1) /* External PA control */ |
#define GP_PA_ON_INVERT (1 << 2) /* External Modulator polarity invert */ |
#define HD (1 << 7) |
#define HD_RD (1 << 7) |
#define HYS_CNTRL1 | ( | x | ) |
#define HYS_ON (1 << 3) /* Hysteresis enabled */ |
#define I_TO_Q (1 << 0) /* 1 = send I datapath into Q DAC */ |
#define IDAC_DIG_GAIN1 | ( | x | ) |
#define ILAS_MODE (1 << 7) |
#define INCAP_CTRL | ( | x | ) |
#define INIT_SWEEP_ERR_DAC (1 << 1) /* Initial setup sweep failed */ |
#define INITIALLANESYNC_FLAG_OR_MASK (1 << 3) |
#define INTERP_MODE | ( | x | ) |
#define INVSINC_ENABLE (1 << 7) /* 1 = Enable inver sinc filter */ |
#define IPATH_DC_OFFSET_2PART | ( | x | ) |
#define IRQ_BIST_DONE0 (1 << 6) /* Link A BIST done */ |
#define IRQ_BIST_DONE1 (1 << 6) /* Link B BIST done */ |
#define IRQ_BLNKDONE0 (1 << 5) /* Link A Blanking Done */ |
#define IRQ_BLNKDONE1 (1 << 5) /* Link A Blanking Done */ |
#define IRQ_CALFAIL (1 << 6) /* Calib FAIL detection */ |
#define IRQ_CALPASS (1 << 7) /* Calib PASS detection */ |
#define IRQ_DACPLLLOCK (1 << 4) /* DAC PLL Lock */ |
#define IRQ_DACPLLLOST (1 << 5) /* DAC PLL Lost */ |
#define IRQ_DRDLFIFOERR (1 << 0) /* DRDL Fifo Error */ |
#define IRQ_LANEFIFOERR (1 << 1) /* Lane Fifo Error */ |
#define IRQ_PAERR0 (1 << 7) /* Link A PA Error */ |
#define IRQ_PAERR1 (1 << 7) /* Link B PA Error */ |
#define IRQ_PARMBAD (1 << 7) /* BAD Parameter interrupt */ |
#define IRQ_PRBSI0 (1 << 0) /* PRBS data check error DAC 0 real */ |
#define IRQ_PRBSI1 (1 << 2) /* PRBS data check error DAC 1 real */ |
#define IRQ_PRBSQ0 (1 << 1) /* PRBS data check error DAC 0 imag */ |
#define IRQ_PRBSQ1 (1 << 3) /* PRBS data check error DAC 1 imag */ |
#define IRQ_REFLOCK0 (1 << 3) /* Link A BIST done */ |
#define IRQ_REFLOCK1 (1 << 3) /* Link B BIST done */ |
#define IRQ_REFNCOCLR0 (1 << 4) /* Link A Alignment UnderRange */ |
#define IRQ_REFNCOCLR1 (1 << 4) /* Link B Alignment UnderRange */ |
#define IRQ_REFROTA0 (1 << 2) /* Link A Alignment Trip */ |
#define IRQ_REFROTA1 (1 << 2) /* Link B Alignment Trip */ |
#define IRQ_REFTRIP0 (1 << 0) /* Link A Alignment Rotate */ |
#define IRQ_REFTRIP1 (1 << 0) /* Link B Alignment Rotate */ |
#define IRQ_REFWLIM0 (1 << 1) /* Link A Alignment Lock */ |
#define IRQ_REFWLIM1 (1 << 1) /* Link B Alignment Lock */ |
#define IRQ_SERPLLLOCK (1 << 2) /* Serdes PLL Lock */ |
#define IRQ_SERPLLLOST (1 << 3) /* Serdes PLL Lost */ |
#define JESDV | ( | x | ) |
#define JESDV_RD | ( | x | ) |
#define K | ( | x | ) |
#define K_RD | ( | x | ) |
#define L | ( | x | ) |
#define L_RD | ( | x | ) |
#define LANE_ADDR_DIS | ( | x | ) |
#define LANE_ADDR_K | ( | x | ) |
#define LANE_ADDR_NIT | ( | x | ) |
#define LANESEL | ( | x | ) |
#define LASTERROR_H (1 << 0) /* Sync Last Error[8] and Flags */ |
#define LASTOVER (1 << 6) /* Sync Last Error Over Flag */ |
#define LASTUNDER (1 << 7) /* Sync Last Error Under Flag */ |
#define LF_BYPASS_C1 (1 << 4) /* Bypass C1 cap */ |
#define LF_BYPASS_C2 (1 << 5) /* Bypass C2 cap */ |
#define LF_BYPASS_R1 (1 << 6) /* Bypass R1 res */ |
#define LF_BYPASS_R3 (1 << 7) /* Bypass R3 res */ |
#define LF_C1_WORD | ( | x | ) |
#define LF_C2_WORD | ( | x | ) |
#define LF_C3_WORD | ( | x | ) |
#define LF_R1_WORD | ( | x | ) |
#define LF_R3_WORD | ( | x | ) |
#define LID0 | ( | x | ) |
#define LID0_RD | ( | x | ) |
#define LID1_RD | ( | x | ) |
#define LID2_RD | ( | x | ) |
#define LID3_RD | ( | x | ) |
#define LID4_RD | ( | x | ) |
#define LID5_RD | ( | x | ) |
#define LID6_RD | ( | x | ) |
#define LID7_RD | ( | x | ) |
#define LINK_EN | ( | x | ) |
#define LINK_MODE (1 << 3) /* Link mode */ |
#define LMFC_DELAY_0 | ( | x | ) |
#define LMFC_DELAY_1 | ( | x | ) |
#define LMFC_VAR_0 | ( | x | ) |
#define LMFC_VAR_1 | ( | x | ) |
#define LO_DIV_MODE | ( | x | ) |
#define LOCAL_AVRG_CNT | ( | x | ) |
#define LSBFIRST (1 << 1) /* LSB First */ |
#define LSBFIRST_M (1 << 6) /* LSB First (Mirror) */ |
#define MODULATION_TYPE | ( | x | ) |
#define MSB_GLOBAL_SUBAVG | ( | x | ) |
#define MSB_SWEEP_ERR_DAC (1 << 0) /* MSB sweep failed */ |
#define N | ( | x | ) |
#define N_RD | ( | x | ) |
#define NCOCLRARM (1 << 7) /* Arm NCO Clear */ |
#define NCOCLRFAIL (1 << 3) /* NCO Clear FAILed */ |
#define NCOCLRMODE | ( | x | ) |
#define NCOCLRMTCH (1 << 5) /* NCO Clear Data Match */ |
#define NCOCLRPASS (1 << 4) /* NCO Clear PASSed */ |
#define NIT_DIS_S (1 << 6) |
#define NITD_FLAG_OR_MASK (1 << 6) |
#define NP | ( | x | ) |
#define NP_RD | ( | x | ) |
#define PA_AVG_TIME | ( | x | ) |
#define PA_BUS_SWAP (1 << 6) /* Swap channelA or channelB databus for power calculation */ |
#define PA_ENABLE (1 << 7) /* 1 = Enable average power calculation and error detection */ |
#define PA_FALL | ( | x | ) |
#define PA_POWER_MSB | ( | x | ) |
#define PA_RISE | ( | x | ) |
#define PA_THRESH_MSB | ( | x | ) |
#define PAGEINDX | ( | x | ) |
#define PD_BG (1 << 7) /* Reference PowerDown */ |
#define PD_CLK01 (1 << 7) /* Powerdown clock for Dual A */ |
#define PD_CLK23 (1 << 6) /* Powerdown clock for Dual B */ |
#define PD_CLK_DIG (1 << 5) /* Powerdown clocks to all DACs */ |
#define PD_CLK_REC (1 << 3) /* Clock reciever powerdown */ |
#define PD_DAC_0 (1 << 6) /* PD Ichannel DAC 0 */ |
#define PD_DAC_1 (1 << 5) /* PD Qchannel DAC 1 */ |
#define PD_DAC_2 (1 << 4) /* PD Ichannel DAC 2 */ |
#define PD_DAC_3 (1 << 3) /* PD Qchannel DAC 3 */ |
#define PD_DACM (1 << 2) /* PD Dac master Bias */ |
#define PD_PCLK (1 << 4) /* Cal reference/Serdes PLL clock powerdown */ |
#define PD_SYSREF (1 << 4) /* Powerdown SYSREF buffer */ |
#define PHADJ (1 << 5) |
#define PHADJ_RD (1 << 5) |
#define PHASE_ADJ_ENABLE (1 << 4) /* 1 = Enable phase compensation */ |
#define PHY_PRBS_PAT_SEL | ( | x | ) |
#define PHY_SRC_ERR_CNT | ( | x | ) |
#define PHY_TEST_RESET (1 << 0) /* PHY PRBS test reset */ |
#define PHY_TEST_START (1 << 1) /* PHY PRBS test start */ |
#define PRBS_EN (1 << 0) /* Enable PRBS Checker */ |
#define PRBS_GOOD_I (1 << 6) /* Good data indicator real channel */ |
#define PRBS_GOOD_Q (1 << 7) /* Good data indicator imaginary channel */ |
#define PRBS_INV_I (1 << 3) /* Data Inversion real channel */ |
#define PRBS_INV_Q (1 << 4) /* Data Inversion imaginary channel */ |
#define PRBS_MODE (1 << 2) /* Polynomial Select */ |
#define PRBS_RESET (1 << 1) /* Reset Error Counters */ |
#define PROD_GRADE | ( | x | ) |
#define PROTECT_MODE (1 << 7) /* PROTECT_MODE */ |
#define QDAC_DIG_GAIN1 | ( | x | ) |
#define QPATH_DC_OFFSET_2PART | ( | x | ) |
#define QUETESTERR (1 << 4) |
#define REF_CURRENT | ( | x | ) |
#define REF_DIVRATE | ( | x | ) |
#define REFBUSY (1 << 7) /* Sync Machine Busy */ |
#define REFLOCK (1 << 3) /* Sync Alignment Locked */ |
#define REFROTA (1 << 2) /* Sync Rotated */ |
#define REFTRIP (1 << 0) /* Sync Tripped after Arming */ |
#define REFWLIM (1 << 1) /* Sync Alignment Limit Range */ |
#define REG_ACC_DELTA0 0x158 /* ACC Delta 0 */ |
#define REG_ACC_DELTA1 0x159 /* ACC Delta 1 */ |
#define REG_ACC_DELTA2 0x15A /* ACC Delta 2 */ |
#define REG_ACC_DELTA3 0x15B /* ACC Delta 3 */ |
#define REG_ACC_DELTA4 0x15C /* ACC Delta 4 */ |
#define REG_ACC_DELTA5 0x15D /* ACC Delta 5 */ |
#define REG_ACC_MODULUS0 0x152 /* ACC Modulus 0 */ |
#define REG_ACC_MODULUS1 0x153 /* ACC Modulus 1 */ |
#define REG_ACC_MODULUS2 0x154 /* ACC Modulus 2 */ |
#define REG_ACC_MODULUS3 0x155 /* ACC Modulus 3 */ |
#define REG_ACC_MODULUS4 0x156 /* ACC Modulus 4 */ |
#define REG_ACC_MODULUS5 0x157 /* ACC Modulus 5 */ |
#define REG_BADDISPARITY 0x46D /* Reg 109 Description */ |
#define REG_BID_REG 0x401 /* Reg 1 Description */ |
#define REG_CDR_OPERATING_MODE_REG_0 0x230 /* Clock and data recovery operating modes */ |
#define REG_CDR_RESET 0x206 /* CDR Reset */ |
#define REG_CHECKSUM1_REG 0x415 /* Reg 19 Description */ |
#define REG_CHECKSUM2_REG 0x41D /* Reg 29 Description */ |
#define REG_CHECKSUM3_REG 0x425 /* Reg 37 Description */ |
#define REG_CHECKSUM_REG 0x40D /* Reg 13 Description */ |
#define REG_CLK_DETECT 0x08E /* Clock Detect */ |
#define REG_CLKCFG0 0x080 /* Clock Configuration */ |
#define REG_COARSE_GROUP_DLY 0x047 /* Coarse Group Delay Adjustment */ |
#define REG_CODEGRPSYNCFLG 0x470 /* Reg 112 Description */ |
#define REG_COMPSUM0_REG 0x40E /* Reg 14 Description */ |
#define REG_COMPSUM1_REG 0x416 /* Reg 22 Description */ |
#define REG_COMPSUM2_REG 0x41E /* Reg 30 Description */ |
#define REG_COMPSUM3_REG 0x426 /* Reg 38 Description */ |
#define REG_CS_N_REG 0x407 /* Reg 7 Description */ |
#define REG_CTRLREG1 0x476 /* Reg 118 Description */ |
#define REG_CTRLREG2 0x477 /* Reg 119 Description */ |
#define REG_DAC_PLL_CONFIG0 0x08D /* DAC PLL Configuration */ |
#define REG_DAC_PLL_CONFIG1 0x1B0 /* DAC PLL Configuration */ |
#define REG_DAC_PLL_CONFIG2 0x1B9 /* DAC PLL Configuration */ |
#define REG_DAC_PLL_CONFIG3 0x1BC /* DAC PLL Configuration */ |
#define REG_DAC_PLL_CONFIG4 0x1BE /* DAC PLL Configuration */ |
#define REG_DAC_PLL_CONFIG5 0x1BF /* DAC PLL Configuration */ |
#define REG_DAC_PLL_CONFIG6 0x1C0 /* DAC PLL Configuration */ |
#define REG_DAC_PLL_CONFIG7 0x1C1 /* DAC PLL Configuration */ |
#define REG_DACCPCNTRL 0x08A /* Charge Pump/Cntrl Voltage */ |
#define REG_DACGAIN0_0 0x041 /* LSBs of Full Scale Adjust DAC */ |
#define REG_DACGAIN0_1 0x040 /* MSBs of Full Scale Adjust DAC */ |
#define REG_DACGAIN1_0 0x043 /* LSBs of Full Scale Adjust DAC */ |
#define REG_DACGAIN1_1 0x042 /* MSBs of Full Scale Adjust DAC */ |
#define REG_DACINTEGERWORD0 0x085 /* Feedback divider tuning word */ |
#define REG_DACLDOCNTRL1 0x08C /* LDO Control1 + Reference Divider */ |
#define REG_DACLOGENCNTRL 0x08B /* Logen Control */ |
#define REG_DACLOOPFILT2 0x088 /* R1 and C3 control */ |
#define REG_DACLOOPFILT3 0x089 /* Bypass and R2 control */ |
#define REG_DACOFF 0x12C /* DAC Shutdown Source */ |
#define REG_DACOUT_ON_DOWN 0x125 /* DAC out down control and on trigger */ |
#define REG_DACPLLCNTRL 0x083 /* Top Level Control DAC Clock PLL */ |
#define REG_DACPLLSTATUS 0x084 /* DAC PLL Status Bits */ |
#define REG_DACPLLT17 0x1C4 /* Varactor ControlV */ |
#define REG_DACPLLT18 0x1C5 /* DAC PLL Control */ |
#define REG_DACPLLT4 0x1B4 /* VCO Cal Control */ |
#define REG_DACPLLT5 0x1B5 /* ALC/Varactor control */ |
#define REG_DACPLLT6 0x1B6 /* DAC PLL VCO Control */ |
#define REG_DACPLLTB 0x1BB /* VCO Bias Control */ |
#define REG_DATA_FORMAT 0x110 /* Data format */ |
#define REG_DATAPATH_CTRL 0x111 /* Datapath Control */ |
#define REG_DATAPATH_CTRL2 0x151 /* Datapath Control 2 */ |
#define REG_DC_OFFSET_CTRL 0x135 /* DC Offset Control */ |
#define REG_DC_TEST_VALUEI0 0x0F8 /* DC Test Value I0 */ |
#define REG_DC_TEST_VALUEI1 0x0F9 /* DC Test Value I1 */ |
#define REG_DC_TEST_VALUEQ0 0x0FA /* DC Test Value Q0 */ |
#define REG_DC_TEST_VALUEQ1 0x0FB /* DC Test Value Q1 */ |
#define REG_DID_REG 0x400 /* Reg 0 Description */ |
#define REG_DIE_TEMP0 0x132 /* Die temp LSB */ |
#define REG_DIE_TEMP1 0x133 /* Die Temp MSB */ |
#define REG_DIE_TEMP_CTRL0 0x12F /* Die Temp Range Control */ |
#define REG_DIE_TEMP_UPDATE 0x134 /* Die temperature update */ |
#define REG_DIG_TEST0 0x0F7 /* Digital Test 0 */ |
#define REG_DYN_LINK_LATENCY_0 0x302 /* Register 1 description */ |
#define REG_EQ_BIAS_REG 0x268 /* Equalizer bias control */ |
#define REG_ERRCNTRMON 0x46B /* Reg 107 Description */ |
#define REG_ERROR_THERM 0x03E /* Sync Error Thermometer */ |
#define REG_ERRORTHRES 0x47C /* Reg 124 Description */ |
#define REG_F_REG 0x404 /* Reg 4 Description */ |
#define REG_FIFO_STATUS_REG_0 0x30C /* Register 11 description */ |
#define REG_FIFO_STATUS_REG_1 0x30D /* Register 12 description */ |
#define REG_FRAMESYNCFLG 0x471 /* Reg 113 Description */ |
#define REG_FTW0 0x114 /* NCO Frequency Tuning Word LSB */ |
#define REG_FTW1 0x115 /* NCO Frequency Tuning Word */ |
#define REG_FTW2 0x116 /* NCO Frequency Tuning Word */ |
#define REG_FTW3 0x117 /* NCO Frequency Tuning Word */ |
#define REG_FTW4 0x118 /* NCO Frequency Tuning Word */ |
#define REG_FTW5 0x119 /* NCO Frequency Tuning Word MSB */ |
#define REG_GAIN_RAMP_DOWN_STP0 0x142 /* LSB of digital gain drops */ |
#define REG_GAIN_RAMP_DOWN_STP1 0x143 /* MSB of digital gain drops */ |
#define REG_GAIN_RAMP_UP_STP0 0x140 /* LSB of digital gain rises */ |
#define REG_GAIN_RAMP_UP_STP1 0x141 /* MSB of digital gain rises */ |
#define REG_GENERAL_JRX_CTRL_0 0x300 /* General JRX Control Register 0 */ |
#define REG_GENERAL_JRX_CTRL_1 0x301 /* General JRX Control Register 1 */ |
#define REG_GENERIC_PD 0x203 /* Miscellaneous power down controls */ |
#define REG_GOODCHKSUMFLG 0x472 /* Reg 114 Description */ |
#define REG_HD_CF_REG 0x40A /* Reg 10 Description */ |
#define REG_IDAC_DIG_GAIN0 0x13C /* I DAC Gain LSB */ |
#define REG_IDAC_DIG_GAIN1 0x13D /* I DAC Gain MSB */ |
#define REG_ILS_BID 0x451 /* Reg 81 Description */ |
#define REG_ILS_CHECKSUM 0x45D /* Reg 93 Description */ |
#define REG_ILS_CS_N 0x457 /* Reg 87 Description */ |
#define REG_ILS_DID 0x450 /* Reg 80 Description */ |
#define REG_ILS_F 0x454 /* Reg 84 Description */ |
#define REG_ILS_HD_CF 0x45A /* Reg 90 Description */ |
#define REG_ILS_K 0x455 /* Reg 85 Description */ |
#define REG_ILS_LID0 0x452 /* Reg 82 Description */ |
#define REG_ILS_M 0x456 /* Reg 86 Description */ |
#define REG_ILS_NP 0x458 /* Reg 88 Description */ |
#define REG_ILS_RES1 0x45B /* Reg 91 Description */ |
#define REG_ILS_RES2 0x45C /* Reg 92 Description */ |
#define REG_ILS_S 0x459 /* Reg 89 Description */ |
#define REG_ILS_SCR_L 0x453 /* Reg 83 Description */ |
#define REG_INITLANESYNCFLG 0x473 /* Reg 115 Description */ |
#define REG_INTERP_MODE 0x112 /* Interpolation Mode */ |
#define REG_IPATH_DC_OFFSET_1PART0 0x136 /* LSB of first part of DC Offset value for I path */ |
#define REG_IPATH_DC_OFFSET_1PART1 0x137 /* MSB of first part of DC Offset value for I path */ |
#define REG_IPATH_DC_OFFSET_2PART 0x13A /* Second part of DC Offset value for I path */ |
#define REG_IRQ_ENABLE0 0x01F /* Interrupt Enable */ |
#define REG_IRQ_ENABLE1 0x020 /* Interrupt Enable */ |
#define REG_IRQ_ENABLE2 0x021 /* Interrupt Enable */ |
#define REG_IRQ_STATUS0 0x023 /* Interrupt Status */ |
#define REG_IRQ_STATUS1 0x024 /* Interrupt Status */ |
#define REG_IRQ_STATUS2 0x025 /* Interrupt Status */ |
#define REG_IRQ_STATUS3 0x026 /* Interrupt Status */ |
#define REG_IRQ_STATUS4 0x027 /* Interrupt Status */ |
#define REG_IRQVECTOR 0x47A /* Reg 122 Description */ |
#define REG_JESD204B_TERM0 0x2AA /* JESD204B interface termination configuration */ |
#define REG_JESD204B_TERM1 0x2AB /* JESD204B interface termination configuration */ |
#define REG_JESD_BIT_INVERSE_CTRL 0x334 /* Reg 42 Description */ |
#define REG_JESD_CHECKS 0x030 /* JESD Parameter Checking */ |
#define REG_K_REG 0x405 /* Reg 5 Description */ |
#define REG_KVAL 0x478 /* Reg 120 Description */ |
#define REG_LANEDESKEW 0x46C /* Reg 108 Description */ |
#define REG_LANEENABLE 0x47D /* Reg 125 Description */ |
#define REG_LID0_REG 0x402 /* Reg 2 Description */ |
#define REG_LID1_REG 0x412 /* Reg 18 Description */ |
#define REG_LID2_REG 0x41A /* Reg 26 Description */ |
#define REG_LID3_REG 0x422 /* Reg 34 Description */ |
#define REG_LMFC_DELAY_0 0x304 /* Register 3 description */ |
#define REG_LMFC_VAR_0 0x306 /* Register 5 description */ |
#define REG_M_REG 0x406 /* Reg 6 Description */ |
#define REG_MASTER_PD 0x200 /* Master power down for Receiver PHYx */ |
#define REG_NCO_ALIGNMODE 0x050 /* NCO Align Mode */ |
#define REG_NCO_FTW_UPDATE 0x113 /* NCO Frequency Tuning Word Update */ |
#define REG_NCO_PHASE_ADJ0 0x11C /* I/Q Phase Adjust LSB */ |
#define REG_NCO_PHASE_ADJ1 0x11D /* I/Q Phase Adjust MSB */ |
#define REG_NCO_PHASE_OFFSET0 0x11A /* NCO Phase Offset LSB */ |
#define REG_NCO_PHASE_OFFSET1 0x11B /* NCO Phase Offset MSB */ |
#define REG_NCOKEY_ILSB 0x051 /* NCO Clear on Data Key I lsb */ |
#define REG_NCOKEY_IMSB 0x052 /* NCO Clear on Data Key I msb */ |
#define REG_NCOKEY_QLSB 0x053 /* NCO Clear on Data Key Q lsb */ |
#define REG_NCOKEY_QMSB 0x054 /* NCO Clear on Data Key Q msb */ |
#define REG_NITDISPARITY 0x46E /* Reg 110 Description */ |
#define REG_NP_REG 0x408 /* Reg 8 Description */ |
#define REG_PA_AVG_TIME 0x062 /* PDP Control */ |
#define REG_PA_OFFGAIN0 0x065 /* PDP Offgain 0 */ |
#define REG_PA_OFFGAIN1 0x066 /* PDP Offgain 1 */ |
#define REG_PA_POWER0 0x063 /* PDP Power */ |
#define REG_PA_POWER1 0x064 /* PDP Power */ |
#define REG_PA_THRES0 0x060 /* PDP Threshold */ |
#define REG_PA_THRES1 0x061 /* PDP Threshold */ |
#define REG_PFIR_COEFF0_H 0x17B /* PFIR Coefficient 0 MSB */ |
#define REG_PFIR_COEFF0_L 0x17A /* PFIR Coefficient 0 LSB */ |
#define REG_PFIR_COEFF1_H 0x17D /* PFIR Coefficient 1 MSB */ |
#define REG_PFIR_COEFF1_L 0x17C /* PFIR Coefficient 1 LSB */ |
#define REG_PFIR_COEFF2_H 0x17F /* PFIR Coefficient 2 MSB */ |
#define REG_PFIR_COEFF2_L 0x17E /* PFIR Coefficient 2 LSB */ |
#define REG_PFIR_COEFF3_H 0x181 /* PFIR Coefficient 3 MSB */ |
#define REG_PFIR_COEFF3_L 0x180 /* PFIR Coefficient 3 LSB */ |
#define REG_PFIR_COEFF_UPDATE 0x182 /* PFIR Coefficient Update */ |
#define REG_PHY_PD 0x201 /* Power down for individual Receiver PHYx */ |
#define REG_PHY_PRBS_TEST_CTRL 0x316 /* Reg 20 Description */ |
#define REG_PHY_PRBS_TEST_ERRCNT_HIBITS 0x31C /* Reg 26 Description */ |
#define REG_PHY_PRBS_TEST_ERRCNT_LOBITS 0x31A /* Reg 24 Description */ |
#define REG_PHY_PRBS_TEST_ERRCNT_MIDBITS 0x31B /* Reg 25 Description */ |
#define REG_PHY_PRBS_TEST_STATUS 0x31D /* Reg 27 Description */ |
#define REG_PHY_PRBS_TEST_THRESH_HIBITS 0x319 /* Reg 23 Description */ |
#define REG_PHY_PRBS_TEST_THRESH_LOBITS 0x317 /* Reg 21 Description */ |
#define REG_PHY_PRBS_TEST_THRESH_MIDBITS 0x318 /* Reg 22 Description */ |
#define REG_PLL_STATUS 0x281 /* Rx PLL status readbacks */ |
#define REG_PRBS 0x14B /* PRBS Input Data Checker */ |
#define REG_PRBS_ERROR_I 0x14C /* PRBS Error Counter Real */ |
#define REG_PRBS_ERROR_Q 0x14D /* PRBS Error Counter Imaginary */ |
#define REG_PWRCNTRL0 0x011 /* Power Control Reg 1 */ |
#define REG_PWRCNTRL1 0x014 /* Power control register 1 */ |
#define REG_PWRCNTRL3 0x013 /* Power control register 3 */ |
#define REG_QDAC_DIG_GAIN0 0x13E /* Q DAC Gain LSB */ |
#define REG_QDAC_DIG_GAIN1 0x13F /* Q DAC Gain MSB */ |
#define REG_QPATH_DC_OFFSET_1PART0 0x138 /* LSB of first part of DC Offset value for Q path */ |
#define REG_QPATH_DC_OFFSET_1PART1 0x139 /* MSB of first part of DC Offset value for Q path */ |
#define REG_QPATH_DC_OFFSET_2PART 0x13B /* Second part of DC Offset value for Q path */ |
#define REG_RAMP_ENA 0x47E /* Ramp Check Enable */ |
#define REG_REF_CLK_DIVIDER_LDO 0x289 /* Rx PLL LDO control */ |
#define REG_RES1_REG 0x40B /* Reg 11 Description */ |
#define REG_RES2_REG 0x40C /* Reg 12 Description */ |
#define REG_S_REG 0x409 /* Reg 9 Description */ |
#define REG_SCR_L_REG 0x403 /* Reg 3 Description */ |
#define REG_SERDES_PLL_CONFIG0 0x284 /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG1 0x285 /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG10 0x29C /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG11 0x29F /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG12 0x2A0 /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG2 0x286 /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG3 0x287 /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG4 0x28B /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG5 0x290 /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG6 0x294 /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG7 0x297 /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG8 0x299 /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_CONFIG9 0x29A /* SERDES PLL Configuration */ |
#define REG_SERDES_PLL_VCO_CONTROL0 0x28A /* SERDES PLL VCO Control 0 */ |
#define REG_SERDES_PLL_VCO_CONTROL1 0x291 /* SERDES PLL VCO Control 1 */ |
#define REG_SERDES_PLL_VCO_CONTROL2 0x296 /* SERDES PLL VCO Control 2 */ |
#define REG_SERDES_SPI_REG 0x314 /* SERDES SPI Configuration */ |
#define REG_SHORT_TPL_TEST_0 0x32C /* Reg 46 Description */ |
#define REG_SHORT_TPL_TEST_1 0x32D /* Reg 47 Description */ |
#define REG_SHORT_TPL_TEST_2 0x32E /* Reg 48 Description */ |
#define REG_SHORT_TPL_TEST_3 0x32F /* Reg 49 Description */ |
#define REG_SPI_CHIPGRADE 0x006 /* Chip Grade */ |
#define REG_SPI_CHIPTYPE 0x003 /* Chip Type */ |
#define REG_SPI_INTFCONFA 0x000 /* Interface configuration A */ |
#define REG_SPI_PRODIDH 0x005 /* Product Identification High Byte */ |
#define REG_SPI_PRODIDL 0x004 /* Product Identification Low Byte */ |
#define REG_SYNC_CTRL 0x03A /* Sync Mode Control */ |
#define REG_SYNC_CURRERR_H 0x03D /* Sync Alignment Error[8] */ |
#define REG_SYNC_CURRERR_L 0x03C /* Sync Alignment Error[7:0] */ |
#define REG_SYNC_DACDELAY_H 0x033 /* Sync Logic DacDelay [8] */ |
#define REG_SYNC_DACDELAY_L 0x032 /* Sync Logic DacDelay [7:0] */ |
#define REG_SYNC_DLYCOUNT 0x035 /* Sync Control Ref Delay Count */ |
#define REG_SYNC_ERRWINDOW 0x034 /* Sync Error Window */ |
#define REG_SYNC_LASTERR_H 0x039 /* SyncLASTerror_H */ |
#define REG_SYNC_LASTERR_L 0x038 /* SyncLASTerror_L */ |
#define REG_SYNC_REFCOUNT 0x036 /* Sync SysRef InActive Interval */ |
#define REG_SYNC_STATUS 0x03B /* Sync Alignment Flags */ |
#define REG_SYNC_TESTCTRL 0x031 /* Sync Control Reg0 */ |
#define REG_SYNCASSERTIONMASK 0x47B /* Reg 123 Description */ |
#define REG_SYNCB_GEN_0 0x311 /* Register 16 description */ |
#define REG_SYNCB_GEN_1 0x312 /* Register 17 description */ |
#define REG_SYNCB_GEN_3 0x313 /* Register 18 description */ |
#define REG_SYNTH_ENABLE_CNTRL 0x280 /* Rx PLL enable controls */ |
#define REG_SYSREF_ACTRL0 0x081 /* SYSREF Analog Control 0 */ |
#define REG_SYSREF_ACTRL1 0x082 /* SYSREF Analog Control 1 */ |
#define REG_TERM_BLK1_CTRLREG0 0x2A7 /* Termination controls for PHYs 0, 1, 6, and 7 */ |
#define REG_TEST_MODE 0x1FE /* Test Mode */ |
#define REG_TXEN_SM_0 0x11F /* Transmit enable power control state machine */ |
#define REG_TXENMASK1 0x012 /* TXenable masks */ |
#define REG_UNEXPECTEDKCHAR 0x46F /* Reg 111 Description */ |
#define REG_XBAR_LN_0_1 0x308 /* Register 7 description */ |
#define REG_XBAR_LN_2_3 0x309 /* Register 8 description */ |
#define REPDATATEST (1 << 5) |
#define RESET_BLSM (1 << 7) /* Soft rest to the new Blanking SM */ |
#define RFPLL_LOCK (1 << 1) /* PLL Lock bit */ |
#define RST_ERR_CNTR_DIS (1 << 5) |
#define RST_ERR_CNTR_K (1 << 5) |
#define RST_ERR_CNTR_NIT (1 << 5) |
#define RST_IRQ_DIS (1 << 7) |
#define RST_IRQ_K (1 << 7) |
#define RST_IRQ_NIT (1 << 7) |
#define S | ( | x | ) |
#define S_RD | ( | x | ) |
#define SCR (1 << 7) |
#define SCR_RD (1 << 7) |
#define SDOACTIVE (1 << 3) /* SDO Active */ |
#define SDOACTIVE_M (1 << 4) /* SDO Active (Mirror) */ |
#define SEL_REG_MAP_1 (1 << 2) /* Link register map selection */ |
#define SEL_SIDEBAND (1 << 1) /* 1 = Select upper or lower sideband from modulation result */ |
#define SELECT_CLKDIG (1 << 3) /* SELECT_CLKDIG */ |
#define SHORT_TPL_FAIL (1 << 0) /* Short transport layer test fail */ |
#define SHORT_TPL_M_SEL | ( | x | ) |
#define SHORT_TPL_SP_SEL | ( | x | ) |
#define SHORT_TPL_TEST_EN (1 << 0) /* Short transport layer test enable */ |
#define SHORT_TPL_TEST_RESET (1 << 1) /* Short transport layer test reset */ |
#define SHUFFLE_ISB0 (1 << 1) /* ISB shuffling mode */ |
#define SHUFFLE_ISB1 (1 << 1) /* ISB shuffling mode */ |
#define SHUFFLE_ISB2 (1 << 1) /* ISB shuffling mode */ |
#define SHUFFLE_ISB3 (1 << 1) /* ISB shuffling mode */ |
#define SHUFFLE_MSB0 (1 << 2) /* MSB shuffling mode */ |
#define SHUFFLE_MSB1 (1 << 2) /* MSB shuffling mode */ |
#define SHUFFLE_MSB2 (1 << 2) /* MSB shuffling mod */ |
#define SHUFFLE_MSB3 (1 << 2) /* MSB shuffling mode */ |
#define SINGLEINS (1 << 7) /* Single Instruction */ |
#define SLAVEUPDATE (1 << 0) /* M/S Update Bit */ |
#define SOFT_OFF_DONE (1 << 5) /* Blanking SoftOff Enable */ |
#define SOFT_OFF_EN_RB (1 << 1) /* Blanking SM soft Off read back */ |
#define SOFT_ON_DONE (1 << 4) /* Blanking SoftOn Done */ |
#define SOFT_ON_EN_RB (1 << 0) /* Blanking SM soft On read back */ |
#define SOFTBLANKRB | ( | x | ) |
#define SOFTRESET (1 << 0) /* Soft Reset */ |
#define SOFTRESET_M (1 << 7) /* Soft Reset (Mirror) */ |
#define SPI_CDR_OVERSAMP | ( | x | ) |
#define SPI_CP_CAL_VALID_RB (1 << 3) |
#define SPI_DIVISION_RATE | ( | x | ) |
#define SPI_ENABLE_SYNTH (1 << 0) |
#define SPI_ENHALFRATE (1 << 5) |
#define SPI_EQ_BIASPLY | ( | x | ) |
#define SPI_EQ_BIASPTAT | ( | x | ) |
#define SPI_EQ_CONFIG0 | ( | x | ) |
#define SPI_EQ_CONFIG1 | ( | x | ) |
#define SPI_EQ_CONFIG2 | ( | x | ) |
#define SPI_EQ_CONFIG3 | ( | x | ) |
#define SPI_EQ_CONFIG4 | ( | x | ) |
#define SPI_EQ_CONFIG5 | ( | x | ) |
#define SPI_EQ_CONFIG6 | ( | x | ) |
#define SPI_EQ_CONFIG7 | ( | x | ) |
#define SPI_EQ_EXTRA_SPI_LSBITS | ( | x | ) |
#define SPI_I_TUNE_R_CAL_TERMBLK1 (1 << 0) |
#define SPI_I_TUNE_R_CAL_TERMBLK2 (1 << 0) |
#define SPI_PA_CTRL (1 << 2) /* PDP on/off via SPI */ |
#define SPI_PD_MASTER (1 << 0) |
#define SPI_PLL_LOCK_RB (1 << 0) |
#define SPI_RECAL_SYNTH (1 << 2) |
#define SPI_SYNC1_PD (1 << 1) |
#define SPI_SYNC2_PD (1 << 0) |
#define SPI_TXEN (1 << 0) /* Spi TXEN */ |
#define SPIDRV | ( | x | ) |
#define SRC_LANE0 | ( | x | ) |
#define SRC_LANE1 | ( | x | ) |
#define SRC_LANE2 | ( | x | ) |
#define SRC_LANE3 | ( | x | ) |
#define SRC_LANE4 | ( | x | ) |
#define SRC_LANE5 | ( | x | ) |
#define SRC_LANE6 | ( | x | ) |
#define SRC_LANE7 | ( | x | ) |
#define STAT_LDO0 (1 << 0) /* DAC0 LDO status */ |
#define STAT_LDO1 (1 << 1) /* DAC1 LDO status */ |
#define STAT_LDO2 (1 << 2) /* DAC2 LDO status */ |
#define STAT_LDO3 (1 << 3) /* DAC3 LDO status */ |
#define SUBCLASSV | ( | x | ) |
#define SUBCLASSV_LOCAL | ( | x | ) |
#define SUBCLASSV_RD | ( | x | ) |
#define SYNCARM (1 << 6) /* Sync Arming Strobe */ |
#define SYNCB_ERR_DUR | ( | x | ) |
#define SYNCB_SYNCREQ_DUR | ( | x | ) |
#define SYNCBYPASS | ( | x | ) |
#define SYNCCLRLAST (1 << 4) /* Sync Clear LAST_ */ |
#define SYNCCLRSTKY (1 << 5) /* Sync Sticky Bit Clear */ |
#define SYNCENABLE (1 << 7) /* SyncLogic Enable */ |
#define SYNCMODE | ( | x | ) |
#define SYNTH_RECAL (1 << 7) /* Recalibrate VCO Band */ |
#define SYS_MASK (1 << 2) /* SYSREF Receiver TXen mask */ |
#define SYSOPMODE | ( | x | ) |
#define SYSREF_RISE (1 << 2) /* Use SYSREF rising edge */ |
#define TARRFAPHAZ (1 << 0) /* Target Polarity of Rf Divider */ |
#define THRMNEG (1 << 1) /* Error < 0 */ |
#define THRMOLD (1 << 7) /* Error is from a prior sample */ |
#define THRMOVER (1 << 4) /* Error > +WinLimit */ |
#define THRMPOS (1 << 3) /* Sync Current Error Under Flag */ |
#define THRMUNDER (1 << 0) /* Error < -WinLimit */ |
#define THRMZERO (1 << 2) /* Error = 0 */ |
#define TX_DIG_CLK_PD (1 << 0) /* 1 = Digital clocks will be shut down when Tx_enable pin is low. */ |
#define TXEN_SM_EN (1 << 0) /* Enable TXEN state machine */ |
#define UEKC_FLAG_OR_MASK (1 << 5) |
#define UNEX_K_S (1 << 5) |
#define VCO_BIAS_REF | ( | x | ) |
#define VCO_CAL_REF_MON (1 << 3) /* Sent control voltage to outside world */ |
#define VCO_CAL_REF_TCF | ( | x | ) |
#define VCO_VAR | ( | x | ) |
#define VCO_VAR_OFF | ( | x | ) |
#define VCO_VAR_REF_TCF | ( | x | ) |
int32_t ad9152_datapath_prbs_test | ( | struct ad9152_dev * | dev, |
struct ad9152_init_param | init_param ) |
ad9152_setup
int32_t ad9152_remove | ( | struct ad9152_dev * | dev | ) |
Free the resources allocated by ad9152_setup().
dev | - The device structure. |
int32_t ad9152_setup | ( | struct ad9152_dev ** | device, |
struct ad9152_init_param | init_param ) |
ad9152_setup
int32_t ad9152_short_pattern_test | ( | struct ad9152_dev * | dev, |
struct ad9152_init_param | init_param ) |
ad9152_setup
int32_t ad9152_spi_read | ( | struct ad9152_dev * | dev, |
uint16_t | reg_addr, | ||
uint8_t * | reg_data ) |
ad9152_spi_read
int32_t ad9152_spi_write | ( | struct ad9152_dev * | dev, |
uint16_t | reg_addr, | ||
uint8_t | reg_data ) |
ad9152_spi_write
int32_t ad9152_status | ( | struct ad9152_dev * | dev | ) |
ad9152_setup