Debian Codegraph @

thirdparty/analogdevicesinc/no-OS/drivers/ad9144/ad9144.h

raw symbols SCIP
1 /***************************************************************************//**
2 * @file ad9144.h
3 * @brief Header file of AD9144 Driver.
4 * @author DBogdan ([email protected])
5 ********************************************************************************
6 * Copyright 2014-2016(c) Analog Devices, Inc.
7 *
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions are met:
12 * - Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * - Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in
16 * the documentation and/or other materials provided with the
17 * distribution.
18 * - Neither the name of Analog Devices, Inc. nor the names of its
19 * contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 * - The use of this software may or may not infringe the patent rights
22 * of one or more patent holders. This license does not release you
23 * from the requirement that you obtain separate licenses from these
24 * patent holders to use this software.
25 * - Use of the software either in source or binary form, must be run
26 * on or directly connected to an Analog Devices Inc. component.
27 *
28 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR
29 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT,
30 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
31 * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT,
32 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
33 * LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR
34 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 *******************************************************************************/
39 #ifndef AD9144_H_
40 #define AD9144_H_
41
42 /******************************************************************************/
43 /***************************** Include Files **********************************/
44 /******************************************************************************/
45 #include "platform_drivers.h"
46
47 /******************************************************************************/
48 /********************** Macros and Constants Definitions **********************/
49 /******************************************************************************/
50 #define REG_SPI_INTFCONFA 0x000 /* Interface configuration A */
51 #define REG_SPI_INTFCONFB 0x001 /* Interface configuration B */
52 #define REG_SPI_DEVCONF 0x002 /* Device Configuration */
53 #define REG_SPI_PRODIDL 0x004 /* Product Identification Low Byte */
54 #define REG_SPI_PRODIDH 0x005 /* Product Identification High Byte */
55 #define REG_SPI_CHIPGRADE 0x006 /* Chip Grade */
56 #define REG_SPI_PAGEINDX 0x008 /* Page Pointer or Device Index */
57 #define REG_SPI_DEVINDX2 0x009 /* Secondary Device Index */
58 #define REG_SPI_SCRATCHPAD 0x00A /* Scratch Pad */
59 #define REG_SPI_MS_UPDATE 0x00F /* Master/Slave Update Bit */
60 #define REG_PWRCNTRL0 0x011 /* Power Control Reg 1 */
61 #define REG_TXENMASK1 0x012 /* TXenable masks */
62 #define REG_PWRCNTRL3 0x013 /* Power control register 3 */
63 #define REG_COARSE_GROUP_DLY 0x014 /* Coarse Group Delay Adjustment */
64 #define REG_IRQ_ENABLE0 0x01F /* Interrupt Enable */
65 #define REG_IRQ_ENABLE1 0x020 /* Interrupt Enable */
66 #define REG_IRQ_ENABLE2 0x021 /* Interrupt Enable */
67 #define REG_IRQ_ENABLE3 0x022 /* Interrupt Enable */
68 #define REG_IRQ_STATUS0 0x023 /* Interrupt Status */
69 #define REG_IRQ_STATUS1 0x024 /* Interrupt Status */
70 #define REG_IRQ_STATUS2 0x025 /* Interrupt Status */
71 #define REG_IRQ_STATUS3 0x026 /* Interrupt Status */
72 #define REG_JESD_CHECKS 0x030 /* JESD Parameter Checking */
73 #define REG_SYNC_TESTCTRL 0x031 /* Sync Control Reg0 */
74 #define REG_SYNC_DACDELAY_L 0x032 /* Sync Logic DacDelay [7:0] */
75 #define REG_SYNC_DACDELAY_H 0x033 /* Sync Logic DacDelay [8] */
76 #define REG_SYNC_ERRWINDOW 0x034 /* Sync Error Window */
77 #define REG_SYNC_DLYCOUNT 0x035 /* Sync Control Ref Delay Count */
78 #define REG_SYNC_REFCOUNT 0x036 /* Sync SysRef InActive Interval */
79 #define REG_SYNC_LASTERR_L 0x038 /* SyncLASTerror_L */
80 #define REG_SYNC_LASTERR_H 0x039 /* SyncLASTerror_H */
81 #define REG_SYNC_CTRL 0x03A /* Sync Mode Control */
82 #define REG_SYNC_STATUS 0x03B /* Sync Alignment Flags */
83 #define REG_SYNC_CURRERR_L 0x03C /* Sync Alignment Error[7:0] */
84 #define REG_SYNC_CURRERR_H 0x03D /* Sync Alignment Error[8] */
85 #define REG_ERROR_THERM 0x03E /* Sync Error Thermometer */
86 #define REG_DACGAIN0_1 0x040 /* MSBs of Full Scale Adjust DAC */
87 #define REG_DACGAIN0_0 0x041 /* LSBs of Full Scale Adjust DAC */
88 #define REG_DACGAIN1_1 0x042 /* MSBs of Full Scale Adjust DAC */
89 #define REG_DACGAIN1_0 0x043 /* LSBs of Full Scale Adjust DAC */
90 #define REG_DACGAIN2_1 0x044 /* MSBs of Full Scale Adjust DAC */
91 #define REG_DACGAIN2_0 0x045 /* LSBs of Full Scale Adjust DAC */
92 #define REG_DACGAIN3_1 0x046 /* MSBs of Full Scale Adjust DAC */
93 #define REG_DACGAIN3_0 0x047 /* LSBs of Full Scale Adjust DAC */
94 #define REG_PD_DACLDO 0x048 /* Powerdown DAC LDOs */
95 #define REG_STAT_DACLDO 0x049 /* DAC LDO Status */
96 #define REG_DECODE_CTRL0 0x04B /* Decoder Control */
97 #define REG_DECODE_CTRL1 0x04C /* Decoder Control */
98 #define REG_DECODE_CTRL2 0x04D /* Decoder Control */
99 #define REG_DECODE_CTRL3 0x04E /* Decoder Control */
100 #define REG_NCO_CLRMODE 0x050 /* NCO CLR Mode */
101 #define REG_NCOKEY_ILSB 0x051 /* NCO Clear on Data Key I lsb */
102 #define REG_NCOKEY_IMSB 0x052 /* NCO Clear on Data Key I msb */
103 #define REG_NCOKEY_QLSB 0x053 /* NCO Clear on Data Key Q lsb */
104 #define REG_NCOKEY_QMSB 0x054 /* NCO Clear on Data Key Q msb */
105 #define REG_PA_THRES0 0x060 /* PDP Threshold */
106 #define REG_PA_THRES1 0x061 /* PDP Threshold */
107 #define REG_PA_AVG_TIME 0x062 /* PDP Control */
108 #define REG_PA_POWER0 0x063 /* PDP Power */
109 #define REG_PA_POWER1 0x064 /* PDP Power */
110 #define REG_CLKCFG0 0x080 /* Clock Configuration */
111 #define REG_SYSREF_ACTRL0 0x081 /* SYSREF Analog Control 0 */
112 #define REG_SYSREF_ACTRL1 0x082 /* SYSREF Analog Control 1 */
113 #define REG_DACPLLCNTRL 0x083 /* Top Level Control DAC Clock PLL */
114 #define REG_DACPLLSTATUS 0x084 /* DAC PLL Status Bits */
115 #define REG_DACINTEGERWORD0 0x085 /* Feedback divider tuning word */
116 #define REG_DACLOOPFILT1 0x087 /* C1 and C2 control */
117 #define REG_DACLOOPFILT2 0x088 /* R1 and C3 control */
118 #define REG_DACLOOPFILT3 0x089 /* Bypass and R2 control */
119 #define REG_DACCPCNTRL 0x08A /* Charge Pump/Cntrl Voltage */
120 #define REG_DACLOGENCNTRL 0x08B /* Logen Control */
121 #define REG_DACLDOCNTRL1 0x08C /* LDO Control1 + Reference Divider */
122 #define REG_CAL_DAC_ERR 0x0E0 /* Report DAC Cal errors */
123 #define REG_CAL_MSB_THRES 0x0E1 /* MSB sweep Threshold definition */
124 #define REG_CAL_CTRL_GLOBAL 0x0E2 /* Global Calibration DAC Control */
125 #define REG_CAL_MSBHILVL 0x0E3 /* High Level for MSB level compare */
126 #define REG_CAL_MSBLOLVL 0x0E4 /* Low Level for MSB level compare */
127 #define REG_CAL_THRESH 0x0E5 /* TAC Threshold definition */
128 #define REG_CAL_AVG_CNT 0x0E6 /* CAL DAC Number of averages */
129 #define REG_CAL_CLKDIV 0x0E7 /* Calibration DAC clock divide */
130 #define REG_CAL_INDX 0x0E8 /* Calibration DAC Select */
131 #define REG_CAL_CTRL 0x0E9 /* Calibration DAC Control */
132 #define REG_CAL_ADDR 0x0EA /* Calibration DAC Address */
133 #define REG_CAL_DATA 0x0EB /* Calibration DAC Data */
134 #define REG_CAL_UPDATE 0x0EC /* Calibration DAC Write Update */
135 #define REG_DATA_FORMAT 0x110 /* Data format */
136 #define REG_DATAPATH_CTRL 0x111 /* Datapath Control */
137 #define REG_INTERP_MODE 0x112 /* Interpolation Mode */
138 #define REG_NCO_FTW_UPDATE 0x113 /* NCO Frequency Tuning Word Update */
139 #define REG_FTW0 0x114 /* NCO Frequency Tuning Word LSB */
140 #define REG_FTW1 0x115 /* NCO Frequency Tuning Word */
141 #define REG_FTW2 0x116 /* NCO Frequency Tuning Word */
142 #define REG_FTW3 0x117 /* NCO Frequency Tuning Word */
143 #define REG_FTW4 0x118 /* NCO Frequency Tuning Word */
144 #define REG_FTW5 0x119 /* NCO Frequency Tuning Word MSB */
145 #define REG_NCO_PHASE_OFFSET0 0x11A /* NCO Phase Offset LSB */
146 #define REG_NCO_PHASE_OFFSET1 0x11B /* NCO Phase Offset MSB */
147 #define REG_NCO_PHASE_ADJ0 0x11C /* I/Q Phase Adjust LSB */
148 #define REG_NCO_PHASE_ADJ1 0x11D /* I/Q Phase Adjust MSB */
149 #define REG_TXEN_FUNC 0x11E /* Transmit Enable function */
150 #define REG_TXEN_SM_0 0x11F /* Transmit enable power control state machine */
151 #define REG_TXEN_SM_1 0x120 /* Rise and fall */
152 #define REG_TXEN_SM_2 0x121 /* Transmit enable maximum A */
153 #define REG_TXEN_SM_3 0x122 /* Transmit enable maximum B */
154 #define REG_TXEN_SM_4 0x123 /* Transmit enable maximum C */
155 #define REG_TXEN_SM_5 0x124 /* Transmit enable maximum D */
156 #define REG_DACOUT_ON_DOWN 0x125 /* DAC out down control and on trigger */
157 #define REG_DACOFF 0x12C /* DAC Shutdown Source */
158 #define REG_DATA_PATH_FLUSH_COUNT0 0x12D /* Data path flush counter LSB */
159 #define REG_DATA_PATH_FLUSH_COUNT1 0x12E /* Data path flush counter MSB */
160 #define REG_DIE_TEMP_CTRL0 0x12F /* Die Temp Range Control */
161 #define REG_DIE_TEMP_CTRL1 0x130 /* Die temperature control register */
162 #define REG_DIE_TEMP_CTRL2 0x131 /* Die temperature control register */
163 #define REG_DIE_TEMP0 0x132 /* Die temp LSB */
164 #define REG_DIE_TEMP1 0x133 /* Die Temp MSB */
165 #define REG_DIE_TEMP_UPDATE 0x134 /* Die temperature update */
166 #define REG_DC_OFFSET_CTRL 0x135 /* DC Offset Control */
167 #define REG_IPATH_DC_OFFSET_1PART0 0x136 /* LSB of first part of DC Offset value for I path */
168 #define REG_IPATH_DC_OFFSET_1PART1 0x137 /* MSB of first part of DC Offset value for I path */
169 #define REG_QPATH_DC_OFFSET_1PART0 0x138 /* LSB of first part of DC Offset value for Q path */
170 #define REG_QPATH_DC_OFFSET_1PART1 0x139 /* MSB of first part of DC Offset value for Q path */
171 #define REG_IPATH_DC_OFFSET_2PART 0x13A /* Second part of DC Offset value for I path */
172 #define REG_QPATH_DC_OFFSET_2PART 0x13B /* Second part of DC Offset value for Q path */
173 #define REG_IDAC_DIG_GAIN0 0x13C /* I DAC Gain LSB */
174 #define REG_IDAC_DIG_GAIN1 0x13D /* I DAC Gain MSB */
175 #define REG_QDAC_DIG_GAIN0 0x13E /* Q DAC Gain LSB */
176 #define REG_QDAC_DIG_GAIN1 0x13F /* Q DAC Gain MSB */
177 #define REG_GAIN_RAMP_UP_STP0 0x140 /* LSB of digital gain rises */
178 #define REG_GAIN_RAMP_UP_STP1 0x141 /* MSB of digital gain rises */
179 #define REG_GAIN_RAMP_DOWN_STP0 0x142 /* LSB of digital gain drops */
180 #define REG_GAIN_RAMP_DOWN_STP1 0x143 /* MSB of digital gain drops */
181 #define REG_BLSM_CTRL 0x146 /* Blanking SM control and func */
182 #define REG_BLSM_STAT 0x147 /* Blanking SM control and func */
183 #define REG_PRBS 0x14B /* PRBS Input Data Checker */
184 #define REG_PRBS_ERROR_I 0x14C /* PRBS Error Counter Real */
185 #define REG_PRBS_ERROR_Q 0x14D /* PRBS Error Counter Imaginary */
186 #define REG_DACPLLT5 0x1B5 /* ALC/Varactor control */
187 #define REG_DACPLLTB 0x1BB /* VCO Bias Control */
188 #define REG_DACPLLTD 0x1BD /* VCO Cal control */
189 #define REG_DACPLLT17 0x1C4 /* Varactor ControlV */
190 #define REG_ASPI_SPARE0 0x1C6 /* Spare Register 0 */
191 #define REG_ASPI_SPARE1 0x1C7 /* Spare Register 1 */
192 #define REG_SPISTRENGTH 0x1DF /* Reg 70 Description */
193 #define REG_CLK_TEST 0x1EB /* Clock related control signaling */
194 #define REG_ATEST_VOLTS 0x1EC /* Analog Test Voltage Extraction */
195 #define REG_ASPI_CLKSRC 0x1ED /* Analog Spi clock source for PD machines */
196 #define REG_MASTER_PD 0x200 /* Master power down for Receiver PHYx */
197 #define REG_PHY_PD 0x201 /* Power down for individual Receiver PHYx */
198 #define REG_GENERIC_PD 0x203 /* Miscellaneous power down controls */
199 #define REG_CDR_OPERATING_MODE_REG_0 0x230 /* Clock and data recovery operating modes */
200 #define REG_EQ_CONFIG_PHY_0_1 0x250 /* Equalizer configuration for PHY 0 and PHY 1 */
201 #define REG_EQ_CONFIG_PHY_2_3 0x251 /* Equalizer configuration for PHY 2 and PHY 3 */
202 #define REG_EQ_CONFIG_PHY_4_5 0x252 /* Equalizer configuration for PHY 4 and PHY 5 */
203 #define REG_EQ_CONFIG_PHY_6_7 0x253 /* Equalizer configuration for PHY 6 and PHY 7 */
204 #define REG_EQ_BIAS_REG 0x268 /* Equalizer bias control */
205 #define REG_SYNTH_ENABLE_CNTRL 0x280 /* Rx PLL enable controls */
206 #define REG_PLL_STATUS 0x281 /* Rx PLL status readbacks */
207 #define REG_REF_CLK_DIVIDER_LDO 0x289 /* Rx PLL LDO control */
208 #define REG_TERM_BLK1_CTRLREG0 0x2A7 /* Termination controls for PHYs 0, 1, 6, and 7 */
209 #define REG_TERM_BLK1_CTRLREG1 0x2A8 /* Termination controls for PHYs 0, 1, 6, and 7 */
210 #define REG_TERM_BLK2_CTRLREG0 0x2AE /* Termination controls for PHYs 2, 3, 4, and 5 */
211 #define REG_TERM_BLK2_CTRLREG1 0x2AF /* Termination controls for PHYs 2, 3, 4, and 5 */
212 #define REG_GENERAL_JRX_CTRL_0 0x300 /* General JRX Control Register 0 */
213 #define REG_GENERAL_JRX_CTRL_1 0x301 /* General JRX Control Register 1 */
214 #define REG_DYN_LINK_LATENCY_0 0x302 /* Register 1 description */
215 #define REG_DYN_LINK_LATENCY_1 0x303 /* Register 2 description */
216 #define REG_LMFC_DELAY_0 0x304 /* Register 3 description */
217 #define REG_LMFC_DELAY_1 0x305 /* Register 4 description */
218 #define REG_LMFC_VAR_0 0x306 /* Register 5 description */
219 #define REG_LMFC_VAR_1 0x307 /* Register 6 description */
220 #define REG_XBAR_LN_0_1 0x308 /* Register 7 description */
221 #define REG_XBAR_LN_2_3 0x309 /* Register 8 description */
222 #define REG_XBAR_LN_4_5 0x30A /* Register 9 description */
223 #define REG_XBAR_LN_6_7 0x30B /* Register 10 description */
224 #define REG_FIFO_STATUS_REG_0 0x30C /* Register 11 description */
225 #define REG_FIFO_STATUS_REG_1 0x30D /* Register 12 description */
226 #define REG_FIFO_STATUS_REG_2 0x30E /* Register 13 description */
227 #define REG_SYNCB_GEN_0 0x311 /* Register 16 description */
228 #define REG_SYNCB_GEN_1 0x312 /* Register 17 description */
229 #define REG_SYNCB_GEN_3 0x313 /* Register 18 description */
230 #define REG_PHY_PRBS_TEST_EN 0x315 /* PHY PRBS TEST ENABLE FOR INDIVIDUAL LANES */
231 #define REG_PHY_PRBS_TEST_CTRL 0x316 /* Reg 20 Description */
232 #define REG_PHY_PRBS_TEST_THRESH_LOBITS 0x317 /* Reg 21 Description */
233 #define REG_PHY_PRBS_TEST_THRESH_MIDBITS 0x318 /* Reg 22 Description */
234 #define REG_PHY_PRBS_TEST_THRESH_HIBITS 0x319 /* Reg 23 Description */
235 #define REG_PHY_PRBS_TEST_ERRCNT_LOBITS 0x31A /* Reg 24 Description */
236 #define REG_PHY_PRBS_TEST_ERRCNT_MIDBITS 0x31B /* Reg 25 Description */
237 #define REG_PHY_PRBS_TEST_ERRCNT_HIBITS 0x31C /* Reg 26 Description */
238 #define REG_PHY_PRBS_TEST_STATUS 0x31D /* Reg 27 Description */
239 #define REG_SHORT_TPL_TEST_0 0x32C /* Reg 46 Description */
240 #define REG_SHORT_TPL_TEST_1 0x32D /* Reg 47 Description */
241 #define REG_SHORT_TPL_TEST_2 0x32E /* Reg 48 Description */
242 #define REG_SHORT_TPL_TEST_3 0x32F /* Reg 49 Description */
243 #define REG_JESD_BIT_INVERSE_CTRL 0x334 /* Reg 42 Description */
244 #define REG_DID_REG 0x400 /* Reg 0 Description */
245 #define REG_BID_REG 0x401 /* Reg 1 Description */
246 #define REG_LID0_REG 0x402 /* Reg 2 Description */
247 #define REG_SCR_L_REG 0x403 /* Reg 3 Description */
248 #define REG_F_REG 0x404 /* Reg 4 Description */
249 #define REG_K_REG 0x405 /* Reg 5 Description */
250 #define REG_M_REG 0x406 /* Reg 6 Description */
251 #define REG_CS_N_REG 0x407 /* Reg 7 Description */
252 #define REG_NP_REG 0x408 /* Reg 8 Description */
253 #define REG_S_REG 0x409 /* Reg 9 Description */
254 #define REG_HD_CF_REG 0x40A /* Reg 10 Description */
255 #define REG_RES1_REG 0x40B /* Reg 11 Description */
256 #define REG_RES2_REG 0x40C /* Reg 12 Description */
257 #define REG_CHECKSUM_REG 0x40D /* Reg 13 Description */
258 #define REG_COMPSUM0_REG 0x40E /* Reg 14 Description */
259 #define REG_LID1_REG 0x412 /* Reg 18 Description */
260 #define REG_CHECKSUM1_REG 0x415 /* Reg 19 Description */
261 #define REG_COMPSUM1_REG 0x416 /* Reg 22 Description */
262 #define REG_LID2_REG 0x41A /* Reg 26 Description */
263 #define REG_CHECKSUM2_REG 0x41D /* Reg 29 Description */
264 #define REG_COMPSUM2_REG 0x41E /* Reg 30 Description */
265 #define REG_LID3_REG 0x422 /* Reg 34 Description */
266 #define REG_CHECKSUM3_REG 0x425 /* Reg 37 Description */
267 #define REG_COMPSUM3_REG 0x426 /* Reg 38 Description */
268 #define REG_LID4_REG 0x42A /* Reg 34 Description */
269 #define REG_CHECKSUM4_REG 0x42D /* Reg 37 Description */
270 #define REG_COMPSUM4_REG 0x42E /* Reg 38 Description */
271 #define REG_LID5_REG 0x432 /* Reg 34 Description */
272 #define REG_CHECKSUM5_REG 0x435 /* Reg 37 Description */
273 #define REG_COMPSUM5_REG 0x436 /* Reg 38 Description */
274 #define REG_LID6_REG 0x43A /* Reg 34 Description */
275 #define REG_CHECKSUM6_REG 0x43D /* Reg 37 Description */
276 #define REG_COMPSUM6_REG 0x43E /* Reg 38 Description */
277 #define REG_LID7_REG 0x442 /* Reg 34 Description */
278 #define REG_CHECKSUM7_REG 0x445 /* Reg 37 Description */
279 #define REG_COMPSUM7_REG 0x446 /* Reg 38 Description */
280 #define REG_ILS_DID 0x450 /* Reg 80 Description */
281 #define REG_ILS_BID 0x451 /* Reg 81 Description */
282 #define REG_ILS_LID0 0x452 /* Reg 82 Description */
283 #define REG_ILS_SCR_L 0x453 /* Reg 83 Description */
284 #define REG_ILS_K 0x455 /* Reg 85 Description */
285 #define REG_ILS_M 0x456 /* Reg 86 Description */
286 #define REG_ILS_CS_N 0x457 /* Reg 87 Description */
287 #define REG_ILS_NP 0x458 /* Reg 88 Description */
288 #define REG_ILS_S 0x459 /* Reg 89 Description */
289 #define REG_ILS_HD_CF 0x45A /* Reg 90 Description */
290 #define REG_ILS_RES1 0x45B /* Reg 91 Description */
291 #define REG_ILS_RES2 0x45C /* Reg 92 Description */
292 #define REG_ILS_CHECKSUM 0x45D /* Reg 93 Description */
293 #define REG_ERRCNTRMON 0x46B /* Reg 107 Description */
294 #define REG_LANEDESKEW 0x46C /* Reg 108 Description */
295 #define REG_BADDISPARITY 0x46D /* Reg 109 Description */
296 #define REG_NITDISPARITY 0x46E /* Reg 110 Description */
297 #define REG_UNEXPECTEDKCHAR 0x46F /* Reg 111 Description */
298 #define REG_CODEGRPSYNCFLG 0x470 /* Reg 112 Description */
299 #define REG_FRAMESYNCFLG 0x471 /* Reg 113 Description */
300 #define REG_GOODCHKSUMFLG 0x472 /* Reg 114 Description */
301 #define REG_INITLANESYNCFLG 0x473 /* Reg 115 Description */
302 #define REG_CTRLREG1 0x476 /* Reg 118 Description */
303 #define REG_CTRLREG2 0x477 /* Reg 119 Description */
304 #define REG_KVAL 0x478 /* Reg 120 Description */
305 #define REG_IRQVECTOR 0x47A /* Reg 122 Description */
306 #define REG_SYNCASSERTIONMASK 0x47B /* Reg 123 Description */
307 #define REG_ERRORTHRES 0x47C /* Reg 124 Description */
308 #define REG_LANEENABLE 0x47D /* Reg 125 Description */
309
310 /*
311 * REG_SPI_INTFCONFA
312 */
313 #define SOFTRESET_M (1 << 7) /* Soft Reset (Mirror) */
314 #define LSBFIRST_M (1 << 6) /* LSB First (Mirror) */
315 #define ADDRINC_M (1 << 5) /* Address Increment (Mirror) */
316 #define SDOACTIVE_M (1 << 4) /* SDO Active (Mirror) */
317 #define SDOACTIVE (1 << 3) /* SDO Active */
318 #define ADDRINC (1 << 2) /* Address Increment */
319 #define LSBFIRST (1 << 1) /* LSB First */
320 #define SOFTRESET (1 << 0) /* Soft Reset */
321
322 /*
323 * REG_SPI_INTFCONFB
324 */
325 #define SINGLEINS (1 << 7) /* Single Instruction */
326 #define CSBSTALL (1 << 6) /* CSb Stalling */
327
328 /*
329 * REG_SPI_DEVCONF
330 */
331 #define DEVSTATUS(x) (((x) & 0xF) << 4) /* Device Status */
332 #define CUSTOPMODE(x) (((x) & 0x3) << 2) /* Customer Operating Mode */
333 #define SYSOPMODE(x) (((x) & 0x3) << 0) /* System Operating Mode */
334
335 /*
336 * REG_SPI_CHIPGRADE
337 */
338 #define PROD_GRADE(x) (((x) & 0xF) << 4) /* Product Grade */
339 #define DEV_REVISION(x) (((x) & 0xF) << 0) /* Device Revision */
340
341 /*
342 * REG_SPI_PAGEINDX
343 */
344 #define PAGEINDX(x) (((x) & 0x3) << 0) /* Page or Index Pointer */
345
346 /*
347 * REG_SPI_MS_UPDATE
348 */
349 #define SLAVEUPDATE (1 << 0) /* M/S Update Bit */
350
351 /*
352 * REG_PWRCNTRL0
353 */
354 #define PD_BG (1 << 7) /* Reference PowerDown */
355 #define PD_DAC_0 (1 << 6) /* PD Ichannel DAC 0 */
356 #define PD_DAC_1 (1 << 5) /* PD Qchannel DAC 1 */
357 #define PD_DAC_2 (1 << 4) /* PD Ichannel DAC 2 */
358 #define PD_DAC_3 (1 << 3) /* PD Qchannel DAC 3 */
359 #define PD_DACM (1 << 2) /* PD Dac master Bias */
360
361 /*
362 * REG_TXENMASK1
363 */
364 #define SYS_MASK (1 << 2) /* SYSREF Receiver TXen mask */
365 #define DACB_MASK (1 << 1) /* Dual B Dac TXen1 mask */
366 #define DACA_MASK (1 << 0) /* Dual A Dac TXen0 mask */
367
368 /*
369 * REG_PWRCNTRL3
370 */
371 #define ENA_PA_CTRL_FROM_PAPROT_ERR (1 << 6) /* Control PDP enable from PAProt block */
372 #define ENA_PA_CTRL_FROM_TXENSM (1 << 5) /* Control PDP enable from Txen State machine */
373 #define ENA_PA_CTRL_FROM_BLSM (1 << 4) /* Control PDP enable from Blanking state machine */
374 #define ENA_PA_CTRL_FROM_SPI (1 << 3) /* Control PDP enable via SPI */
375 #define SPI_PA_CTRL (1 << 2) /* PDP on/off via SPI */
376 #define ENA_SPI_TXEN (1 << 1) /* TXEN from SPI control */
377 #define SPI_TXEN (1 << 0) /* Spi TXEN */
378
379 /*
380 * REG_COARSE_GROUP_DLY
381 */
382 #define COARSE_GROUP_DLY(x) (((x) & 0xF) << 0) /* Coarse group delay */
383
384 /*
385 * REG_IRQ_ENABLE0
386 */
387 #define EN_CALPASS (1 << 7) /* Enable Calib PASS detection */
388 #define EN_CALFAIL (1 << 6) /* Enable Calib FAIL detection */
389 #define EN_DACPLLLOST (1 << 5) /* Enable DAC Pll Lost detection */
390 #define EN_DACPLLLOCK (1 << 4) /* Enable DAC Pll Lock detection */
391 #define EN_SERPLLLOST (1 << 3) /* Enable Serdes PLL Lost detection */
392 #define EN_SERPLLLOCK (1 << 2) /* Enable Serdes PLL Lock detection */
393 #define EN_LANEFIFOERR (1 << 1) /* Enable Lane FIFO Error detection */
394 #define EN_DRDLFIFOERR (1 << 0) /* Enable DRDL FIFO Error detection */
395
396 /*
397 * REG_IRQ_ENABLE1
398 */
399 #define EN_PARMBAD (1 << 7) /* enable BAD Parameter interrupt */
400 #define EN_PRBSQ1 (1 << 3) /* enable PRBS imag DAC B interrupt */
401 #define EN_PRBSI1 (1 << 2) /* enable PRBS real DAC B interrupt */
402 #define EN_PRBSQ0 (1 << 1) /* enable PRBS imag DAC A interrupt */
403 #define EN_PRBSI0 (1 << 0) /* enable PRBS real DAC A interrupt */
404
405 /*
406 * REG_IRQ_ENABLE2
407 */
408 #define EN_PAERR0 (1 << 7) /* Link A PA Error */
409 #define EN_BIST_DONE0 (1 << 6) /* Link A BIST done */
410 #define EN_BLNKDONE0 (1 << 5) /* Link A Blanking done */
411 #define EN_REFNCOCLR0 (1 << 4) /* Link A Nco Clear Tripped */
412 #define EN_REFLOCK0 (1 << 3) /* Link A Alignment Locked */
413 #define EN_REFROTA0 (1 << 2) /* Link A Alignment Rotate */
414 #define EN_REFWLIM0 (1 << 1) /* Link A Over/Under Threshold */
415 #define EN_REFTRIP0 (1 << 0) /* Link A Alignment Trip */
416
417 /*
418 * REG_IRQ_ENABLE3
419 */
420 #define EN_PAERR1 (1 << 7) /* Link B PA Error */
421 #define EN_BIST_DONE1 (1 << 6) /* Link B BIST done */
422 #define EN_BLNKDONE1 (1 << 5) /* Link B Blanking done */
423 #define EN_REFNCOCLR1 (1 << 4) /* Link B Nco Clear Tripped */
424 #define EN_REFLOCK1 (1 << 3) /* Link B Alignment Locked */
425 #define EN_REFROTA1 (1 << 2) /* Link B Alignment Rotate */
426 #define EN_REFWLIM1 (1 << 1) /* Link B Over/Under Threshold */
427 #define EN_REFTRIP1 (1 << 0) /* Link B Alignment Trip */
428
429 /*
430 * REG_IRQ_STATUS0
431 */
432 #define IRQ_CALPASS (1 << 7) /* Calib PASS detection */
433 #define IRQ_CALFAIL (1 << 6) /* Calib FAIL detection */
434 #define IRQ_DACPLLLOST (1 << 5) /* DAC PLL Lost */
435 #define IRQ_DACPLLLOCK (1 << 4) /* DAC PLL Lock */
436 #define IRQ_SERPLLLOST (1 << 3) /* Serdes PLL Lost */
437 #define IRQ_SERPLLLOCK (1 << 2) /* Serdes PLL Lock */
438 #define IRQ_LANEFIFOERR (1 << 1) /* Lane Fifo Error */
439 #define IRQ_DRDLFIFOERR (1 << 0) /* DRDL Fifo Error */
440
441 /*
442 * REG_IRQ_STATUS1
443 */
444 #define IRQ_PARMBAD (1 << 7) /* BAD Parameter interrupt */
445 #define IRQ_PRBSQ1 (1 << 3) /* PRBS data check error DAC 1 imag */
446 #define IRQ_PRBSI1 (1 << 2) /* PRBS data check error DAC 1 real */
447 #define IRQ_PRBSQ0 (1 << 1) /* PRBS data check error DAC 0 imag */
448 #define IRQ_PRBSI0 (1 << 0) /* PRBS data check error DAC 0 real */
449
450 /*
451 * REG_IRQ_STATUS2
452 */
453 #define IRQ_PAERR0 (1 << 7) /* Link A PA Error */
454 #define IRQ_BIST_DONE0 (1 << 6) /* Link A BIST done */
455 #define IRQ_BLNKDONE0 (1 << 5) /* Link A Blanking Done */
456 #define IRQ_REFNCOCLR0 (1 << 4) /* Link A Alignment UnderRange */
457 #define IRQ_REFLOCK0 (1 << 3) /* Link A BIST done */
458 #define IRQ_REFROTA0 (1 << 2) /* Link A Alignment Trip */
459 #define IRQ_REFWLIM0 (1 << 1) /* Link A Alignment Lock */
460 #define IRQ_REFTRIP0 (1 << 0) /* Link A Alignment Rotate */
461
462 /*
463 * REG_IRQ_STATUS3
464 */
465 #define IRQ_PAERR1 (1 << 7) /* Link B PA Error */
466 #define IRQ_BIST_DONE1 (1 << 6) /* Link B BIST done */
467 #define IRQ_BLNKDONE1 (1 << 5) /* Link A Blanking Done */
468 #define IRQ_REFNCOCLR1 (1 << 4) /* Link B Alignment UnderRange */
469 #define IRQ_REFLOCK1 (1 << 3) /* Link B BIST done */
470 #define IRQ_REFROTA1 (1 << 2) /* Link B Alignment Trip */
471 #define IRQ_REFWLIM1 (1 << 1) /* Link B Alignment Lock */
472 #define IRQ_REFTRIP1 (1 << 0) /* Link B Alignment Rotate */
473
474 /*
475 * REG_JESD_CHECKS
476 */
477 #define ERR_DLYOVER (1 << 5) /* LMFC_Delay > JESD_K parameter */
478 #define ERR_WINLIMIT (1 << 4) /* Unsupported Window Limit */
479 #define ERR_JESDBAD (1 << 3) /* Unsupported M/L/S/F selection */
480 #define ERR_KUNSUPP (1 << 2) /* Unsupported K values */
481 #define ERR_SUBCLASS (1 << 1) /* Unsupported SubClassv value */
482 #define ERR_INTSUPP (1 << 0) /* Unsupported Interpolation rate factor */
483
484 /*
485 * REG_SYNC_TESTCTRL
486 */
487 #define TARRFAPHAZ (1 << 0) /* Target Polarity of Rf Divider */
488 #define SYNCBYPASS(x) (((x) & 0x3) << 6) /* Sync Bypass handshaking */
489
490 /*
491 * REG_SYNC_DACDELAY_H
492 */
493 #define DAC_DELAY_H (1 << 0) /* Dac Delay[8] */
494
495 /*
496 * REG_SYNC_ERRWINDOW
497 */
498 #define ERRWINDOW(x) (((x) & 0x7) << 0) /* Sync Error Window */
499
500 /*
501 * REG_SYNC_LASTERR_H
502 */
503 #define LASTUNDER (1 << 7) /* Sync Last Error Under Flag */
504 #define LASTOVER (1 << 6) /* Sync Last Error Over Flag */
505 #define LASTERROR_H (1 << 0) /* Sync Last Error[8] and Flags */
506
507 /*
508 * REG_SYNC_CTRL
509 */
510 #define SYNCENABLE (1 << 7) /* SyncLogic Enable */
511 #define SYNCARM (1 << 6) /* Sync Arming Strobe */
512 #define SYNCCLRSTKY (1 << 5) /* Sync Sticky Bit Clear */
513 #define SYNCCLRLAST (1 << 4) /* Sync Clear LAST_ */
514 #define SYNCMODE(x) (((x) & 0xF) << 0) /* Sync Mode */
515
516 /*
517 * REG_SYNC_STATUS
518 */
519 #define REFBUSY (1 << 7) /* Sync Machine Busy */
520 #define REFLOCK (1 << 3) /* Sync Alignment Locked */
521 #define REFROTA (1 << 2) /* Sync Rotated */
522 #define REFWLIM (1 << 1) /* Sync Alignment Limit Range */
523 #define REFTRIP (1 << 0) /* Sync Tripped after Arming */
524
525 /*
526 * REG_SYNC_CURRERR_H
527 */
528 #define CURRUNDER (1 << 7) /* Sync Current Error Under Flag */
529 #define CURROVER (1 << 6) /* Sync Current Error Over Flag */
530 #define CURRERROR_H (1 << 0) /* SyncCurrent Error[8] */
531
532 /*
533 * REG_ERROR_THERM
534 */
535 #define THRMOLD (1 << 7) /* Error is from a prior sample */
536 #define THRMOVER (1 << 4) /* Error > +WinLimit */
537 #define THRMPOS (1 << 3) /* Sync Current Error Under Flag */
538 #define THRMZERO (1 << 2) /* Error = 0 */
539 #define THRMNEG (1 << 1) /* Error < 0 */
540 #define THRMUNDER (1 << 0) /* Error < -WinLimit */
541
542 /*
543 * REG_DACGAIN0_1
544 */
545 #define DACGAIN_IM0(x) (((x) & 0x3) << 0) /* I Channel DAC gain <9:8> Dual A */
546
547 /*
548 * REG_DACGAIN1_1
549 */
550 #define DACGAIN_IM1(x) (((x) & 0x3) << 0) /* Q Channel DAC gain <9:8> Dual A */
551
552 /*
553 * REG_DACGAIN2_1
554 */
555 #define DACGAIN_IM2(x) (((x) & 0x3) << 0) /* I Channel DAC gain <9:8> Dual B */
556
557 /*
558 * REG_DACGAIN3_1
559 */
560 #define DACGAIN_IM3(x) (((x) & 0x3) << 0) /* Q Channel DAC gain <9:8> Dual B */
561
562 /*
563 * REG_PD_DACLDO
564 */
565 #define ENB_DACLDO3 (1 << 7) /* Disable DAC3 ldo */
566 #define ENB_DACLDO2 (1 << 6) /* Disable DAC2 ldo */
567 #define ENB_DACLDO1 (1 << 5) /* Disable DAC1 ldo */
568 #define ENB_DACLDO0 (1 << 4) /* Disable DAC0 ldo */
569
570 /*
571 * REG_STAT_DACLDO
572 */
573 #define STAT_LDO3 (1 << 3) /* DAC3 LDO status */
574 #define STAT_LDO2 (1 << 2) /* DAC2 LDO status */
575 #define STAT_LDO1 (1 << 1) /* DAC1 LDO status */
576 #define STAT_LDO0 (1 << 0) /* DAC0 LDO status */
577
578 /*
579 * REG_DECODE_CTRL0
580 */
581 #define SHUFFLE_MSB0 (1 << 2) /* MSB shuffling mode */
582 #define SHUFFLE_ISB0 (1 << 1) /* ISB shuffling mode */
583
584 /*
585 * REG_DECODE_CTRL1
586 */
587 #define SHUFFLE_MSB1 (1 << 2) /* MSB shuffling mode */
588 #define SHUFFLE_ISB1 (1 << 1) /* ISB shuffling mode */
589
590 /*
591 * REG_DECODE_CTRL2
592 */
593 #define SHUFFLE_MSB2 (1 << 2) /* MSB shuffling mod */
594 #define SHUFFLE_ISB2 (1 << 1) /* ISB shuffling mode */
595
596 /*
597 * REG_DECODE_CTRL3
598 */
599 #define SHUFFLE_MSB3 (1 << 2) /* MSB shuffling mode */
600 #define SHUFFLE_ISB3 (1 << 1) /* ISB shuffling mode */
601
602 /*
603 * REG_NCO_CLRMODE
604 */
605 #define NCOCLRARM (1 << 7) /* Arm NCO Clear */
606 #define NCOCLRMTCH (1 << 5) /* NCO Clear Data Match */
607 #define NCOCLRPASS (1 << 4) /* NCO Clear PASSed */
608 #define NCOCLRFAIL (1 << 3) /* NCO Clear FAILed */
609 #define NCOCLRMODE(x) (((x) & 0x3) << 0) /* NCO Clear Mode */
610
611 /*
612 * REG_PA_THRES1
613 */
614 #define PA_THRESH_MSB(x) (((x) & 0x1F) << 0) /* Average power threshold for comparison. */
615
616 /*
617 * REG_PA_AVG_TIME
618 */
619 #define PA_ENABLE (1 << 7) /* 1 = Enable average power calculation and error detection */
620 #define PA_BUS_SWAP (1 << 6) /* Swap channelA or channelB databus for power calculation */
621 #define PA_AVG_TIME(x) (((x) & 0xF) << 0) /* Set power average time */
622
623 /*
624 * REG_PA_POWER1
625 */
626 #define PA_POWER_MSB(x) (((x) & 0x1F) << 0) /* average power bus = I^2+Q^2 (I/Q use 6MSB of databus) */
627
628 /*
629 * REG_CLKCFG0
630 */
631 #define PD_CLK01 (1 << 7) /* Powerdown clock for Dual A */
632 #define PD_CLK23 (1 << 6) /* Powerdown clock for Dual B */
633 #define PD_CLK_DIG (1 << 5) /* Powerdown clocks to all DACs */
634 #define PD_PCLK (1 << 4) /* Cal reference/Serdes PLL clock powerdown */
635 #define PD_CLK_REC (1 << 3) /* Clock reciever powerdown */
636
637 /*
638 * REG_SYSREF_ACTRL0
639 */
640 #define PD_SYSREF (1 << 4) /* Powerdown SYSREF buffer */
641 #define HYS_ON (1 << 3) /* Hysteresis enabled */
642 #define SYSREF_RISE (1 << 2) /* Use SYSREF rising edge */
643 #define HYS_CNTRL1(x) (((x) & 0x3) << 0) /* Hysteresis control bits <9:8> */
644
645 /*
646 * REG_DACPLLCNTRL
647 */
648 #define SYNTH_RECAL (1 << 7) /* Recalibrate VCO Band */
649 #define ENABLE_SYNTH (1 << 4) /* Synthesizer Enable */
650
651 /*
652 * REG_DACPLLSTATUS
653 */
654 #define CP_CAL_VALID (1 << 5) /* Charge Pump Cal Valid */
655 #define RFPLL_LOCK (1 << 1) /* PLL Lock bit */
656
657 /*
658 * REG_DACLOOPFILT1
659 */
660 #define LF_C2_WORD(x) (((x) & 0xF) << 4) /* C2 control word */
661 #define LF_C1_WORD(x) (((x) & 0xF) << 0) /* C1 control word */
662
663 /*
664 * REG_DACLOOPFILT2
665 */
666 #define LF_R1_WORD(x) (((x) & 0xF) << 4) /* R1 control word */
667 #define LF_C3_WORD(x) (((x) & 0xF) << 0) /* C3 control word */
668
669 /*
670 * REG_DACLOOPFILT3
671 */
672 #define LF_BYPASS_R3 (1 << 7) /* Bypass R3 res */
673 #define LF_BYPASS_R1 (1 << 6) /* Bypass R1 res */
674 #define LF_BYPASS_C2 (1 << 5) /* Bypass C2 cap */
675 #define LF_BYPASS_C1 (1 << 4) /* Bypass C1 cap */
676 #define LF_R3_WORD(x) (((x) & 0xF) << 0) /* R3 Control Word */
677
678 /*
679 * REG_DACCPCNTRL
680 */
681 #define CP_CURRENT(x) (((x) & 0x3F) << 0) /* Charge Pump Current Control */
682
683 /*
684 * REG_DACLOGENCNTRL
685 */
686 #define LO_DIV_MODE(x) (((x) & 0x3) << 0) /* Logen_Division */
687
688 /*
689 * REG_DACLDOCNTRL1
690 */
691 #define REF_DIVRATE(x) (((x) & 0x7) << 0) /* Reference Clock Division Ratio */
692
693 /*
694 * REG_CAL_DAC_ERR
695 */
696 #define INIT_SWEEP_ERR_DAC (1 << 1) /* Initial setup sweep failed */
697 #define MSB_SWEEP_ERR_DAC (1 << 0) /* MSB sweep failed */
698
699 /*
700 * REG_CAL_MSB_THRES
701 */
702 #define CAL_MSB_TAC(x) (((x) & 0x7) << 0) /* MSB sweep TAC */
703
704 /*
705 * REG_CAL_CTRL_GLOBAL
706 */
707 #define CAL_START_GL (1 << 1) /* Global Calibration start */
708 #define CAL_EN_GL (1 << 0) /* Global Calibration enable */
709
710 /*
711 * REG_CAL_MSBHILVL
712 */
713 #define CAL_MSBLVLHI(x) (((x) & 0x3F) << 0) /* High level limit for msb sweep average */
714
715 /*
716 * REG_CAL_MSBLOLVL
717 */
718 #define CAL_MSBLVLLO(x) (((x) & 0x3F) << 0) /* Low level limit for msb sweep average */
719
720 /*
721 * REG_CAL_THRESH
722 */
723 #define CAL_LTAC_THRES(x) (((x) & 0x7) << 3) /* Long TAC threshold */
724 #define CAL_TAC_THRES(x) (((x) & 0x7) << 0) /* TAC threshold */
725
726 /*
727 * REG_CAL_AVG_CNT
728 */
729 #define MSB_GLOBAL_SUBAVG(x) (((x) & 0x3) << 6) /* Local Averages for MSB in Global Calibration */
730 #define GLOBAL_AVG_CNT(x) (((x) & 0x7) << 3) /* Global avg Terminal count */
731 #define LOCAL_AVRG_CNT(x) (((x) & 0x7) << 0) /* Local avg terminal count */
732
733 /*
734 * REG_CAL_CLKDIV
735 */
736 #define CAL_CLKDIV(x) (((x) & 0xF) << 0) /* Calibration clock divider */
737
738 /*
739 * REG_CAL_INDX
740 */
741 #define CAL_INDX(x) (((x) & 0xF) << 0) /* DAC Calibration Index paging bits */
742
743 /*
744 * REG_CAL_CTRL
745 */
746 #define CAL_FIN (1 << 7) /* Calibration finished */
747 #define CAL_ACTIVE (1 << 6) /* Calibration active */
748 #define CAL_ERRHI (1 << 5) /* SAR data error: too hi */
749 #define CAL_ERRLO (1 << 4) /* SAR data error: too lo */
750 #define CAL_TXDACBYDAC (1 << 3) /* Calibration of TXDAC by TXDAC */
751 #define CAL_START (1 << 1) /* Calibration start */
752 #define CAL_EN (1 << 0) /* Calibration enable */
753
754 /*
755 * REG_CAL_ADDR
756 */
757 #define CAL_ADDR(x) (((x) & 0x3F) << 0) /* Calibration DAC address */
758
759 /*
760 * REG_CAL_DATA
761 */
762 #define CAL_DATA(x) (((x) & 0x3F) << 0) /* Calibration DAC Coefficient Data */
763
764 /*
765 * REG_CAL_UPDATE
766 */
767 #define CAL_UPDATE (1 << 7) /* Calibration DAC Coefficient Update */
768
769 /*
770 * REG_DATA_FORMAT
771 */
772 #define BINARY_FORMAT (1 << 7) /* Binary or 2's complementary format on DATA bus */
773
774 /*
775 * REG_DATAPATH_CTRL
776 */
777 #define INVSINC_ENABLE (1 << 7) /* 1 = Enable inver sinc filter */
778 #define DIG_GAIN_ENABLE (1 << 5) /* 1 = Enable digital gain */
779 #define PHASE_ADJ_ENABLE (1 << 4) /* 1 = Enable phase compensation */
780 #define SEL_SIDEBAND (1 << 1) /* 1 = Select upper or lower sideband from modulation result */
781 #define I_TO_Q (1 << 0) /* 1 = send I datapath into Q DAC */
782 #define MODULATION_TYPE(x) (((x) & 0x3) << 2) /* selects type of modulation operation */
783
784 /*
785 * REG_INTERP_MODE
786 */
787 #define INTERP_MODE(x) (((x) & 0x7) << 0) /* Interpolation Mode */
788
789 /*
790 * REG_NCO_FTW_UPDATE
791 */
792 #define FTW_UPDATE_ACK (1 << 1) /* Frequency Tuning Word Update Acknowledge */
793 #define FTW_UPDATE_REQ (1 << 0) /* Frequency Tuning Word Update Request from SPI */
794
795 /*
796 * REG_TXEN_FUNC
797 */
798 #define TX_DIG_CLK_PD (1 << 0) /* 1 = Digital clocks will be shut down when Tx_enable pin is low. */
799
800 /*
801 * REG_TXEN_SM_0
802 */
803 #define GP_PA_ON_INVERT (1 << 2) /* External Modulator polarity invert */
804 #define GP_PA_CTRL (1 << 1) /* External PA control */
805 #define TXEN_SM_EN (1 << 0) /* Enable TXEN state machine */
806 #define PA_FALL(x) (((x) & 0x3) << 6) /* PA fall control */
807 #define PA_RISE(x) (((x) & 0x3) << 4) /* PA rises control */
808
809 /*
810 * REG_TXEN_SM_1
811 */
812 #define DIG_FALL(x) (((x) & 0x3) << 6) /* DIG_FALL */
813 #define DIG_RISE(x) (((x) & 0x3) << 4) /* DIG_RISE */
814 #define DAC_FALL(x) (((x) & 0x3) << 2) /* DAC_FALL */
815 #define DAC_RISE(x) (((x) & 0x3) << 0) /* DAC_RISE */
816
817 /*
818 * REG_DACOUT_ON_DOWN
819 */
820 #define DACOUT_SHUTDOWN (1 << 1) /* Shut down DAC output. 1 means DAC get shut down manually. */
821 #define DACOUT_ON_TRIGGER (1 << 0) /* Turn on DAC output manually. Self clear signal. */
822
823 /*
824 * REG_DACOFF
825 */
826 #define PROTECT_MODE (1 << 7) /* PROTECT_MODE */
827 #define DACOFF_AVG_PW (1 << 0) /* DACOFF_AVG_PW */
828
829 /*
830 * REG_DIE_TEMP_CTRL0
831 */
832 #define ADC_TESTMODE (1 << 7) /* ADC_TESTMODE */
833 #define AUXADC_ENABLE (1 << 0) /* AUXADC_ENABLE */
834 #define FS_CURRENT(x) (((x) & 0x7) << 4) /* FS_CURRENT */
835 #define REF_CURRENT(x) (((x) & 0x7) << 1) /* REF_CURRENT */
836
837 /*
838 * REG_DIE_TEMP_CTRL1
839 */
840 #define SELECT_CLKDIG (1 << 3) /* SELECT_CLKDIG */
841 #define EN_DIV2 (1 << 2) /* EN_DIV2 */
842 #define INCAP_CTRL(x) (((x) & 0x3) << 0) /* INCAP_CTRL */
843
844 /*
845 * REG_DIE_TEMP_UPDATE
846 */
847 #define DIE_TEMP_UPDATE (1 << 0) /* Die temperature update */
848
849 /*
850 * REG_DC_OFFSET_CTRL
851 */
852 #define DISABLE_NOISE (1 << 1) /* DISABLE_NOISE */
853 #define DC_OFFSET_ON (1 << 0) /* DC_OFFSET_ON */
854
855 /*
856 * REG_IPATH_DC_OFFSET_2PART
857 */
858 #define IPATH_DC_OFFSET_2PART(x) (((x) & 0x1F) << 0) /* second part of DC Offset value for I path */
859
860 /*
861 * REG_QPATH_DC_OFFSET_2PART
862 */
863 #define QPATH_DC_OFFSET_2PART(x) (((x) & 0x1F) << 0) /* second part of DC Offset value for Q path */
864
865 /*
866 * REG_IDAC_DIG_GAIN1
867 */
868 #define IDAC_DIG_GAIN1(x) (((x) & 0xF) << 0) /* MSB of I DAC digital gain */
869
870 /*
871 * REG_QDAC_DIG_GAIN1
872 */
873 #define QDAC_DIG_GAIN1(x) (((x) & 0xF) << 0) /* MSB of Q DAC digital gain */
874
875 /*
876 * REG_GAIN_RAMP_UP_STP1
877 */
878 #define GAIN_RAMP_UP_STP1(x) (((x) & 0xF) << 0) /* MSB of digital gain rises */
879
880 /*
881 * REG_GAIN_RAMP_DOWN_STP1
882 */
883 #define GAIN_RAMP_DOWN_STP1(x) (((x) & 0xF) << 0) /* MSB of digital gain drops */
884
885 /*
886 * REG_BLSM_CTRL
887 */
888 #define RESET_BLSM (1 << 7) /* Soft rest to the new Blanking SM */
889 #define EN_FORCE_GAIN_SOFT_OFF (1 << 4) /* Enable forcing gan_soft_off from SPI */
890 #define GAIN_SOFT_OFF (1 << 3) /* gain_soft_off forced value */
891 #define GAIN_SOFT_ON (1 << 2) /* gain_soft_on forced value */
892 #define EN_FORCE_GAIN_SOFT_ON (1 << 1) /* Force the gain_soft_on from SPI */
893
894 /*
895 * REG_BLSM_STAT
896 */
897 #define SOFT_OFF_DONE (1 << 5) /* Blanking SoftOff Enable */
898 #define SOFT_ON_DONE (1 << 4) /* Blanking SoftOn Done */
899 #define GAIN_SOFT_OFF_RB (1 << 3) /* gain soft off readback */
900 #define GAIN_SOFT_ON_RB (1 << 2) /* gain soft on readback */
901 #define SOFT_OFF_EN_RB (1 << 1) /* Blanking SM soft Off read back */
902 #define SOFT_ON_EN_RB (1 << 0) /* Blanking SM soft On read back */
903 #define SOFTBLANKRB(x) (((x) & 0x3) << 6) /* Blanking State */
904
905 /*
906 * REG_PRBS
907 */
908 #define PRBS_GOOD_Q (1 << 7) /* Good data indicator imaginary channel */
909 #define PRBS_GOOD_I (1 << 6) /* Good data indicator real channel */
910 #define PRBS_INV_Q (1 << 4) /* Data Inversion imaginary channel */
911 #define PRBS_INV_I (1 << 3) /* Data Inversion real channel */
912 #define PRBS_MODE (1 << 2) /* Polynomial Select */
913 #define PRBS_RESET (1 << 1) /* Reset Error Counters */
914 #define PRBS_EN (1 << 0) /* Enable PRBS Checker */
915
916 /*
917 * REG_DACPLLT5
918 */
919 #define VCO_VAR(x) (((x) & 0xF) << 0) /* Varactor KVO setting */
920
921 /*
922 * REG_DACPLLTB
923 */
924 #define VCO_BIAS_REF(x) (((x) & 0x7) << 0) /* VCO Bias control */
925
926 /*
927 * REG_DACPLLTD
928 */
929 #define VCO_CAL_REF_MON (1 << 3) /* Sent control voltage to outside world */
930 #define VCO_CAL_REF_TCF(x) (((x) & 0x7) << 0) /* TempCo for cal ref */
931
932 /*
933 * REG_DACPLLT17
934 */
935 #define VCO_VAR_REF_TCF(x) (((x) & 0x7) << 4) /* Varactor Reference TempCo */
936 #define VCO_VAR_OFF(x) (((x) & 0xF) << 0) /* Varactor Offset */
937
938 /*
939 * REG_SPISTRENGTH
940 */
941 #define SPIDRV(x) (((x) & 0xF) << 0) /* Slew and drive strength for cmos interface */
942
943 /*
944 * REG_CLK_TEST
945 */
946 #define DUTYCYCLEON (1 << 0) /* Clock Duty Cycle Control On */
947
948 /*
949 * REG_ATEST_VOLTS
950 */
951 #define ATEST_EN (1 << 0) /* Enable Analog Test Mode */
952 #define ATEST_TOPVSEL(x) (((x) & 0x3) << 5) /* Which source at analog top to use */
953 #define ATEST_DACSEL(x) (((x) & 0x3) << 3) /* DAC from which to get voltage */
954 #define ATEST_VSEL(x) (((x) & 0x3) << 1) /* DAC Voltage to Select */
955
956 /*
957 * REG_ASPI_CLKSRC
958 */
959 #define EN_CLKDIV (1 << 3) /* Enable the fdac/8 clock path to generate PD timing clock */
960 #define ASPI_OSC_RATE (1 << 2) /* Aspi Oscillator Rate */
961 #define ASPI_CLK_SRC (1 << 1) /* Choose Aspi Clock Source */
962 #define EN_ASPI_OSC (1 << 0) /* Enable Aspi Oscillator clock */
963
964 /*
965 * REG_MASTER_PD
966 */
967 #define SPI_PD_MASTER (1 << 0)
968
969 /*
970 * REG_GENERIC_PD
971 */
972 #define SPI_SYNC1_PD (1 << 1)
973 #define SPI_SYNC2_PD (1 << 0)
974
975 /*
976 * REG_CDR_OPERATING_MODE_REG_0
977 */
978 #define SPI_ENHALFRATE (1 << 5)
979 #define SPI_DIVISION_RATE(x) (((x) & 0x3) << 1)
980
981 /*
982 * REG_EQ_CONFIG_PHY_0_1
983 */
984 #define SPI_EQ_CONFIG1(x) (((x) & 0xF) << 4)
985 #define SPI_EQ_CONFIG0(x) (((x) & 0xF) << 0)
986
987 /*
988 * REG_EQ_CONFIG_PHY_2_3
989 */
990 #define SPI_EQ_CONFIG3(x) (((x) & 0xF) << 4)
991 #define SPI_EQ_CONFIG2(x) (((x) & 0xF) << 0)
992
993 /*
994 * REG_EQ_CONFIG_PHY_4_5
995 */
996 #define SPI_EQ_CONFIG5(x) (((x) & 0xF) << 4)
997 #define SPI_EQ_CONFIG4(x) (((x) & 0xF) << 0)
998
999 /*
1000 * REG_EQ_CONFIG_PHY_6_7
1001 */
1002 #define SPI_EQ_CONFIG7(x) (((x) & 0xF) << 4)
1003 #define SPI_EQ_CONFIG6(x) (((x) & 0xF) << 0)
1004
1005 /*
1006 * REG_EQ_BIAS_REG
1007 */
1008 #define SPI_EQ_EXTRA_SPI_LSBITS(x) (((x) & 0x3) << 6)
1009 #define SPI_EQ_BIASPTAT(x) (((x) & 0x7) << 3)
1010 #define SPI_EQ_BIASPLY(x) (((x) & 0x7) << 0)
1011
1012 /*
1013 * REG_SYNTH_ENABLE_CNTRL
1014 */
1015 #define SPI_RECAL_SYNTH (1 << 2)
1016 #define SPI_ENABLE_SYNTH (1 << 0)
1017
1018 /*
1019 * REG_PLL_STATUS
1020 */
1021 #define SPI_CP_CAL_VALID_RB (1 << 3)
1022 #define SPI_PLL_LOCK_RB (1 << 0)
1023
1024 /*
1025 * REG_REF_CLK_DIVIDER_LDO
1026 */
1027 #define SPI_CDR_OVERSAMP(x) (((x) & 0x3) << 0)
1028
1029 /*
1030 * REG_TERM_BLK1_CTRLREG0
1031 */
1032 #define SPI_I_TUNE_R_CAL_TERMBLK1 (1 << 0)
1033
1034 /*
1035 * REG_TERM_BLK2_CTRLREG0
1036 */
1037 #define SPI_I_TUNE_R_CAL_TERMBLK2 (1 << 0)
1038
1039 /*
1040 * REG_GENERAL_JRX_CTRL_0
1041 */
1042 #define CHECKSUM_MODE (1 << 6) /* Checksum mode */
1043 #define LINK_MODE (1 << 3) /* Link mode */
1044 #define SEL_REG_MAP_1 (1 << 2) /* Link register map selection */
1045 #define LINK_EN(x) (((x) & 0x3) << 0) /* Link enable */
1046
1047 /*
1048 * REG_GENERAL_JRX_CTRL_1
1049 */
1050 #define SUBCLASSV_LOCAL(x) (((x) & 0x7) << 0) /* JESD204B subclass */
1051
1052 /*
1053 * REG_DYN_LINK_LATENCY_0
1054 */
1055 #define DYN_LINK_LATENCY_0(x) (((x) & 0x1F) << 0) /* Dynamic link latency: Link 0 */
1056
1057 /*
1058 * REG_DYN_LINK_LATENCY_1
1059 */
1060 #define DYN_LINK_LATENCY_1(x) (((x) & 0x1F) << 0) /* Dynamic link latency: Link 1 */
1061
1062 /*
1063 * REG_LMFC_DELAY_0
1064 */
1065 #define LMFC_DELAY_0(x) (((x) & 0x1F) << 0) /* LMFC delay: Link 0 */
1066
1067 /*
1068 * REG_LMFC_DELAY_1
1069 */
1070 #define LMFC_DELAY_1(x) (((x) & 0x1F) << 0) /* LMFC delay: Link 1 */
1071
1072 /*
1073 * REG_LMFC_VAR_0
1074 */
1075 #define LMFC_VAR_0(x) (((x) & 0x1F) << 0) /* Location in RX LMFC where JESD words are read out from buffer */
1076
1077 /*
1078 * REG_LMFC_VAR_1
1079 */
1080 #define LMFC_VAR_1(x) (((x) & 0x1F) << 0) /* Location in RX LMFC where JESD words are read out from buffer */
1081
1082 /*
1083 * REG_XBAR_LN_0_1
1084 */
1085 #define SRC_LANE1(x) (((x) & 0x7) << 3) /* Logic Lane 1 source */
1086 #define SRC_LANE0(x) (((x) & 0x7) << 0) /* Logic Lane 0 source */
1087
1088 /*
1089 * REG_XBAR_LN_2_3
1090 */
1091 #define SRC_LANE3(x) (((x) & 0x7) << 3) /* Logic Lane 3 source */
1092 #define SRC_LANE2(x) (((x) & 0x7) << 0) /* Logic Lane 2 source */
1093
1094 /*
1095 * REG_XBAR_LN_4_5
1096 */
1097 #define SRC_LANE5(x) (((x) & 0x7) << 3) /* Logic Lane 5 source */
1098 #define SRC_LANE4(x) (((x) & 0x7) << 0) /* Logic Lane 4 source */
1099
1100 /*
1101 * REG_XBAR_LN_6_7
1102 */
1103 #define SRC_LANE7(x) (((x) & 0x7) << 3) /* Logic Lane 7 source */
1104 #define SRC_LANE6(x) (((x) & 0x7) << 0) /* Logic Lane 6 source */
1105
1106 /*
1107 * REG_FIFO_STATUS_REG_2
1108 */
1109 #define DRDL_FIFO_EMPTY (1 << 1) /* Deterministic latency (DRDL) FIFO is between JESD204B receiver and DAC2 and DAC3 */
1110 #define DRDL_FIFO_FULL (1 << 0) /* DRDL FIFO is between JESD204B receiver and DAC2 and DAC3 */
1111
1112 /*
1113 * REG_SYNCB_GEN_0
1114 */
1115 #define EOMF_MASK_1 (1 << 3) /* EOMF_MASK_1 */
1116 #define EOMF_MASK_0 (1 << 2) /* EOMF_MASK_0 */
1117 #define EOF_MASK_1 (1 << 1) /* Mask EOF from QBD_1 */
1118 #define EOF_MASK_0 (1 << 0) /* Mask EOF from QBD_0 */
1119
1120 /*
1121 * REG_SYNCB_GEN_1
1122 */
1123 #define SYNCB_ERR_DUR(x) (((x) & 0xF) << 4) /* Duration of SYNCOUT low for the purpose of error reporting */
1124 #define SYNCB_SYNCREQ_DUR(x) (((x) & 0xF) << 0) /* Duration of SYNCOUT low for purpose of synchronization request */
1125
1126 /*
1127 * REG_PHY_PRBS_TEST_CTRL
1128 */
1129 #define PHY_TEST_START (1 << 1) /* PHY PRBS test start */
1130 #define PHY_TEST_RESET (1 << 0) /* PHY PRBS test reset */
1131 #define PHY_SRC_ERR_CNT(x) (((x) & 0x7) << 4) /* PHY error count source */
1132 #define PHY_PRBS_PAT_SEL(x) (((x) & 0x3) << 2) /* PHY PRBS pattern select */
1133
1134 /*
1135 * REG_SHORT_TPL_TEST_0
1136 */
1137 #define SHORT_TPL_TEST_RESET (1 << 1) /* Short transport layer test reset */
1138 #define SHORT_TPL_TEST_EN (1 << 0) /* Short transport layer test enable */
1139 #define SHORT_TPL_SP_SEL(x) (((x) & 0x3) << 4) /* Short transport layer sample select */
1140 #define SHORT_TPL_M_SEL(x) (((x) & 0x3) << 2) /* Short transport layer test DAC select */
1141
1142 /*
1143 * REG_SHORT_TPL_TEST_3
1144 */
1145 #define SHORT_TPL_FAIL (1 << 0) /* Short transport layer test fail */
1146
1147 /*
1148 * REG_BID_REG
1149 */
1150 #define ADJCNT_RD(x) (((x) & 0xF) << 4)
1151 #define BID_RD(x) (((x) & 0xF) << 0)
1152
1153 /*
1154 * REG_LID0_REG
1155 */
1156 #define ADJDIR_RD (1 << 6)
1157 #define PHADJ_RD (1 << 5)
1158 #define LID0_RD(x) (((x) & 0x1F) << 0)
1159
1160 /*
1161 * REG_SCR_L_REG
1162 */
1163 #define SCR_RD (1 << 7)
1164 #define L_RD(x) (((x) & 0x1F) << 0)
1165
1166 /*
1167 * REG_K_REG
1168 */
1169 #define K_RD(x) (((x) & 0x1F) << 0)
1170
1171 /*
1172 * REG_CS_N_REG
1173 */
1174 #define CS_RD(x) (((x) & 0x3) << 6)
1175 #define N_RD(x) (((x) & 0x1F) << 0)
1176
1177 /*
1178 * REG_NP_REG
1179 */
1180 #define SUBCLASSV_RD(x) (((x) & 0x7) << 5)
1181 #define NP_RD(x) (((x) & 0x1F) << 0)
1182
1183 /*
1184 * REG_S_REG
1185 */
1186 #define JESDV_RD(x) (((x) & 0x7) << 5)
1187 #define S_RD(x) (((x) & 0x1F) << 0)
1188
1189 /*
1190 * REG_HD_CF_REG
1191 */
1192 #define HD_RD (1 << 7)
1193 #define CF_RD(x) (((x) & 0x1F) << 0)
1194
1195 /*
1196 * REG_LID1_REG
1197 */
1198 #define LID1_RD(x) (((x) & 0x1F) << 0)
1199
1200 /*
1201 * REG_LID2_REG
1202 */
1203 #define LID2_RD(x) (((x) & 0x1F) << 0)
1204
1205 /*
1206 * REG_LID3_REG
1207 */
1208 #define LID3_RD(x) (((x) & 0x1F) << 0)
1209
1210 /*
1211 * REG_LID4_REG
1212 */
1213 #define LID4_RD(x) (((x) & 0x1F) << 0)
1214
1215 /*
1216 * REG_LID5_REG
1217 */
1218 #define LID5_RD(x) (((x) & 0x1F) << 0)
1219
1220 /*
1221 * REG_LID6_REG
1222 */
1223 #define LID6_RD(x) (((x) & 0x1F) << 0)
1224
1225 /*
1226 * REG_LID7_REG
1227 */
1228 #define LID7_RD(x) (((x) & 0x1F) << 0)
1229
1230 /*
1231 * REG_ILS_BID
1232 */
1233 #define ADJCNT(x) (((x) & 0xF) << 4)
1234 #define BID(x) (((x) & 0xF) << 0)
1235
1236 /*
1237 * REG_ILS_LID0
1238 */
1239 #define ADJDIR (1 << 6)
1240 #define PHADJ (1 << 5)
1241 #define LID0(x) (((x) & 0x1F) << 0)
1242
1243 /*
1244 * REG_ILS_SCR_L
1245 */
1246 #define SCR (1 << 7)
1247 #define L(x) (((x) & 0x1F) << 0)
1248
1249 /*
1250 * REG_ILS_K
1251 */
1252 #define K(x) (((x) & 0x1F) << 0)
1253
1254 /*
1255 * REG_ILS_CS_N
1256 */
1257 #define CS(x) (((x) & 0x3) << 6)
1258 #define N(x) (((x) & 0x1F) << 0)
1259
1260 /*
1261 * REG_ILS_NP
1262 */
1263 #define SUBCLASSV(x) (((x) & 0x7) << 5)
1264 #define NP(x) (((x) & 0x1F) << 0)
1265
1266 /*
1267 * REG_ILS_S
1268 */
1269 #define JESDV(x) (((x) & 0x7) << 5)
1270 #define S(x) (((x) & 0x1F) << 0)
1271
1272 /*
1273 * REG_ILS_HD_CF
1274 */
1275 #define HD (1 << 7)
1276 #define CF(x) (((x) & 0x1F) << 0)
1277
1278 /*
1279 * REG_ERRCNTRMON
1280 */
1281 #define LANESEL(x) (((x) & 0x7) << 4)
1282 #define CNTRSEL(x) (((x) & 0x3) << 0)
1283
1284 /*
1285 * REG_BADDISPARITY
1286 */
1287 #define RST_IRQ_DIS (1 << 7)
1288 #define DIS_ERR_CNTR_DIS (1 << 6)
1289 #define RST_ERR_CNTR_DIS (1 << 5)
1290 #define LANE_ADDR_DIS(x) (((x) & 0x7) << 0)
1291
1292 /*
1293 * REG_NITDISPARITY
1294 */
1295 #define RST_IRQ_NIT (1 << 7)
1296 #define DIS_ERR_CNTR_NIT (1 << 6)
1297 #define RST_ERR_CNTR_NIT (1 << 5)
1298 #define LANE_ADDR_NIT(x) (((x) & 0x7) << 0)
1299
1300 /*
1301 * REG_UNEXPECTEDKCHAR
1302 */
1303 #define RST_IRQ_K (1 << 7)
1304 #define DIS_ERR_CNTR_K (1 << 6)
1305 #define RST_ERR_CNTR_K (1 << 5)
1306 #define LANE_ADDR_K(x) (((x) & 0x7) << 0)
1307
1308 /*
1309 * REG_CTRLREG2
1310 */
1311 #define ILAS_MODE (1 << 7)
1312 #define REPDATATEST (1 << 5)
1313 #define QUETESTERR (1 << 4)
1314 #define AUTO_ECNTR_RST (1 << 3)
1315
1316 /*
1317 * REG_IRQVECTOR
1318 */
1319 #define BADDIS_FLAG_OR_MASK (1 << 7)
1320 #define NITD_FLAG_OR_MASK (1 << 6)
1321 #define UEKC_FLAG_OR_MASK (1 << 5)
1322 #define INITIALLANESYNC_FLAG_OR_MASK (1 << 3)
1323 #define BADCHECKSUM_FLAG_OR_MASK (1 << 2)
1324 #define CODEGRPSYNC_FLAG_OR_MASK (1 << 0)
1325
1326 /*
1327 * REG_SYNCASSERTIONMASK
1328 */
1329 #define BAD_DIS_S (1 << 7)
1330 #define NIT_DIS_S (1 << 6)
1331 #define UNEX_K_S (1 << 5)
1332 #define CMM_FLAG_OR_MASK (1 << 4)
1333 #define CMM_ENABLE (1 << 3)
1334
1335
1336 #define AD9144_MAX_DAC_RATE 2000000000UL
1337 #define AD9144_CHIP_ID 0x44
1338 #define AD9144_PRBS7 0x0
1339 #define AD9144_PRBS15 0x1
1340
1341 /******************************************************************************/
1342 /*************************** Types Declarations *******************************/
1343 /******************************************************************************/
1344
1345 typedef struct {
1346 /* Device Settings */
1347 uint8_t jesd_xbar_lane0_sel;
1348 uint8_t jesd_xbar_lane1_sel;
1349 uint8_t jesd_xbar_lane2_sel;
1350 uint8_t jesd_xbar_lane3_sel;
1351 uint8_t active_converters;
1352 uint32_t stpl_samples[4][4];
1353 uint32_t lane_rate_kbps;
1354 uint32_t prbs_type;
1355 } ad9144_init_param;
1356
1357 /******************************************************************************/
1358 /************************ Functions Declarations ******************************/
1359 /******************************************************************************/
1360 int32_t ad9144_setup(spi_device *dev,
1361 ad9144_init_param init_param);
1362 int32_t ad9144_spi_read(spi_device *dev,
1363 uint16_t reg_addr,
1364 uint8_t *reg_data);
1365 int32_t ad9144_short_pattern_test(spi_device *dev,
1366 ad9144_init_param init_param);
1367 int32_t ad9144_status(spi_device *dev);
1368 int32_t ad9144_datapath_prbs_test(spi_device *dev,
1369 ad9144_init_param init_param);
1370 #endif