Lines Matching +full:0 +full:x0e

31 } while (0)
35 } while (0)
39 } while (0)
46 .addr = state->cfg->i2c_address, .flags = 0, .buf = buf, .len = len+1 in itd1000_write_regs()
56 buf[0] = reg; in itd1000_write_regs()
59 /* itd_dbg("wr %02x: %02x\n", reg, v[0]); */ in itd1000_write_regs()
65 return 0; in itd1000_write_regs()
72 { .addr = state->cfg->i2c_address, .flags = 0, .buf = &reg, .len = 1 }, in itd1000_read_reg()
77 itd1000_write_regs(state, (reg - 1) & 0xff, &state->shadow[(reg - 1) & 0xff], 1); in itd1000_read_reg()
100 { 0, 0x8, 0x3 },
101 { 5200000, 0x8, 0x3 },
102 { 12200000, 0x4, 0x3 },
103 { 15400000, 0x2, 0x3 },
104 { 19800000, 0x2, 0x3 },
105 { 21500000, 0x2, 0x3 },
106 { 24500000, 0x2, 0x3 },
107 { 28400000, 0x2, 0x3 },
108 { 33400000, 0x2, 0x3 },
109 { 34400000, 0x1, 0x4 },
110 { 34400000, 0x1, 0x4 },
111 { 38400000, 0x1, 0x4 },
112 { 38400000, 0x1, 0x4 },
113 { 40400000, 0x1, 0x4 },
114 { 45400000, 0x1, 0x4 },
120 u8 con1 = itd1000_read_reg(state, CON1) & 0xfd; in itd1000_set_lpf_bw()
121 u8 pllfh = itd1000_read_reg(state, PLLFH) & 0x0f; in itd1000_set_lpf_bw()
122 u8 bbgvmin = itd1000_read_reg(state, BBGVMIN) & 0xf0; in itd1000_set_lpf_bw()
123 u8 bw = itd1000_read_reg(state, BW) & 0xf0; in itd1000_set_lpf_bw()
130 for (i = 0; i < ARRAY_SIZE(itd1000_lpf_pga); i++) in itd1000_set_lpf_bw()
135 itd1000_write_reg(state, BW, bw | (i & 0x0f)); in itd1000_set_lpf_bw()
139 itd1000_write_reg(state, CON1, con1 | (0 << 1)); in itd1000_set_lpf_bw()
166 u8 gvbb_i2c = itd1000_read_reg(state, GVBB_I2C) & 0xbf; in itd1000_set_vco()
167 u8 vco_chp1_i2c = itd1000_read_reg(state, VCO_CHP1_I2C) & 0x0f; in itd1000_set_vco()
173 for (i = 0; i < ARRAY_SIZE(itd1000_vcorg); i++) { in itd1000_set_vco()
178 adcout = itd1000_read_reg(state, PLLLOCK) & 0x0f; in itd1000_set_vco()
198 { 1075000, { 0x59, 0x1d, 0x1c, 0x17, 0x16, 0x0f, 0x0e, 0x0c, 0x0b, 0x0a } },
199 { 1250000, { 0x89, 0x1e, 0x1d, 0x17, 0x15, 0x0f, 0x0e, 0x0c, 0x0b, 0x0a } },
200 { 1450000, { 0x89, 0x1e, 0x1d, 0x17, 0x15, 0x0f, 0x0e, 0x0c, 0x0b, 0x0a } },
201 { 1650000, { 0x69, 0x1e, 0x1d, 0x17, 0x15, 0x0f, 0x0e, 0x0c, 0x0b, 0x0a } },
202 { 1750000, { 0x69, 0x1e, 0x17, 0x15, 0x14, 0x0f, 0x0e, 0x0c, 0x0b, 0x0a } },
203 { 1850000, { 0x69, 0x1d, 0x17, 0x16, 0x14, 0x0f, 0x0e, 0x0d, 0x0b, 0x0a } },
204 { 1900000, { 0x69, 0x1d, 0x17, 0x15, 0x14, 0x0f, 0x0e, 0x0d, 0x0b, 0x0a } },
205 { 1950000, { 0x69, 0x1d, 0x17, 0x16, 0x14, 0x13, 0x0e, 0x0d, 0x0b, 0x0a } },
206 { 2050000, { 0x69, 0x1e, 0x1d, 0x17, 0x16, 0x14, 0x13, 0x0e, 0x0b, 0x0a } },
207 { 2150000, { 0x69, 0x1d, 0x1c, 0x17, 0x15, 0x14, 0x13, 0x0f, 0x0e, 0x0b } }
232 itd1000_write_reg(state, PLLNH, 0x80); /* PLLNH */ in itd1000_set_lo()
233 itd1000_write_reg(state, PLLNL, plln & 0xff); in itd1000_set_lo()
234 itd1000_write_reg(state, PLLFH, (itd1000_read_reg(state, PLLFH) & 0xf0) | ((pllf >> 16) & 0x0f)); in itd1000_set_lo()
235 itd1000_write_reg(state, PLLFM, (pllf >> 8) & 0xff); in itd1000_set_lo()
236 itd1000_write_reg(state, PLLFL, (pllf >> 0) & 0xff); in itd1000_set_lo()
238 for (i = 0; i < ARRAY_SIZE(itd1000_fre_values); i++) { in itd1000_set_lo()
241 itd1000_write_reg(state, RFTR, itd1000_fre_values[i].values[0]); in itd1000_set_lo()
242 for (j = 0; j < 9; j++) in itd1000_set_lo()
260 pllcon1 = itd1000_read_reg(state, PLLCON1) & 0x7f; in itd1000_set_parameters()
264 return 0; in itd1000_set_parameters()
271 return 0; in itd1000_get_frequency()
276 return 0; in itd1000_get_bandwidth()
280 { PLLCON1, 0x65 }, /* Register does not change */
281 { PLLNH, 0x80 }, /* Bits [7:6] do not change */
282 { RESERVED_0X6D, 0x3b },
283 { VCO_CHP2_I2C, 0x12 },
284 { 0x72, 0xf9 }, /* No such regsister defined */
285 { RESERVED_0X73, 0xff },
286 { RESERVED_0X74, 0xb2 },
287 { RESERVED_0X75, 0xc7 },
288 { EXTGVBBRF, 0xf0 },
289 { DIVAGCCK, 0x80 },
290 { BBTR, 0xa0 },
291 { RESERVED_0X7E, 0x4f },
292 { 0x82, 0x88 }, /* No such regsister defined */
293 { 0x83, 0x80 }, /* No such regsister defined */
294 { 0x84, 0x80 }, /* No such regsister defined */
295 { RESERVED_0X85, 0x74 },
296 { RESERVED_0X86, 0xff },
297 { RESERVED_0X88, 0x02 },
298 { RESERVED_0X89, 0x16 },
299 { RFST0, 0x1f },
300 { RESERVED_0X94, 0x66 },
301 { RESERVED_0X95, 0x66 },
302 { RESERVED_0X96, 0x77 },
303 { RESERVED_0X97, 0x99 },
304 { RESERVED_0X98, 0xff },
305 { RESERVED_0X99, 0xfc },
306 { RESERVED_0X9A, 0xba },
307 { RESERVED_0X9B, 0xaa },
311 { VCO_CHP1_I2C, 0x8a },
312 { BW, 0x87 },
313 { GVBB_I2C, 0x03 },
314 { BBGVMIN, 0x03 },
315 { CON1, 0x2e },
324 for (i = 0; i < ARRAY_SIZE(itd1000_init_tab); i++) in itd1000_init()
325 itd1000_write_reg(state, itd1000_init_tab[i][0], itd1000_init_tab[i][1]); in itd1000_init()
327 for (i = 0; i < ARRAY_SIZE(itd1000_reinit_tab); i++) in itd1000_init()
328 itd1000_write_reg(state, itd1000_reinit_tab[i][0], itd1000_reinit_tab[i][1]); in itd1000_init()
330 return 0; in itd1000_init()
335 return 0; in itd1000_sleep()
366 u8 i = 0; in itd1000_attach()
375 i = itd1000_read_reg(state, 0); in itd1000_attach()
376 if (i != 0) { in itd1000_attach()
382 memset(state->shadow, 0xff, sizeof(state->shadow)); in itd1000_attach()
383 for (i = 0x65; i < 0x9c; i++) in itd1000_attach()