4 * Driver for ST STV0367 DVB-T & DVB-C demodulator IC.
6 * Copyright (C) ST Microelectronics.
7 * Copyright (C) 2010,2011 NetUP Inc.
8 * Copyright (C) 2010,2011 Igor M. Liplianin <liplianin@netup.ru>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
22 #ifndef STV0367_DEFS_H
23 #define STV0367_DEFS_H
25 #include "stv0367_regs.h"
27 #define STV0367_DEFTAB_GENERIC 0
28 #define STV0367_DEFTAB_DDB 1
29 #define STV0367_DEFTAB_MAX 2
31 #define STV0367_TAB_TER 0
32 #define STV0367_TAB_CAB 1
33 #define STV0367_TAB_BASE 2
34 #define STV0367_TAB_MAX 3
41 /* values for STV4100 XTAL=30M int clk=53.125M*/
42 static const struct st_register def0367ter
[] = {
44 {R367TER_I2CRPT
, 0xa0},
45 /* {R367TER_I2CRPT, 0x22},*/
46 {R367TER_TOPCTRL
, 0x00},/* for xc5000; was 0x02 */
47 {R367TER_IOCFG0
, 0x40},
48 {R367TER_DAC0R
, 0x00},
49 {R367TER_IOCFG1
, 0x00},
50 {R367TER_DAC1R
, 0x00},
51 {R367TER_IOCFG2
, 0x62},
53 {R367TER_STATUS
, 0xf8},
54 {R367TER_AUX_CLK
, 0x0a},
55 {R367TER_FREESYS1
, 0x00},
56 {R367TER_FREESYS2
, 0x00},
57 {R367TER_FREESYS3
, 0x00},
58 {R367TER_GPIO_CFG
, 0x55},
59 {R367TER_GPIO_CMD
, 0x00},
60 {R367TER_AGC2MAX
, 0xff},
61 {R367TER_AGC2MIN
, 0x00},
62 {R367TER_AGC1MAX
, 0xff},
63 {R367TER_AGC1MIN
, 0x00},
65 {R367TER_AGC2TH
, 0x00},
66 {R367TER_AGC12C
, 0x00},
67 {R367TER_AGCCTRL1
, 0x85},
68 {R367TER_AGCCTRL2
, 0x1f},
69 {R367TER_AGC1VAL1
, 0x00},
70 {R367TER_AGC1VAL2
, 0x00},
71 {R367TER_AGC2VAL1
, 0x6f},
72 {R367TER_AGC2VAL2
, 0x05},
73 {R367TER_AGC2PGA
, 0x00},
74 {R367TER_OVF_RATE1
, 0x00},
75 {R367TER_OVF_RATE2
, 0x00},
76 {R367TER_GAIN_SRC1
, 0xaa},/* for xc5000; was 0x2b */
77 {R367TER_GAIN_SRC2
, 0xd6},/* for xc5000; was 0x04 */
78 {R367TER_INC_DEROT1
, 0x55},
79 {R367TER_INC_DEROT2
, 0x55},
80 {R367TER_PPM_CPAMP_DIR
, 0x2c},
81 {R367TER_PPM_CPAMP_INV
, 0x00},
82 {R367TER_FREESTFE_1
, 0x00},
83 {R367TER_FREESTFE_2
, 0x1c},
84 {R367TER_DCOFFSET
, 0x00},
85 {R367TER_EN_PROCESS
, 0x05},
86 {R367TER_SDI_SMOOTHER
, 0x80},
87 {R367TER_FE_LOOP_OPEN
, 0x1c},
88 {R367TER_FREQOFF1
, 0x00},
89 {R367TER_FREQOFF2
, 0x00},
90 {R367TER_FREQOFF3
, 0x00},
91 {R367TER_TIMOFF1
, 0x00},
92 {R367TER_TIMOFF2
, 0x00},
94 {R367TER_EPQAUTO
, 0x01},
95 {R367TER_SYR_UPDATE
, 0xf5},
96 {R367TER_CHPFREE
, 0x00},
97 {R367TER_PPM_STATE_MAC
, 0x23},
98 {R367TER_INR_THRESHOLD
, 0xff},
99 {R367TER_EPQ_TPS_ID_CELL
, 0xf9},
100 {R367TER_EPQ_CFG
, 0x00},
101 {R367TER_EPQ_STATUS
, 0x01},
102 {R367TER_AUTORELOCK
, 0x81},
103 {R367TER_BER_THR_VMSB
, 0x00},
104 {R367TER_BER_THR_MSB
, 0x00},
105 {R367TER_BER_THR_LSB
, 0x00},
107 {R367TER_SPECTR_CFG
, 0x00},
108 {R367TER_CHC_DUMMY
, 0x18},
109 {R367TER_INC_CTL
, 0x88},
110 {R367TER_INCTHRES_COR1
, 0xb4},
111 {R367TER_INCTHRES_COR2
, 0x96},
112 {R367TER_INCTHRES_DET1
, 0x0e},
113 {R367TER_INCTHRES_DET2
, 0x11},
114 {R367TER_IIR_CELLNB
, 0x8d},
115 {R367TER_IIRCX_COEFF1_MSB
, 0x00},
116 {R367TER_IIRCX_COEFF1_LSB
, 0x00},
117 {R367TER_IIRCX_COEFF2_MSB
, 0x09},
118 {R367TER_IIRCX_COEFF2_LSB
, 0x18},
119 {R367TER_IIRCX_COEFF3_MSB
, 0x14},
120 {R367TER_IIRCX_COEFF3_LSB
, 0x9c},
121 {R367TER_IIRCX_COEFF4_MSB
, 0x00},
122 {R367TER_IIRCX_COEFF4_LSB
, 0x00},
123 {R367TER_IIRCX_COEFF5_MSB
, 0x36},
124 {R367TER_IIRCX_COEFF5_LSB
, 0x42},
125 {R367TER_FEPATH_CFG
, 0x00},
126 {R367TER_PMC1_FUNC
, 0x65},
127 {R367TER_PMC1_FOR
, 0x00},
128 {R367TER_PMC2_FUNC
, 0x00},
129 {R367TER_STATUS_ERR_DA
, 0xe0},
130 {R367TER_DIG_AGC_R
, 0xfe},
131 {R367TER_COMAGC_TARMSB
, 0x0b},
132 {R367TER_COM_AGC_TAR_ENMODE
, 0x41},
133 {R367TER_COM_AGC_CFG
, 0x3e},
134 {R367TER_COM_AGC_GAIN1
, 0x39},
135 {R367TER_AUT_AGC_TARGETMSB
, 0x0b},
136 {R367TER_LOCK_DET_MSB
, 0x01},
137 {R367TER_AGCTAR_LOCK_LSBS
, 0x40},
138 {R367TER_AUT_GAIN_EN
, 0xf4},
139 {R367TER_AUT_CFG
, 0xf0},
140 {R367TER_LOCKN
, 0x23},
141 {R367TER_INT_X_3
, 0x00},
142 {R367TER_INT_X_2
, 0x03},
143 {R367TER_INT_X_1
, 0x8d},
144 {R367TER_INT_X_0
, 0xa0},
145 {R367TER_MIN_ERRX_MSB
, 0x00},
146 {R367TER_COR_CTL
, 0x23},
147 {R367TER_COR_STAT
, 0xf6},
148 {R367TER_COR_INTEN
, 0x00},
149 {R367TER_COR_INTSTAT
, 0x3f},
150 {R367TER_COR_MODEGUARD
, 0x03},
151 {R367TER_AGC_CTL
, 0x08},
152 {R367TER_AGC_MANUAL1
, 0x00},
153 {R367TER_AGC_MANUAL2
, 0x00},
154 {R367TER_AGC_TARG
, 0x16},
155 {R367TER_AGC_GAIN1
, 0x53},
156 {R367TER_AGC_GAIN2
, 0x1d},
157 {R367TER_RESERVED_1
, 0x00},
158 {R367TER_RESERVED_2
, 0x00},
159 {R367TER_RESERVED_3
, 0x00},
160 {R367TER_CAS_CTL
, 0x44},
161 {R367TER_CAS_FREQ
, 0xb3},
162 {R367TER_CAS_DAGCGAIN
, 0x12},
163 {R367TER_SYR_CTL
, 0x04},
164 {R367TER_SYR_STAT
, 0x10},
165 {R367TER_SYR_NCO1
, 0x00},
166 {R367TER_SYR_NCO2
, 0x00},
167 {R367TER_SYR_OFFSET1
, 0x00},
168 {R367TER_SYR_OFFSET2
, 0x00},
169 {R367TER_FFT_CTL
, 0x00},
170 {R367TER_SCR_CTL
, 0x70},
171 {R367TER_PPM_CTL1
, 0xf8},
172 {R367TER_TRL_CTL
, 0x14},/* for xc5000; was 0xac */
173 {R367TER_TRL_NOMRATE1
, 0xae},/* for xc5000; was 0x1e */
174 {R367TER_TRL_NOMRATE2
, 0x56},/* for xc5000; was 0x58 */
175 {R367TER_TRL_TIME1
, 0x1d},
176 {R367TER_TRL_TIME2
, 0xfc},
177 {R367TER_CRL_CTL
, 0x24},
178 {R367TER_CRL_FREQ1
, 0xad},
179 {R367TER_CRL_FREQ2
, 0x9d},
180 {R367TER_CRL_FREQ3
, 0xff},
181 {R367TER_CHC_CTL
, 0x01},
182 {R367TER_CHC_SNR
, 0xf0},
183 {R367TER_BDI_CTL
, 0x00},
184 {R367TER_DMP_CTL
, 0x00},
185 {R367TER_TPS_RCVD1
, 0x30},
186 {R367TER_TPS_RCVD2
, 0x02},
187 {R367TER_TPS_RCVD3
, 0x01},
188 {R367TER_TPS_RCVD4
, 0x00},
189 {R367TER_TPS_ID_CELL1
, 0x00},
190 {R367TER_TPS_ID_CELL2
, 0x00},
191 {R367TER_TPS_RCVD5_SET1
, 0x02},
192 {R367TER_TPS_SET2
, 0x02},
193 {R367TER_TPS_SET3
, 0x01},
194 {R367TER_TPS_CTL
, 0x00},
195 {R367TER_CTL_FFTOSNUM
, 0x34},
196 {R367TER_TESTSELECT
, 0x09},
197 {R367TER_MSC_REV
, 0x0a},
198 {R367TER_PIR_CTL
, 0x00},
199 {R367TER_SNR_CARRIER1
, 0xa1},
200 {R367TER_SNR_CARRIER2
, 0x9a},
201 {R367TER_PPM_CPAMP
, 0x2c},
202 {R367TER_TSM_AP0
, 0x00},
203 {R367TER_TSM_AP1
, 0x00},
204 {R367TER_TSM_AP2
, 0x00},
205 {R367TER_TSM_AP3
, 0x00},
206 {R367TER_TSM_AP4
, 0x00},
207 {R367TER_TSM_AP5
, 0x00},
208 {R367TER_TSM_AP6
, 0x00},
209 {R367TER_TSM_AP7
, 0x00},
210 {R367TER_TSTRES
, 0x00},
211 {R367TER_ANACTRL
, 0x0D},/* PLL stopped, restart at init!!! */
212 {R367TER_TSTBUS
, 0x00},
213 {R367TER_TSTRATE
, 0x00},
214 {R367TER_CONSTMODE
, 0x01},
215 {R367TER_CONSTCARR1
, 0x00},
216 {R367TER_CONSTCARR2
, 0x00},
217 {R367TER_ICONSTEL
, 0x0a},
218 {R367TER_QCONSTEL
, 0x15},
219 {R367TER_TSTBISTRES0
, 0x00},
220 {R367TER_TSTBISTRES1
, 0x00},
221 {R367TER_TSTBISTRES2
, 0x28},
222 {R367TER_TSTBISTRES3
, 0x00},
223 {R367TER_RF_AGC1
, 0xff},
224 {R367TER_RF_AGC2
, 0x83},
225 {R367TER_ANADIGCTRL
, 0x19},
226 {R367TER_PLLMDIV
, 0x01},/* for xc5000; was 0x0c */
227 {R367TER_PLLNDIV
, 0x06},/* for xc5000; was 0x55 */
228 {R367TER_PLLSETUP
, 0x18},
229 {R367TER_DUAL_AD12
, 0x0C},/* for xc5000 AGC voltage 1.6V */
230 {R367TER_TSTBIST
, 0x00},
231 {R367TER_PAD_COMP_CTRL
, 0x00},
232 {R367TER_PAD_COMP_WR
, 0x00},
233 {R367TER_PAD_COMP_RD
, 0xe0},
234 {R367TER_SYR_TARGET_FFTADJT_MSB
, 0x00},
235 {R367TER_SYR_TARGET_FFTADJT_LSB
, 0x00},
236 {R367TER_SYR_TARGET_CHCADJT_MSB
, 0x00},
237 {R367TER_SYR_TARGET_CHCADJT_LSB
, 0x00},
238 {R367TER_SYR_FLAG
, 0x00},
239 {R367TER_CRL_TARGET1
, 0x00},
240 {R367TER_CRL_TARGET2
, 0x00},
241 {R367TER_CRL_TARGET3
, 0x00},
242 {R367TER_CRL_TARGET4
, 0x00},
243 {R367TER_CRL_FLAG
, 0x00},
244 {R367TER_TRL_TARGET1
, 0x00},
245 {R367TER_TRL_TARGET2
, 0x00},
246 {R367TER_TRL_CHC
, 0x00},
247 {R367TER_CHC_SNR_TARG
, 0x00},
248 {R367TER_TOP_TRACK
, 0x00},
249 {R367TER_TRACKER_FREE1
, 0x00},
250 {R367TER_ERROR_CRL1
, 0x00},
251 {R367TER_ERROR_CRL2
, 0x00},
252 {R367TER_ERROR_CRL3
, 0x00},
253 {R367TER_ERROR_CRL4
, 0x00},
254 {R367TER_DEC_NCO1
, 0x2c},
255 {R367TER_DEC_NCO2
, 0x0f},
256 {R367TER_DEC_NCO3
, 0x20},
258 {R367TER_SYR_FFTADJ1
, 0x00},
259 {R367TER_SYR_FFTADJ2
, 0x00},
260 {R367TER_SYR_CHCADJ1
, 0x00},
261 {R367TER_SYR_CHCADJ2
, 0x00},
262 {R367TER_SYR_OFF
, 0x00},
263 {R367TER_PPM_OFFSET1
, 0x00},
264 {R367TER_PPM_OFFSET2
, 0x03},
265 {R367TER_TRACKER_FREE2
, 0x00},
266 {R367TER_DEBG_LT10
, 0x00},
267 {R367TER_DEBG_LT11
, 0x00},
268 {R367TER_DEBG_LT12
, 0x00},
269 {R367TER_DEBG_LT13
, 0x00},
270 {R367TER_DEBG_LT14
, 0x00},
271 {R367TER_DEBG_LT15
, 0x00},
272 {R367TER_DEBG_LT16
, 0x00},
273 {R367TER_DEBG_LT17
, 0x00},
274 {R367TER_DEBG_LT18
, 0x00},
275 {R367TER_DEBG_LT19
, 0x00},
276 {R367TER_DEBG_LT1A
, 0x00},
277 {R367TER_DEBG_LT1B
, 0x00},
278 {R367TER_DEBG_LT1C
, 0x00},
279 {R367TER_DEBG_LT1D
, 0x00},
280 {R367TER_DEBG_LT1E
, 0x00},
281 {R367TER_DEBG_LT1F
, 0x00},
282 {R367TER_RCCFGH
, 0x00},
283 {R367TER_RCCFGM
, 0x00},
284 {R367TER_RCCFGL
, 0x00},
285 {R367TER_RCINSDELH
, 0x00},
286 {R367TER_RCINSDELM
, 0x00},
287 {R367TER_RCINSDELL
, 0x00},
288 {R367TER_RCSTATUS
, 0x00},
289 {R367TER_RCSPEED
, 0x6f},
290 {R367TER_RCDEBUGM
, 0xe7},
291 {R367TER_RCDEBUGL
, 0x9b},
292 {R367TER_RCOBSCFG
, 0x00},
293 {R367TER_RCOBSM
, 0x00},
294 {R367TER_RCOBSL
, 0x00},
295 {R367TER_RCFECSPY
, 0x00},
296 {R367TER_RCFSPYCFG
, 0x00},
297 {R367TER_RCFSPYDATA
, 0x00},
298 {R367TER_RCFSPYOUT
, 0x00},
299 {R367TER_RCFSTATUS
, 0x00},
300 {R367TER_RCFGOODPACK
, 0x00},
301 {R367TER_RCFPACKCNT
, 0x00},
302 {R367TER_RCFSPYMISC
, 0x00},
303 {R367TER_RCFBERCPT4
, 0x00},
304 {R367TER_RCFBERCPT3
, 0x00},
305 {R367TER_RCFBERCPT2
, 0x00},
306 {R367TER_RCFBERCPT1
, 0x00},
307 {R367TER_RCFBERCPT0
, 0x00},
308 {R367TER_RCFBERERR2
, 0x00},
309 {R367TER_RCFBERERR1
, 0x00},
310 {R367TER_RCFBERERR0
, 0x00},
311 {R367TER_RCFSTATESM
, 0x00},
312 {R367TER_RCFSTATESL
, 0x00},
313 {R367TER_RCFSPYBER
, 0x00},
314 {R367TER_RCFSPYDISTM
, 0x00},
315 {R367TER_RCFSPYDISTL
, 0x00},
316 {R367TER_RCFSPYOBS7
, 0x00},
317 {R367TER_RCFSPYOBS6
, 0x00},
318 {R367TER_RCFSPYOBS5
, 0x00},
319 {R367TER_RCFSPYOBS4
, 0x00},
320 {R367TER_RCFSPYOBS3
, 0x00},
321 {R367TER_RCFSPYOBS2
, 0x00},
322 {R367TER_RCFSPYOBS1
, 0x00},
323 {R367TER_RCFSPYOBS0
, 0x00},
324 {R367TER_TSGENERAL
, 0x00},
325 {R367TER_RC1SPEED
, 0x6f},
326 {R367TER_TSGSTATUS
, 0x18},
327 {R367TER_FECM
, 0x01},
328 {R367TER_VTH12
, 0xff},
329 {R367TER_VTH23
, 0xa1},
330 {R367TER_VTH34
, 0x64},
331 {R367TER_VTH56
, 0x40},
332 {R367TER_VTH67
, 0x00},
333 {R367TER_VTH78
, 0x2c},
334 {R367TER_VITCURPUN
, 0x12},
335 {R367TER_VERROR
, 0x01},
336 {R367TER_PRVIT
, 0x3f},
337 {R367TER_VAVSRVIT
, 0x00},
338 {R367TER_VSTATUSVIT
, 0xbd},
339 {R367TER_VTHINUSE
, 0xa1},
340 {R367TER_KDIV12
, 0x20},
341 {R367TER_KDIV23
, 0x40},
342 {R367TER_KDIV34
, 0x20},
343 {R367TER_KDIV56
, 0x30},
344 {R367TER_KDIV67
, 0x00},
345 {R367TER_KDIV78
, 0x30},
346 {R367TER_SIGPOWER
, 0x54},
347 {R367TER_DEMAPVIT
, 0x40},
348 {R367TER_VITSCALE
, 0x00},
349 {R367TER_FFEC1PRG
, 0x00},
350 {R367TER_FVITCURPUN
, 0x12},
351 {R367TER_FVERROR
, 0x01},
352 {R367TER_FVSTATUSVIT
, 0xbd},
353 {R367TER_DEBUG_LT1
, 0x00},
354 {R367TER_DEBUG_LT2
, 0x00},
355 {R367TER_DEBUG_LT3
, 0x00},
356 {R367TER_TSTSFMET
, 0x00},
357 {R367TER_SELOUT
, 0x00},
358 {R367TER_TSYNC
, 0x00},
359 {R367TER_TSTERR
, 0x00},
360 {R367TER_TSFSYNC
, 0x00},
361 {R367TER_TSTSFERR
, 0x00},
362 {R367TER_TSTTSSF1
, 0x01},
363 {R367TER_TSTTSSF2
, 0x1f},
364 {R367TER_TSTTSSF3
, 0x00},
365 {R367TER_TSTTS1
, 0x00},
366 {R367TER_TSTTS2
, 0x1f},
367 {R367TER_TSTTS3
, 0x01},
368 {R367TER_TSTTS4
, 0x00},
369 {R367TER_TSTTSRC
, 0x00},
370 {R367TER_TSTTSRS
, 0x00},
371 {R367TER_TSSTATEM
, 0xb0},
372 {R367TER_TSSTATEL
, 0x40},
373 {R367TER_TSCFGH
, 0xC0},
374 {R367TER_TSCFGM
, 0xc0},/* for xc5000; was 0x00 */
375 {R367TER_TSCFGL
, 0x20},
376 {R367TER_TSSYNC
, 0x00},
377 {R367TER_TSINSDELH
, 0x00},
378 {R367TER_TSINSDELM
, 0x00},
379 {R367TER_TSINSDELL
, 0x00},
380 {R367TER_TSDIVN
, 0x03},
381 {R367TER_TSDIVPM
, 0x00},
382 {R367TER_TSDIVPL
, 0x00},
383 {R367TER_TSDIVQM
, 0x00},
384 {R367TER_TSDIVQL
, 0x00},
385 {R367TER_TSDILSTKM
, 0x00},
386 {R367TER_TSDILSTKL
, 0x00},
387 {R367TER_TSSPEED
, 0x40},/* for xc5000; was 0x6f */
388 {R367TER_TSSTATUS
, 0x81},
389 {R367TER_TSSTATUS2
, 0x6a},
390 {R367TER_TSBITRATEM
, 0x0f},
391 {R367TER_TSBITRATEL
, 0xc6},
392 {R367TER_TSPACKLENM
, 0x00},
393 {R367TER_TSPACKLENL
, 0xfc},
394 {R367TER_TSBLOCLENM
, 0x0a},
395 {R367TER_TSBLOCLENL
, 0x80},
396 {R367TER_TSDLYH
, 0x90},
397 {R367TER_TSDLYM
, 0x68},
398 {R367TER_TSDLYL
, 0x01},
399 {R367TER_TSNPDAV
, 0x00},
400 {R367TER_TSBUFSTATH
, 0x00},
401 {R367TER_TSBUFSTATM
, 0x00},
402 {R367TER_TSBUFSTATL
, 0x00},
403 {R367TER_TSDEBUGM
, 0xcf},
404 {R367TER_TSDEBUGL
, 0x1e},
405 {R367TER_TSDLYSETH
, 0x00},
406 {R367TER_TSDLYSETM
, 0x68},
407 {R367TER_TSDLYSETL
, 0x00},
408 {R367TER_TSOBSCFG
, 0x00},
409 {R367TER_TSOBSM
, 0x47},
410 {R367TER_TSOBSL
, 0x1f},
411 {R367TER_ERRCTRL1
, 0x95},
412 {R367TER_ERRCNT1H
, 0x80},
413 {R367TER_ERRCNT1M
, 0x00},
414 {R367TER_ERRCNT1L
, 0x00},
415 {R367TER_ERRCTRL2
, 0x95},
416 {R367TER_ERRCNT2H
, 0x00},
417 {R367TER_ERRCNT2M
, 0x00},
418 {R367TER_ERRCNT2L
, 0x00},
419 {R367TER_FECSPY
, 0x88},
420 {R367TER_FSPYCFG
, 0x2c},
421 {R367TER_FSPYDATA
, 0x3a},
422 {R367TER_FSPYOUT
, 0x06},
423 {R367TER_FSTATUS
, 0x61},
424 {R367TER_FGOODPACK
, 0xff},
425 {R367TER_FPACKCNT
, 0xff},
426 {R367TER_FSPYMISC
, 0x66},
427 {R367TER_FBERCPT4
, 0x00},
428 {R367TER_FBERCPT3
, 0x00},
429 {R367TER_FBERCPT2
, 0x36},
430 {R367TER_FBERCPT1
, 0x36},
431 {R367TER_FBERCPT0
, 0x14},
432 {R367TER_FBERERR2
, 0x00},
433 {R367TER_FBERERR1
, 0x03},
434 {R367TER_FBERERR0
, 0x28},
435 {R367TER_FSTATESM
, 0x00},
436 {R367TER_FSTATESL
, 0x02},
437 {R367TER_FSPYBER
, 0x00},
438 {R367TER_FSPYDISTM
, 0x01},
439 {R367TER_FSPYDISTL
, 0x9f},
440 {R367TER_FSPYOBS7
, 0xc9},
441 {R367TER_FSPYOBS6
, 0x99},
442 {R367TER_FSPYOBS5
, 0x08},
443 {R367TER_FSPYOBS4
, 0xec},
444 {R367TER_FSPYOBS3
, 0x01},
445 {R367TER_FSPYOBS2
, 0x0f},
446 {R367TER_FSPYOBS1
, 0xf5},
447 {R367TER_FSPYOBS0
, 0x08},
448 {R367TER_SFDEMAP
, 0x40},
449 {R367TER_SFERROR
, 0x00},
450 {R367TER_SFAVSR
, 0x30},
451 {R367TER_SFECSTATUS
, 0xcc},
452 {R367TER_SFKDIV12
, 0x20},
453 {R367TER_SFKDIV23
, 0x40},
454 {R367TER_SFKDIV34
, 0x20},
455 {R367TER_SFKDIV56
, 0x20},
456 {R367TER_SFKDIV67
, 0x00},
457 {R367TER_SFKDIV78
, 0x20},
458 {R367TER_SFDILSTKM
, 0x00},
459 {R367TER_SFDILSTKL
, 0x00},
460 {R367TER_SFSTATUS
, 0xb5},
461 {R367TER_SFDLYH
, 0x90},
462 {R367TER_SFDLYM
, 0x60},
463 {R367TER_SFDLYL
, 0x01},
464 {R367TER_SFDLYSETH
, 0xc0},
465 {R367TER_SFDLYSETM
, 0x60},
466 {R367TER_SFDLYSETL
, 0x00},
467 {R367TER_SFOBSCFG
, 0x00},
468 {R367TER_SFOBSM
, 0x47},
469 {R367TER_SFOBSL
, 0x05},
470 {R367TER_SFECINFO
, 0x40},
471 {R367TER_SFERRCTRL
, 0x74},
472 {R367TER_SFERRCNTH
, 0x80},
473 {R367TER_SFERRCNTM
, 0x00},
474 {R367TER_SFERRCNTL
, 0x00},
475 {R367TER_SYMBRATEM
, 0x2f},
476 {R367TER_SYMBRATEL
, 0x50},
477 {R367TER_SYMBSTATUS
, 0x7f},
478 {R367TER_SYMBCFG
, 0x00},
479 {R367TER_SYMBFIFOM
, 0xf4},
480 {R367TER_SYMBFIFOL
, 0x0d},
481 {R367TER_SYMBOFFSM
, 0xf0},
482 {R367TER_SYMBOFFSL
, 0x2d},
483 {R367TER_DEBUG_LT4
, 0x00},
484 {R367TER_DEBUG_LT5
, 0x00},
485 {R367TER_DEBUG_LT6
, 0x00},
486 {R367TER_DEBUG_LT7
, 0x00},
487 {R367TER_DEBUG_LT8
, 0x00},
488 {R367TER_DEBUG_LT9
, 0x00},
492 static const struct st_register def0367cab
[] = {
494 {R367CAB_I2CRPT
, 0xa0},
495 /*{R367CAB_I2CRPT, 0x22},*/
496 {R367CAB_TOPCTRL
, 0x10},
497 {R367CAB_IOCFG0
, 0x80},
498 {R367CAB_DAC0R
, 0x00},
499 {R367CAB_IOCFG1
, 0x00},
500 {R367CAB_DAC1R
, 0x00},
501 {R367CAB_IOCFG2
, 0x00},
502 {R367CAB_SDFR
, 0x00},
503 {R367CAB_AUX_CLK
, 0x00},
504 {R367CAB_FREESYS1
, 0x00},
505 {R367CAB_FREESYS2
, 0x00},
506 {R367CAB_FREESYS3
, 0x00},
507 {R367CAB_GPIO_CFG
, 0x55},
508 {R367CAB_GPIO_CMD
, 0x01},
509 {R367CAB_TSTRES
, 0x00},
510 {R367CAB_ANACTRL
, 0x0d},/* was 0x00 need to check - I.M.L.*/
511 {R367CAB_TSTBUS
, 0x00},
512 {R367CAB_RF_AGC1
, 0xea},
513 {R367CAB_RF_AGC2
, 0x82},
514 {R367CAB_ANADIGCTRL
, 0x0b},
515 {R367CAB_PLLMDIV
, 0x01},
516 {R367CAB_PLLNDIV
, 0x08},
517 {R367CAB_PLLSETUP
, 0x18},
518 {R367CAB_DUAL_AD12
, 0x0C}, /* for xc5000 AGC voltage 1.6V */
519 {R367CAB_TSTBIST
, 0x00},
520 {R367CAB_CTRL_1
, 0x00},
521 {R367CAB_CTRL_2
, 0x03},
522 {R367CAB_IT_STATUS1
, 0x2b},
523 {R367CAB_IT_STATUS2
, 0x08},
524 {R367CAB_IT_EN1
, 0x00},
525 {R367CAB_IT_EN2
, 0x00},
526 {R367CAB_CTRL_STATUS
, 0x04},
527 {R367CAB_TEST_CTL
, 0x00},
528 {R367CAB_AGC_CTL
, 0x73},
529 {R367CAB_AGC_IF_CFG
, 0x50},
530 {R367CAB_AGC_RF_CFG
, 0x00},
531 {R367CAB_AGC_PWM_CFG
, 0x03},
532 {R367CAB_AGC_PWR_REF_L
, 0x5a},
533 {R367CAB_AGC_PWR_REF_H
, 0x00},
534 {R367CAB_AGC_RF_TH_L
, 0xff},
535 {R367CAB_AGC_RF_TH_H
, 0x07},
536 {R367CAB_AGC_IF_LTH_L
, 0x00},
537 {R367CAB_AGC_IF_LTH_H
, 0x08},
538 {R367CAB_AGC_IF_HTH_L
, 0xff},
539 {R367CAB_AGC_IF_HTH_H
, 0x07},
540 {R367CAB_AGC_PWR_RD_L
, 0xa0},
541 {R367CAB_AGC_PWR_RD_M
, 0xe9},
542 {R367CAB_AGC_PWR_RD_H
, 0x03},
543 {R367CAB_AGC_PWM_IFCMD_L
, 0xe4},
544 {R367CAB_AGC_PWM_IFCMD_H
, 0x00},
545 {R367CAB_AGC_PWM_RFCMD_L
, 0xff},
546 {R367CAB_AGC_PWM_RFCMD_H
, 0x07},
547 {R367CAB_IQDEM_CFG
, 0x01},
548 {R367CAB_MIX_NCO_LL
, 0x22},
549 {R367CAB_MIX_NCO_HL
, 0x96},
550 {R367CAB_MIX_NCO_HH
, 0x55},
551 {R367CAB_SRC_NCO_LL
, 0xff},
552 {R367CAB_SRC_NCO_LH
, 0x0c},
553 {R367CAB_SRC_NCO_HL
, 0xf5},
554 {R367CAB_SRC_NCO_HH
, 0x20},
555 {R367CAB_IQDEM_GAIN_SRC_L
, 0x06},
556 {R367CAB_IQDEM_GAIN_SRC_H
, 0x01},
557 {R367CAB_IQDEM_DCRM_CFG_LL
, 0xfe},
558 {R367CAB_IQDEM_DCRM_CFG_LH
, 0xff},
559 {R367CAB_IQDEM_DCRM_CFG_HL
, 0x0f},
560 {R367CAB_IQDEM_DCRM_CFG_HH
, 0x00},
561 {R367CAB_IQDEM_ADJ_COEFF0
, 0x34},
562 {R367CAB_IQDEM_ADJ_COEFF1
, 0xae},
563 {R367CAB_IQDEM_ADJ_COEFF2
, 0x46},
564 {R367CAB_IQDEM_ADJ_COEFF3
, 0x77},
565 {R367CAB_IQDEM_ADJ_COEFF4
, 0x96},
566 {R367CAB_IQDEM_ADJ_COEFF5
, 0x69},
567 {R367CAB_IQDEM_ADJ_COEFF6
, 0xc7},
568 {R367CAB_IQDEM_ADJ_COEFF7
, 0x01},
569 {R367CAB_IQDEM_ADJ_EN
, 0x04},
570 {R367CAB_IQDEM_ADJ_AGC_REF
, 0x94},
571 {R367CAB_ALLPASSFILT1
, 0xc9},
572 {R367CAB_ALLPASSFILT2
, 0x2d},
573 {R367CAB_ALLPASSFILT3
, 0xa3},
574 {R367CAB_ALLPASSFILT4
, 0xfb},
575 {R367CAB_ALLPASSFILT5
, 0xf6},
576 {R367CAB_ALLPASSFILT6
, 0x45},
577 {R367CAB_ALLPASSFILT7
, 0x6f},
578 {R367CAB_ALLPASSFILT8
, 0x7e},
579 {R367CAB_ALLPASSFILT9
, 0x05},
580 {R367CAB_ALLPASSFILT10
, 0x0a},
581 {R367CAB_ALLPASSFILT11
, 0x51},
582 {R367CAB_TRL_AGC_CFG
, 0x20},
583 {R367CAB_TRL_LPF_CFG
, 0x28},
584 {R367CAB_TRL_LPF_ACQ_GAIN
, 0x44},
585 {R367CAB_TRL_LPF_TRK_GAIN
, 0x22},
586 {R367CAB_TRL_LPF_OUT_GAIN
, 0x03},
587 {R367CAB_TRL_LOCKDET_LTH
, 0x04},
588 {R367CAB_TRL_LOCKDET_HTH
, 0x11},
589 {R367CAB_TRL_LOCKDET_TRGVAL
, 0x20},
590 {R367CAB_IQ_QAM
, 0x01},
591 {R367CAB_FSM_STATE
, 0xa0},
592 {R367CAB_FSM_CTL
, 0x08},
593 {R367CAB_FSM_STS
, 0x0c},
594 {R367CAB_FSM_SNR0_HTH
, 0x00},
595 {R367CAB_FSM_SNR1_HTH
, 0x00},
596 {R367CAB_FSM_SNR2_HTH
, 0x23},/* 0x00 */
597 {R367CAB_FSM_SNR0_LTH
, 0x00},
598 {R367CAB_FSM_SNR1_LTH
, 0x00},
599 {R367CAB_FSM_EQA1_HTH
, 0x00},
600 {R367CAB_FSM_TEMPO
, 0x32},
601 {R367CAB_FSM_CONFIG
, 0x03},
602 {R367CAB_EQU_I_TESTTAP_L
, 0x11},
603 {R367CAB_EQU_I_TESTTAP_M
, 0x00},
604 {R367CAB_EQU_I_TESTTAP_H
, 0x00},
605 {R367CAB_EQU_TESTAP_CFG
, 0x00},
606 {R367CAB_EQU_Q_TESTTAP_L
, 0xff},
607 {R367CAB_EQU_Q_TESTTAP_M
, 0x00},
608 {R367CAB_EQU_Q_TESTTAP_H
, 0x00},
609 {R367CAB_EQU_TAP_CTRL
, 0x00},
610 {R367CAB_EQU_CTR_CRL_CONTROL_L
, 0x11},
611 {R367CAB_EQU_CTR_CRL_CONTROL_H
, 0x05},
612 {R367CAB_EQU_CTR_HIPOW_L
, 0x00},
613 {R367CAB_EQU_CTR_HIPOW_H
, 0x00},
614 {R367CAB_EQU_I_EQU_LO
, 0xef},
615 {R367CAB_EQU_I_EQU_HI
, 0x00},
616 {R367CAB_EQU_Q_EQU_LO
, 0xee},
617 {R367CAB_EQU_Q_EQU_HI
, 0x00},
618 {R367CAB_EQU_MAPPER
, 0xc5},
619 {R367CAB_EQU_SWEEP_RATE
, 0x80},
620 {R367CAB_EQU_SNR_LO
, 0x64},
621 {R367CAB_EQU_SNR_HI
, 0x03},
622 {R367CAB_EQU_GAMMA_LO
, 0x00},
623 {R367CAB_EQU_GAMMA_HI
, 0x00},
624 {R367CAB_EQU_ERR_GAIN
, 0x36},
625 {R367CAB_EQU_RADIUS
, 0xaa},
626 {R367CAB_EQU_FFE_MAINTAP
, 0x00},
627 {R367CAB_EQU_FFE_LEAKAGE
, 0x63},
628 {R367CAB_EQU_FFE_MAINTAP_POS
, 0xdf},
629 {R367CAB_EQU_GAIN_WIDE
, 0x88},
630 {R367CAB_EQU_GAIN_NARROW
, 0x41},
631 {R367CAB_EQU_CTR_LPF_GAIN
, 0xd1},
632 {R367CAB_EQU_CRL_LPF_GAIN
, 0xa7},
633 {R367CAB_EQU_GLOBAL_GAIN
, 0x06},
634 {R367CAB_EQU_CRL_LD_SEN
, 0x85},
635 {R367CAB_EQU_CRL_LD_VAL
, 0xe2},
636 {R367CAB_EQU_CRL_TFR
, 0x20},
637 {R367CAB_EQU_CRL_BISTH_LO
, 0x00},
638 {R367CAB_EQU_CRL_BISTH_HI
, 0x00},
639 {R367CAB_EQU_SWEEP_RANGE_LO
, 0x00},
640 {R367CAB_EQU_SWEEP_RANGE_HI
, 0x00},
641 {R367CAB_EQU_CRL_LIMITER
, 0x40},
642 {R367CAB_EQU_MODULUS_MAP
, 0x90},
643 {R367CAB_EQU_PNT_GAIN
, 0xa7},
644 {R367CAB_FEC_AC_CTR_0
, 0x16},
645 {R367CAB_FEC_AC_CTR_1
, 0x0b},
646 {R367CAB_FEC_AC_CTR_2
, 0x88},
647 {R367CAB_FEC_AC_CTR_3
, 0x02},
648 {R367CAB_FEC_STATUS
, 0x12},
649 {R367CAB_RS_COUNTER_0
, 0x7d},
650 {R367CAB_RS_COUNTER_1
, 0xd0},
651 {R367CAB_RS_COUNTER_2
, 0x19},
652 {R367CAB_RS_COUNTER_3
, 0x0b},
653 {R367CAB_RS_COUNTER_4
, 0xa3},
654 {R367CAB_RS_COUNTER_5
, 0x00},
655 {R367CAB_BERT_0
, 0x01},
656 {R367CAB_BERT_1
, 0x25},
657 {R367CAB_BERT_2
, 0x41},
658 {R367CAB_BERT_3
, 0x39},
659 {R367CAB_OUTFORMAT_0
, 0xc2},
660 {R367CAB_OUTFORMAT_1
, 0x22},
661 {R367CAB_SMOOTHER_2
, 0x28},
662 {R367CAB_TSMF_CTRL_0
, 0x01},
663 {R367CAB_TSMF_CTRL_1
, 0xc6},
664 {R367CAB_TSMF_CTRL_3
, 0x43},
665 {R367CAB_TS_ON_ID_0
, 0x00},
666 {R367CAB_TS_ON_ID_1
, 0x00},
667 {R367CAB_TS_ON_ID_2
, 0x00},
668 {R367CAB_TS_ON_ID_3
, 0x00},
669 {R367CAB_RE_STATUS_0
, 0x00},
670 {R367CAB_RE_STATUS_1
, 0x00},
671 {R367CAB_RE_STATUS_2
, 0x00},
672 {R367CAB_RE_STATUS_3
, 0x00},
673 {R367CAB_TS_STATUS_0
, 0x00},
674 {R367CAB_TS_STATUS_1
, 0x00},
675 {R367CAB_TS_STATUS_2
, 0xa0},
676 {R367CAB_TS_STATUS_3
, 0x00},
677 {R367CAB_T_O_ID_0
, 0x00},
678 {R367CAB_T_O_ID_1
, 0x00},
679 {R367CAB_T_O_ID_2
, 0x00},
680 {R367CAB_T_O_ID_3
, 0x00},
686 * Defaults / Tables for Digital Devices C/T Cine/Flex devices
690 static const struct st_register def0367dd_ofdm
[] = {
691 {R367TER_AGC2MAX
, 0xff},
692 {R367TER_AGC2MIN
, 0x00},
693 {R367TER_AGC1MAX
, 0xff},
694 {R367TER_AGC1MIN
, 0x00},
695 {R367TER_AGCR
, 0xbc},
696 {R367TER_AGC2TH
, 0x00},
697 {R367TER_AGCCTRL1
, 0x85},
698 {R367TER_AGCCTRL2
, 0x1f},
699 {R367TER_AGC1VAL1
, 0x00},
700 {R367TER_AGC1VAL2
, 0x00},
701 {R367TER_AGC2VAL1
, 0x6f},
702 {R367TER_AGC2VAL2
, 0x05},
703 {R367TER_AGC2PGA
, 0x00},
704 {R367TER_OVF_RATE1
, 0x00},
705 {R367TER_OVF_RATE2
, 0x00},
706 {R367TER_GAIN_SRC1
, 0x2b},
707 {R367TER_GAIN_SRC2
, 0x04},
708 {R367TER_INC_DEROT1
, 0x55},
709 {R367TER_INC_DEROT2
, 0x55},
710 {R367TER_PPM_CPAMP_DIR
, 0x2c},
711 {R367TER_PPM_CPAMP_INV
, 0x00},
712 {R367TER_FREESTFE_1
, 0x00},
713 {R367TER_FREESTFE_2
, 0x1c},
714 {R367TER_DCOFFSET
, 0x00},
715 {R367TER_EN_PROCESS
, 0x05},
716 {R367TER_SDI_SMOOTHER
, 0x80},
717 {R367TER_FE_LOOP_OPEN
, 0x1c},
718 {R367TER_FREQOFF1
, 0x00},
719 {R367TER_FREQOFF2
, 0x00},
720 {R367TER_FREQOFF3
, 0x00},
721 {R367TER_TIMOFF1
, 0x00},
722 {R367TER_TIMOFF2
, 0x00},
724 {R367TER_EPQAUTO
, 0x01},
725 {R367TER_SYR_UPDATE
, 0xf5},
726 {R367TER_CHPFREE
, 0x00},
727 {R367TER_PPM_STATE_MAC
, 0x23},
728 {R367TER_INR_THRESHOLD
, 0xff},
729 {R367TER_EPQ_TPS_ID_CELL
, 0xf9},
730 {R367TER_EPQ_CFG
, 0x00},
731 {R367TER_EPQ_STATUS
, 0x01},
732 {R367TER_AUTORELOCK
, 0x81},
733 {R367TER_BER_THR_VMSB
, 0x00},
734 {R367TER_BER_THR_MSB
, 0x00},
735 {R367TER_BER_THR_LSB
, 0x00},
737 {R367TER_SPECTR_CFG
, 0x00},
738 {R367TER_CHC_DUMMY
, 0x18},
739 {R367TER_INC_CTL
, 0x88},
740 {R367TER_INCTHRES_COR1
, 0xb4},
741 {R367TER_INCTHRES_COR2
, 0x96},
742 {R367TER_INCTHRES_DET1
, 0x0e},
743 {R367TER_INCTHRES_DET2
, 0x11},
744 {R367TER_IIR_CELLNB
, 0x8d},
745 {R367TER_IIRCX_COEFF1_MSB
, 0x00},
746 {R367TER_IIRCX_COEFF1_LSB
, 0x00},
747 {R367TER_IIRCX_COEFF2_MSB
, 0x09},
748 {R367TER_IIRCX_COEFF2_LSB
, 0x18},
749 {R367TER_IIRCX_COEFF3_MSB
, 0x14},
750 {R367TER_IIRCX_COEFF3_LSB
, 0x9c},
751 {R367TER_IIRCX_COEFF4_MSB
, 0x00},
752 {R367TER_IIRCX_COEFF4_LSB
, 0x00},
753 {R367TER_IIRCX_COEFF5_MSB
, 0x36},
754 {R367TER_IIRCX_COEFF5_LSB
, 0x42},
755 {R367TER_FEPATH_CFG
, 0x00},
756 {R367TER_PMC1_FUNC
, 0x65},
757 {R367TER_PMC1_FOR
, 0x00},
758 {R367TER_PMC2_FUNC
, 0x00},
759 {R367TER_STATUS_ERR_DA
, 0xe0},
760 {R367TER_DIG_AGC_R
, 0xfe},
761 {R367TER_COMAGC_TARMSB
, 0x0b},
762 {R367TER_COM_AGC_TAR_ENMODE
, 0x41},
763 {R367TER_COM_AGC_CFG
, 0x3e},
764 {R367TER_COM_AGC_GAIN1
, 0x39},
765 {R367TER_AUT_AGC_TARGETMSB
, 0x0b},
766 {R367TER_LOCK_DET_MSB
, 0x01},
767 {R367TER_AGCTAR_LOCK_LSBS
, 0x40},
768 {R367TER_AUT_GAIN_EN
, 0xf4},
769 {R367TER_AUT_CFG
, 0xf0},
770 {R367TER_LOCKN
, 0x23},
771 {R367TER_INT_X_3
, 0x00},
772 {R367TER_INT_X_2
, 0x03},
773 {R367TER_INT_X_1
, 0x8d},
774 {R367TER_INT_X_0
, 0xa0},
775 {R367TER_MIN_ERRX_MSB
, 0x00},
776 {R367TER_COR_CTL
, 0x00},
777 {R367TER_COR_STAT
, 0xf6},
778 {R367TER_COR_INTEN
, 0x00},
779 {R367TER_COR_INTSTAT
, 0x3f},
780 {R367TER_COR_MODEGUARD
, 0x03},
781 {R367TER_AGC_CTL
, 0x08},
782 {R367TER_AGC_MANUAL1
, 0x00},
783 {R367TER_AGC_MANUAL2
, 0x00},
784 {R367TER_AGC_TARG
, 0x16},
785 {R367TER_AGC_GAIN1
, 0x53},
786 {R367TER_AGC_GAIN2
, 0x1d},
787 {R367TER_RESERVED_1
, 0x00},
788 {R367TER_RESERVED_2
, 0x00},
789 {R367TER_RESERVED_3
, 0x00},
790 {R367TER_CAS_CTL
, 0x44},
791 {R367TER_CAS_FREQ
, 0xb3},
792 {R367TER_CAS_DAGCGAIN
, 0x12},
793 {R367TER_SYR_CTL
, 0x04},
794 {R367TER_SYR_STAT
, 0x10},
795 {R367TER_SYR_NCO1
, 0x00},
796 {R367TER_SYR_NCO2
, 0x00},
797 {R367TER_SYR_OFFSET1
, 0x00},
798 {R367TER_SYR_OFFSET2
, 0x00},
799 {R367TER_FFT_CTL
, 0x00},
800 {R367TER_SCR_CTL
, 0x70},
801 {R367TER_PPM_CTL1
, 0xf8},
802 {R367TER_TRL_CTL
, 0xac},
803 {R367TER_TRL_NOMRATE1
, 0x1e},
804 {R367TER_TRL_NOMRATE2
, 0x58},
805 {R367TER_TRL_TIME1
, 0x1d},
806 {R367TER_TRL_TIME2
, 0xfc},
807 {R367TER_CRL_CTL
, 0x24},
808 {R367TER_CRL_FREQ1
, 0xad},
809 {R367TER_CRL_FREQ2
, 0x9d},
810 {R367TER_CRL_FREQ3
, 0xff},
811 {R367TER_CHC_CTL
, 0x01},
812 {R367TER_CHC_SNR
, 0xf0},
813 {R367TER_BDI_CTL
, 0x00},
814 {R367TER_DMP_CTL
, 0x00},
815 {R367TER_TPS_RCVD1
, 0x30},
816 {R367TER_TPS_RCVD2
, 0x02},
817 {R367TER_TPS_RCVD3
, 0x01},
818 {R367TER_TPS_RCVD4
, 0x00},
819 {R367TER_TPS_ID_CELL1
, 0x00},
820 {R367TER_TPS_ID_CELL2
, 0x00},
821 {R367TER_TPS_RCVD5_SET1
, 0x02},
822 {R367TER_TPS_SET2
, 0x02},
823 {R367TER_TPS_SET3
, 0x01},
824 {R367TER_TPS_CTL
, 0x00},
825 {R367TER_CTL_FFTOSNUM
, 0x34},
826 {R367TER_TESTSELECT
, 0x09},
827 {R367TER_MSC_REV
, 0x0a},
828 {R367TER_PIR_CTL
, 0x00},
829 {R367TER_SNR_CARRIER1
, 0xa1},
830 {R367TER_SNR_CARRIER2
, 0x9a},
831 {R367TER_PPM_CPAMP
, 0x2c},
832 {R367TER_TSM_AP0
, 0x00},
833 {R367TER_TSM_AP1
, 0x00},
834 {R367TER_TSM_AP2
, 0x00},
835 {R367TER_TSM_AP3
, 0x00},
836 {R367TER_TSM_AP4
, 0x00},
837 {R367TER_TSM_AP5
, 0x00},
838 {R367TER_TSM_AP6
, 0x00},
839 {R367TER_TSM_AP7
, 0x00},
840 {R367TER_CONSTMODE
, 0x01},
841 {R367TER_CONSTCARR1
, 0x00},
842 {R367TER_CONSTCARR2
, 0x00},
843 {R367TER_ICONSTEL
, 0x0a},
844 {R367TER_QCONSTEL
, 0x15},
845 {R367TER_TSTBISTRES0
, 0x00},
846 {R367TER_TSTBISTRES1
, 0x00},
847 {R367TER_TSTBISTRES2
, 0x28},
848 {R367TER_TSTBISTRES3
, 0x00},
849 {R367TER_SYR_TARGET_FFTADJT_MSB
, 0x00},
850 {R367TER_SYR_TARGET_FFTADJT_LSB
, 0x00},
851 {R367TER_SYR_TARGET_CHCADJT_MSB
, 0x00},
852 {R367TER_SYR_TARGET_CHCADJT_LSB
, 0x00},
853 {R367TER_SYR_FLAG
, 0x00},
854 {R367TER_CRL_TARGET1
, 0x00},
855 {R367TER_CRL_TARGET2
, 0x00},
856 {R367TER_CRL_TARGET3
, 0x00},
857 {R367TER_CRL_TARGET4
, 0x00},
858 {R367TER_CRL_FLAG
, 0x00},
859 {R367TER_TRL_TARGET1
, 0x00},
860 {R367TER_TRL_TARGET2
, 0x00},
861 {R367TER_TRL_CHC
, 0x00},
862 {R367TER_CHC_SNR_TARG
, 0x00},
863 {R367TER_TOP_TRACK
, 0x00},
864 {R367TER_TRACKER_FREE1
, 0x00},
865 {R367TER_ERROR_CRL1
, 0x00},
866 {R367TER_ERROR_CRL2
, 0x00},
867 {R367TER_ERROR_CRL3
, 0x00},
868 {R367TER_ERROR_CRL4
, 0x00},
869 {R367TER_DEC_NCO1
, 0x2c},
870 {R367TER_DEC_NCO2
, 0x0f},
871 {R367TER_DEC_NCO3
, 0x20},
873 {R367TER_SYR_FFTADJ1
, 0x00},
874 {R367TER_SYR_FFTADJ2
, 0x00},
875 {R367TER_SYR_CHCADJ1
, 0x00},
876 {R367TER_SYR_CHCADJ2
, 0x00},
877 {R367TER_SYR_OFF
, 0x00},
878 {R367TER_PPM_OFFSET1
, 0x00},
879 {R367TER_PPM_OFFSET2
, 0x03},
880 {R367TER_TRACKER_FREE2
, 0x00},
881 {R367TER_DEBG_LT10
, 0x00},
882 {R367TER_DEBG_LT11
, 0x00},
883 {R367TER_DEBG_LT12
, 0x00},
884 {R367TER_DEBG_LT13
, 0x00},
885 {R367TER_DEBG_LT14
, 0x00},
886 {R367TER_DEBG_LT15
, 0x00},
887 {R367TER_DEBG_LT16
, 0x00},
888 {R367TER_DEBG_LT17
, 0x00},
889 {R367TER_DEBG_LT18
, 0x00},
890 {R367TER_DEBG_LT19
, 0x00},
891 {R367TER_DEBG_LT1A
, 0x00},
892 {R367TER_DEBG_LT1B
, 0x00},
893 {R367TER_DEBG_LT1C
, 0x00},
894 {R367TER_DEBG_LT1D
, 0x00},
895 {R367TER_DEBG_LT1E
, 0x00},
896 {R367TER_DEBG_LT1F
, 0x00},
897 {R367TER_RCCFGH
, 0x00},
898 {R367TER_RCCFGM
, 0x00},
899 {R367TER_RCCFGL
, 0x00},
900 {R367TER_RCINSDELH
, 0x00},
901 {R367TER_RCINSDELM
, 0x00},
902 {R367TER_RCINSDELL
, 0x00},
903 {R367TER_RCSTATUS
, 0x00},
904 {R367TER_RCSPEED
, 0x6f},
905 {R367TER_RCDEBUGM
, 0xe7},
906 {R367TER_RCDEBUGL
, 0x9b},
907 {R367TER_RCOBSCFG
, 0x00},
908 {R367TER_RCOBSM
, 0x00},
909 {R367TER_RCOBSL
, 0x00},
910 {R367TER_RCFECSPY
, 0x00},
911 {R367TER_RCFSPYCFG
, 0x00},
912 {R367TER_RCFSPYDATA
, 0x00},
913 {R367TER_RCFSPYOUT
, 0x00},
914 {R367TER_RCFSTATUS
, 0x00},
915 {R367TER_RCFGOODPACK
, 0x00},
916 {R367TER_RCFPACKCNT
, 0x00},
917 {R367TER_RCFSPYMISC
, 0x00},
918 {R367TER_RCFBERCPT4
, 0x00},
919 {R367TER_RCFBERCPT3
, 0x00},
920 {R367TER_RCFBERCPT2
, 0x00},
921 {R367TER_RCFBERCPT1
, 0x00},
922 {R367TER_RCFBERCPT0
, 0x00},
923 {R367TER_RCFBERERR2
, 0x00},
924 {R367TER_RCFBERERR1
, 0x00},
925 {R367TER_RCFBERERR0
, 0x00},
926 {R367TER_RCFSTATESM
, 0x00},
927 {R367TER_RCFSTATESL
, 0x00},
928 {R367TER_RCFSPYBER
, 0x00},
929 {R367TER_RCFSPYDISTM
, 0x00},
930 {R367TER_RCFSPYDISTL
, 0x00},
931 {R367TER_RCFSPYOBS7
, 0x00},
932 {R367TER_RCFSPYOBS6
, 0x00},
933 {R367TER_RCFSPYOBS5
, 0x00},
934 {R367TER_RCFSPYOBS4
, 0x00},
935 {R367TER_RCFSPYOBS3
, 0x00},
936 {R367TER_RCFSPYOBS2
, 0x00},
937 {R367TER_RCFSPYOBS1
, 0x00},
938 {R367TER_RCFSPYOBS0
, 0x00},
939 {R367TER_FECM
, 0x01},
940 {R367TER_VTH12
, 0xff},
941 {R367TER_VTH23
, 0xa1},
942 {R367TER_VTH34
, 0x64},
943 {R367TER_VTH56
, 0x40},
944 {R367TER_VTH67
, 0x00},
945 {R367TER_VTH78
, 0x2c},
946 {R367TER_VITCURPUN
, 0x12},
947 {R367TER_VERROR
, 0x01},
948 {R367TER_PRVIT
, 0x3f},
949 {R367TER_VAVSRVIT
, 0x00},
950 {R367TER_VSTATUSVIT
, 0xbd},
951 {R367TER_VTHINUSE
, 0xa1},
952 {R367TER_KDIV12
, 0x20},
953 {R367TER_KDIV23
, 0x40},
954 {R367TER_KDIV34
, 0x20},
955 {R367TER_KDIV56
, 0x30},
956 {R367TER_KDIV67
, 0x00},
957 {R367TER_KDIV78
, 0x30},
958 {R367TER_SIGPOWER
, 0x54},
959 {R367TER_DEMAPVIT
, 0x40},
960 {R367TER_VITSCALE
, 0x00},
961 {R367TER_FFEC1PRG
, 0x00},
962 {R367TER_FVITCURPUN
, 0x12},
963 {R367TER_FVERROR
, 0x01},
964 {R367TER_FVSTATUSVIT
, 0xbd},
965 {R367TER_DEBUG_LT1
, 0x00},
966 {R367TER_DEBUG_LT2
, 0x00},
967 {R367TER_DEBUG_LT3
, 0x00},
968 {R367TER_TSTSFMET
, 0x00},
969 {R367TER_SELOUT
, 0x00},
970 {R367TER_TSYNC
, 0x00},
971 {R367TER_TSTERR
, 0x00},
972 {R367TER_TSFSYNC
, 0x00},
973 {R367TER_TSTSFERR
, 0x00},
974 {R367TER_TSTTSSF1
, 0x01},
975 {R367TER_TSTTSSF2
, 0x1f},
976 {R367TER_TSTTSSF3
, 0x00},
977 {R367TER_TSTTS1
, 0x00},
978 {R367TER_TSTTS2
, 0x1f},
979 {R367TER_TSTTS3
, 0x01},
980 {R367TER_TSTTS4
, 0x00},
981 {R367TER_TSTTSRC
, 0x00},
982 {R367TER_TSTTSRS
, 0x00},
983 {R367TER_TSSTATEM
, 0xb0},
984 {R367TER_TSSTATEL
, 0x40},
985 {R367TER_TSCFGH
, 0x80},
986 {R367TER_TSCFGM
, 0x00},
987 {R367TER_TSCFGL
, 0x20},
988 {R367TER_TSSYNC
, 0x00},
989 {R367TER_TSINSDELH
, 0x00},
990 {R367TER_TSINSDELM
, 0x00},
991 {R367TER_TSINSDELL
, 0x00},
992 {R367TER_TSDIVN
, 0x03},
993 {R367TER_TSDIVPM
, 0x00},
994 {R367TER_TSDIVPL
, 0x00},
995 {R367TER_TSDIVQM
, 0x00},
996 {R367TER_TSDIVQL
, 0x00},
997 {R367TER_TSDILSTKM
, 0x00},
998 {R367TER_TSDILSTKL
, 0x00},
999 {R367TER_TSSPEED
, 0x6f},
1000 {R367TER_TSSTATUS
, 0x81},
1001 {R367TER_TSSTATUS2
, 0x6a},
1002 {R367TER_TSBITRATEM
, 0x0f},
1003 {R367TER_TSBITRATEL
, 0xc6},
1004 {R367TER_TSPACKLENM
, 0x00},
1005 {R367TER_TSPACKLENL
, 0xfc},
1006 {R367TER_TSBLOCLENM
, 0x0a},
1007 {R367TER_TSBLOCLENL
, 0x80},
1008 {R367TER_TSDLYH
, 0x90},
1009 {R367TER_TSDLYM
, 0x68},
1010 {R367TER_TSDLYL
, 0x01},
1011 {R367TER_TSNPDAV
, 0x00},
1012 {R367TER_TSBUFSTATH
, 0x00},
1013 {R367TER_TSBUFSTATM
, 0x00},
1014 {R367TER_TSBUFSTATL
, 0x00},
1015 {R367TER_TSDEBUGM
, 0xcf},
1016 {R367TER_TSDEBUGL
, 0x1e},
1017 {R367TER_TSDLYSETH
, 0x00},
1018 {R367TER_TSDLYSETM
, 0x68},
1019 {R367TER_TSDLYSETL
, 0x00},
1020 {R367TER_TSOBSCFG
, 0x00},
1021 {R367TER_TSOBSM
, 0x47},
1022 {R367TER_TSOBSL
, 0x1f},
1023 {R367TER_ERRCTRL1
, 0x95},
1024 {R367TER_ERRCNT1H
, 0x80},
1025 {R367TER_ERRCNT1M
, 0x00},
1026 {R367TER_ERRCNT1L
, 0x00},
1027 {R367TER_ERRCTRL2
, 0x95},
1028 {R367TER_ERRCNT2H
, 0x00},
1029 {R367TER_ERRCNT2M
, 0x00},
1030 {R367TER_ERRCNT2L
, 0x00},
1031 {R367TER_FECSPY
, 0x88},
1032 {R367TER_FSPYCFG
, 0x2c},
1033 {R367TER_FSPYDATA
, 0x3a},
1034 {R367TER_FSPYOUT
, 0x06},
1035 {R367TER_FSTATUS
, 0x61},
1036 {R367TER_FGOODPACK
, 0xff},
1037 {R367TER_FPACKCNT
, 0xff},
1038 {R367TER_FSPYMISC
, 0x66},
1039 {R367TER_FBERCPT4
, 0x00},
1040 {R367TER_FBERCPT3
, 0x00},
1041 {R367TER_FBERCPT2
, 0x36},
1042 {R367TER_FBERCPT1
, 0x36},
1043 {R367TER_FBERCPT0
, 0x14},
1044 {R367TER_FBERERR2
, 0x00},
1045 {R367TER_FBERERR1
, 0x03},
1046 {R367TER_FBERERR0
, 0x28},
1047 {R367TER_FSTATESM
, 0x00},
1048 {R367TER_FSTATESL
, 0x02},
1049 {R367TER_FSPYBER
, 0x00},
1050 {R367TER_FSPYDISTM
, 0x01},
1051 {R367TER_FSPYDISTL
, 0x9f},
1052 {R367TER_FSPYOBS7
, 0xc9},
1053 {R367TER_FSPYOBS6
, 0x99},
1054 {R367TER_FSPYOBS5
, 0x08},
1055 {R367TER_FSPYOBS4
, 0xec},
1056 {R367TER_FSPYOBS3
, 0x01},
1057 {R367TER_FSPYOBS2
, 0x0f},
1058 {R367TER_FSPYOBS1
, 0xf5},
1059 {R367TER_FSPYOBS0
, 0x08},
1060 {R367TER_SFDEMAP
, 0x40},
1061 {R367TER_SFERROR
, 0x00},
1062 {R367TER_SFAVSR
, 0x30},
1063 {R367TER_SFECSTATUS
, 0xcc},
1064 {R367TER_SFKDIV12
, 0x20},
1065 {R367TER_SFKDIV23
, 0x40},
1066 {R367TER_SFKDIV34
, 0x20},
1067 {R367TER_SFKDIV56
, 0x20},
1068 {R367TER_SFKDIV67
, 0x00},
1069 {R367TER_SFKDIV78
, 0x20},
1070 {R367TER_SFDILSTKM
, 0x00},
1071 {R367TER_SFDILSTKL
, 0x00},
1072 {R367TER_SFSTATUS
, 0xb5},
1073 {R367TER_SFDLYH
, 0x90},
1074 {R367TER_SFDLYM
, 0x60},
1075 {R367TER_SFDLYL
, 0x01},
1076 {R367TER_SFDLYSETH
, 0xc0},
1077 {R367TER_SFDLYSETM
, 0x60},
1078 {R367TER_SFDLYSETL
, 0x00},
1079 {R367TER_SFOBSCFG
, 0x00},
1080 {R367TER_SFOBSM
, 0x47},
1081 {R367TER_SFOBSL
, 0x05},
1082 {R367TER_SFECINFO
, 0x40},
1083 {R367TER_SFERRCTRL
, 0x74},
1084 {R367TER_SFERRCNTH
, 0x80},
1085 {R367TER_SFERRCNTM
, 0x00},
1086 {R367TER_SFERRCNTL
, 0x00},
1087 {R367TER_SYMBRATEM
, 0x2f},
1088 {R367TER_SYMBRATEL
, 0x50},
1089 {R367TER_SYMBSTATUS
, 0x7f},
1090 {R367TER_SYMBCFG
, 0x00},
1091 {R367TER_SYMBFIFOM
, 0xf4},
1092 {R367TER_SYMBFIFOL
, 0x0d},
1093 {R367TER_SYMBOFFSM
, 0xf0},
1094 {R367TER_SYMBOFFSL
, 0x2d},
1095 {0x0000, 0x00} /* EOT */
1098 static const struct st_register def0367dd_qam
[] = {
1099 {R367CAB_CTRL_1
, 0x06}, /* Orginal 0x04 */
1100 {R367CAB_CTRL_2
, 0x03},
1101 {R367CAB_IT_STATUS1
, 0x2b},
1102 {R367CAB_IT_STATUS2
, 0x08},
1103 {R367CAB_IT_EN1
, 0x00},
1104 {R367CAB_IT_EN2
, 0x00},
1105 {R367CAB_CTRL_STATUS
, 0x04},
1106 {R367CAB_TEST_CTL
, 0x00},
1107 {R367CAB_AGC_CTL
, 0x73},
1108 {R367CAB_AGC_IF_CFG
, 0x50},
1109 {R367CAB_AGC_RF_CFG
, 0x02}, /* RF Freeze */
1110 {R367CAB_AGC_PWM_CFG
, 0x03},
1111 {R367CAB_AGC_PWR_REF_L
, 0x5a},
1112 {R367CAB_AGC_PWR_REF_H
, 0x00},
1113 {R367CAB_AGC_RF_TH_L
, 0xff},
1114 {R367CAB_AGC_RF_TH_H
, 0x07},
1115 {R367CAB_AGC_IF_LTH_L
, 0x00},
1116 {R367CAB_AGC_IF_LTH_H
, 0x08},
1117 {R367CAB_AGC_IF_HTH_L
, 0xff},
1118 {R367CAB_AGC_IF_HTH_H
, 0x07},
1119 {R367CAB_AGC_PWR_RD_L
, 0xa0},
1120 {R367CAB_AGC_PWR_RD_M
, 0xe9},
1121 {R367CAB_AGC_PWR_RD_H
, 0x03},
1122 {R367CAB_AGC_PWM_IFCMD_L
, 0xe4},
1123 {R367CAB_AGC_PWM_IFCMD_H
, 0x00},
1124 {R367CAB_AGC_PWM_RFCMD_L
, 0xff},
1125 {R367CAB_AGC_PWM_RFCMD_H
, 0x07},
1126 {R367CAB_IQDEM_CFG
, 0x01},
1127 {R367CAB_MIX_NCO_LL
, 0x22},
1128 {R367CAB_MIX_NCO_HL
, 0x96},
1129 {R367CAB_MIX_NCO_HH
, 0x55},
1130 {R367CAB_SRC_NCO_LL
, 0xff},
1131 {R367CAB_SRC_NCO_LH
, 0x0c},
1132 {R367CAB_SRC_NCO_HL
, 0xf5},
1133 {R367CAB_SRC_NCO_HH
, 0x20},
1134 {R367CAB_IQDEM_GAIN_SRC_L
, 0x06},
1135 {R367CAB_IQDEM_GAIN_SRC_H
, 0x01},
1136 {R367CAB_IQDEM_DCRM_CFG_LL
, 0xfe},
1137 {R367CAB_IQDEM_DCRM_CFG_LH
, 0xff},
1138 {R367CAB_IQDEM_DCRM_CFG_HL
, 0x0f},
1139 {R367CAB_IQDEM_DCRM_CFG_HH
, 0x00},
1140 {R367CAB_IQDEM_ADJ_COEFF0
, 0x34},
1141 {R367CAB_IQDEM_ADJ_COEFF1
, 0xae},
1142 {R367CAB_IQDEM_ADJ_COEFF2
, 0x46},
1143 {R367CAB_IQDEM_ADJ_COEFF3
, 0x77},
1144 {R367CAB_IQDEM_ADJ_COEFF4
, 0x96},
1145 {R367CAB_IQDEM_ADJ_COEFF5
, 0x69},
1146 {R367CAB_IQDEM_ADJ_COEFF6
, 0xc7},
1147 {R367CAB_IQDEM_ADJ_COEFF7
, 0x01},
1148 {R367CAB_IQDEM_ADJ_EN
, 0x04},
1149 {R367CAB_IQDEM_ADJ_AGC_REF
, 0x94},
1150 {R367CAB_ALLPASSFILT1
, 0xc9},
1151 {R367CAB_ALLPASSFILT2
, 0x2d},
1152 {R367CAB_ALLPASSFILT3
, 0xa3},
1153 {R367CAB_ALLPASSFILT4
, 0xfb},
1154 {R367CAB_ALLPASSFILT5
, 0xf6},
1155 {R367CAB_ALLPASSFILT6
, 0x45},
1156 {R367CAB_ALLPASSFILT7
, 0x6f},
1157 {R367CAB_ALLPASSFILT8
, 0x7e},
1158 {R367CAB_ALLPASSFILT9
, 0x05},
1159 {R367CAB_ALLPASSFILT10
, 0x0a},
1160 {R367CAB_ALLPASSFILT11
, 0x51},
1161 {R367CAB_TRL_AGC_CFG
, 0x20},
1162 {R367CAB_TRL_LPF_CFG
, 0x28},
1163 {R367CAB_TRL_LPF_ACQ_GAIN
, 0x44},
1164 {R367CAB_TRL_LPF_TRK_GAIN
, 0x22},
1165 {R367CAB_TRL_LPF_OUT_GAIN
, 0x03},
1166 {R367CAB_TRL_LOCKDET_LTH
, 0x04},
1167 {R367CAB_TRL_LOCKDET_HTH
, 0x11},
1168 {R367CAB_TRL_LOCKDET_TRGVAL
, 0x20},
1169 {R367CAB_IQ_QAM
, 0x01},
1170 {R367CAB_FSM_STATE
, 0xa0},
1171 {R367CAB_FSM_CTL
, 0x08},
1172 {R367CAB_FSM_STS
, 0x0c},
1173 {R367CAB_FSM_SNR0_HTH
, 0x00},
1174 {R367CAB_FSM_SNR1_HTH
, 0x00},
1175 {R367CAB_FSM_SNR2_HTH
, 0x00},
1176 {R367CAB_FSM_SNR0_LTH
, 0x00},
1177 {R367CAB_FSM_SNR1_LTH
, 0x00},
1178 {R367CAB_FSM_EQA1_HTH
, 0x00},
1179 {R367CAB_FSM_TEMPO
, 0x32},
1180 {R367CAB_FSM_CONFIG
, 0x03},
1181 {R367CAB_EQU_I_TESTTAP_L
, 0x11},
1182 {R367CAB_EQU_I_TESTTAP_M
, 0x00},
1183 {R367CAB_EQU_I_TESTTAP_H
, 0x00},
1184 {R367CAB_EQU_TESTAP_CFG
, 0x00},
1185 {R367CAB_EQU_Q_TESTTAP_L
, 0xff},
1186 {R367CAB_EQU_Q_TESTTAP_M
, 0x00},
1187 {R367CAB_EQU_Q_TESTTAP_H
, 0x00},
1188 {R367CAB_EQU_TAP_CTRL
, 0x00},
1189 {R367CAB_EQU_CTR_CRL_CONTROL_L
, 0x11},
1190 {R367CAB_EQU_CTR_CRL_CONTROL_H
, 0x05},
1191 {R367CAB_EQU_CTR_HIPOW_L
, 0x00},
1192 {R367CAB_EQU_CTR_HIPOW_H
, 0x00},
1193 {R367CAB_EQU_I_EQU_LO
, 0xef},
1194 {R367CAB_EQU_I_EQU_HI
, 0x00},
1195 {R367CAB_EQU_Q_EQU_LO
, 0xee},
1196 {R367CAB_EQU_Q_EQU_HI
, 0x00},
1197 {R367CAB_EQU_MAPPER
, 0xc5},
1198 {R367CAB_EQU_SWEEP_RATE
, 0x80},
1199 {R367CAB_EQU_SNR_LO
, 0x64},
1200 {R367CAB_EQU_SNR_HI
, 0x03},
1201 {R367CAB_EQU_GAMMA_LO
, 0x00},
1202 {R367CAB_EQU_GAMMA_HI
, 0x00},
1203 {R367CAB_EQU_ERR_GAIN
, 0x36},
1204 {R367CAB_EQU_RADIUS
, 0xaa},
1205 {R367CAB_EQU_FFE_MAINTAP
, 0x00},
1206 {R367CAB_EQU_FFE_LEAKAGE
, 0x63},
1207 {R367CAB_EQU_FFE_MAINTAP_POS
, 0xdf},
1208 {R367CAB_EQU_GAIN_WIDE
, 0x88},
1209 {R367CAB_EQU_GAIN_NARROW
, 0x41},
1210 {R367CAB_EQU_CTR_LPF_GAIN
, 0xd1},
1211 {R367CAB_EQU_CRL_LPF_GAIN
, 0xa7},
1212 {R367CAB_EQU_GLOBAL_GAIN
, 0x06},
1213 {R367CAB_EQU_CRL_LD_SEN
, 0x85},
1214 {R367CAB_EQU_CRL_LD_VAL
, 0xe2},
1215 {R367CAB_EQU_CRL_TFR
, 0x20},
1216 {R367CAB_EQU_CRL_BISTH_LO
, 0x00},
1217 {R367CAB_EQU_CRL_BISTH_HI
, 0x00},
1218 {R367CAB_EQU_SWEEP_RANGE_LO
, 0x00},
1219 {R367CAB_EQU_SWEEP_RANGE_HI
, 0x00},
1220 {R367CAB_EQU_CRL_LIMITER
, 0x40},
1221 {R367CAB_EQU_MODULUS_MAP
, 0x90},
1222 {R367CAB_EQU_PNT_GAIN
, 0xa7},
1223 {R367CAB_FEC_AC_CTR_0
, 0x16},
1224 {R367CAB_FEC_AC_CTR_1
, 0x0b},
1225 {R367CAB_FEC_AC_CTR_2
, 0x88},
1226 {R367CAB_FEC_AC_CTR_3
, 0x02},
1227 {R367CAB_FEC_STATUS
, 0x12},
1228 {R367CAB_RS_COUNTER_0
, 0x7d},
1229 {R367CAB_RS_COUNTER_1
, 0xd0},
1230 {R367CAB_RS_COUNTER_2
, 0x19},
1231 {R367CAB_RS_COUNTER_3
, 0x0b},
1232 {R367CAB_RS_COUNTER_4
, 0xa3},
1233 {R367CAB_RS_COUNTER_5
, 0x00},
1234 {R367CAB_BERT_0
, 0x01},
1235 {R367CAB_BERT_1
, 0x25},
1236 {R367CAB_BERT_2
, 0x41},
1237 {R367CAB_BERT_3
, 0x39},
1238 {R367CAB_OUTFORMAT_0
, 0xc2},
1239 {R367CAB_OUTFORMAT_1
, 0x22},
1240 {R367CAB_SMOOTHER_2
, 0x28},
1241 {R367CAB_TSMF_CTRL_0
, 0x01},
1242 {R367CAB_TSMF_CTRL_1
, 0xc6},
1243 {R367CAB_TSMF_CTRL_3
, 0x43},
1244 {R367CAB_TS_ON_ID_0
, 0x00},
1245 {R367CAB_TS_ON_ID_1
, 0x00},
1246 {R367CAB_TS_ON_ID_2
, 0x00},
1247 {R367CAB_TS_ON_ID_3
, 0x00},
1248 {R367CAB_RE_STATUS_0
, 0x00},
1249 {R367CAB_RE_STATUS_1
, 0x00},
1250 {R367CAB_RE_STATUS_2
, 0x00},
1251 {R367CAB_RE_STATUS_3
, 0x00},
1252 {R367CAB_TS_STATUS_0
, 0x00},
1253 {R367CAB_TS_STATUS_1
, 0x00},
1254 {R367CAB_TS_STATUS_2
, 0xa0},
1255 {R367CAB_TS_STATUS_3
, 0x00},
1256 {R367CAB_T_O_ID_0
, 0x00},
1257 {R367CAB_T_O_ID_1
, 0x00},
1258 {R367CAB_T_O_ID_2
, 0x00},
1259 {R367CAB_T_O_ID_3
, 0x00},
1260 {0x0000, 0x00} /* EOT */
1263 static const struct st_register def0367dd_base
[] = {
1264 {R367TER_IOCFG0
, 0x80},
1265 {R367TER_DAC0R
, 0x00},
1266 {R367TER_IOCFG1
, 0x00},
1267 {R367TER_DAC1R
, 0x00},
1268 {R367TER_IOCFG2
, 0x00},
1269 {R367TER_SDFR
, 0x00},
1270 {R367TER_AUX_CLK
, 0x00},
1271 {R367TER_FREESYS1
, 0x00},
1272 {R367TER_FREESYS2
, 0x00},
1273 {R367TER_FREESYS3
, 0x00},
1274 {R367TER_GPIO_CFG
, 0x55},
1275 {R367TER_GPIO_CMD
, 0x01},
1276 {R367TER_TSTRES
, 0x00},
1277 {R367TER_ANACTRL
, 0x00},
1278 {R367TER_TSTBUS
, 0x00},
1279 {R367TER_RF_AGC2
, 0x20},
1280 {R367TER_ANADIGCTRL
, 0x0b},
1281 {R367TER_PLLMDIV
, 0x01},
1282 {R367TER_PLLNDIV
, 0x08},
1283 {R367TER_PLLSETUP
, 0x18},
1284 {R367TER_DUAL_AD12
, 0x04},
1285 {R367TER_TSTBIST
, 0x00},
1286 {0x0000, 0x00} /* EOT */
1294 st_register
*stv0367_deftabs
[STV0367_DEFTAB_MAX
][STV0367_TAB_MAX
] = {
1295 /* generic default/init tabs */
1296 { def0367ter
, def0367cab
, NULL
},
1297 /* default tabs for digital devices cards/flex modules */
1298 { def0367dd_ofdm
, def0367dd_qam
, def0367dd_base
},