Lines Matching +full:0 +full:x64
17 #define I2C_ADDRESS 0x60
19 #define REG_PART_REV 0
23 #define REG_LOCK 0x12
25 #define PART_REV 0x85
37 #define MT2266_UHF 0
45 …ne dprintk(args...) do { if (debug) {printk(KERN_DEBUG "MT2266: " args); printk("\n"); }} while (0)
51 { .addr = priv->cfg->i2c_address, .flags = 0, .buf = ®, .len = 1 }, in mt2266_readreg()
58 return 0; in mt2266_readreg()
66 .addr = priv->cfg->i2c_address, .flags = 0, .buf = buf, .len = 2 in mt2266_writereg()
72 return 0; in mt2266_writereg()
79 .addr = priv->cfg->i2c_address, .flags = 0, .buf = buf, .len = len in mt2266_writeregs()
85 return 0; in mt2266_writeregs()
89 static u8 mt2266_init1[] = { REG_TUNE, 0x00, 0x00, 0x28,
90 0x00, 0x52, 0x99, 0x3f };
93 0x17, 0x6d, 0x71, 0x61, 0xc0, 0xbf, 0xff, 0xdc, 0x00, 0x0a, 0xd4,
94 0x03, 0x64, 0x64, 0x64, 0x64, 0x22, 0xaa, 0xf2, 0x1e, 0x80, 0x14,
95 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x7f, 0x5e, 0x3f, 0xff, 0xff,
96 0xff, 0x00, 0x77, 0x0f, 0x2d
99 static u8 mt2266_init_8mhz[] = { REG_BANDWIDTH, 0x22, 0x22, 0x22, 0x22,
100 0x22, 0x22, 0x22, 0x22 };
102 static u8 mt2266_init_7mhz[] = { REG_BANDWIDTH, 0x32, 0x32, 0x32, 0x32,
103 0x32, 0x32, 0x32, 0x32 };
105 static u8 mt2266_init_6mhz[] = { REG_BANDWIDTH, 0xa7, 0xa7, 0xa7, 0xa7,
106 0xa7, 0xa7, 0xa7, 0xa7 };
108 static u8 mt2266_uhf[] = { 0x1d, 0xdc, 0x00, 0x0a, 0xd4, 0x03, 0x64, 0x64,
109 0x64, 0x64, 0x22, 0xaa, 0xf2, 0x1e, 0x80, 0x14 };
111 static u8 mt2266_vhf[] = { 0x1d, 0xfe, 0x00, 0x00, 0xb4, 0x03, 0xa5, 0xa5,
112 0xa5, 0xa5, 0x82, 0xaa, 0xf1, 0x17, 0x80, 0x1f };
120 int ret=0; in mt2266_set_params()
159 mt2266_writereg(priv, 0x05, 0x04); in mt2266_set_params()
160 mt2266_writereg(priv, 0x19, 0x61); in mt2266_set_params()
164 mt2266_writereg(priv, 0x05, 0x52); in mt2266_set_params()
165 mt2266_writereg(priv, 0x19, 0x61); in mt2266_set_params()
171 lnaband = 0xEE; in mt2266_set_params()
173 lnaband = 0xDD; in mt2266_set_params()
175 lnaband = 0xCC; in mt2266_set_params()
177 lnaband = 0xBB; in mt2266_set_params()
179 lnaband = 0xAA; in mt2266_set_params()
181 lnaband = 0x99; in mt2266_set_params()
183 lnaband = 0x88; in mt2266_set_params()
185 lnaband = 0x77; in mt2266_set_params()
187 lnaband = 0x66; in mt2266_set_params()
189 lnaband = 0x55; in mt2266_set_params()
191 lnaband = 0x44; in mt2266_set_params()
193 lnaband = 0x33; in mt2266_set_params()
195 lnaband = 0x22; in mt2266_set_params()
197 lnaband = 0x11; in mt2266_set_params()
199 b[0] = REG_TUNE; in mt2266_set_params()
200 b[1] = (tune >> 8) & 0x1F; in mt2266_set_params()
201 b[2] = tune & 0xFF; in mt2266_set_params()
212 b[0] = 0x05; in mt2266_set_params()
213 b[1] = (priv->band == MT2266_VHF) ? 0x52 : 0x62; in mt2266_set_params()
219 i = 0; in mt2266_set_params()
222 if (b[0] & 0x40) in mt2266_set_params()
230 mt2266_writereg(priv, 0x05, 0x62); in mt2266_set_params()
239 mt2266_writereg(priv, 0x11, 0x03); in mt2266_calibrate()
240 mt2266_writereg(priv, 0x11, 0x01); in mt2266_calibrate()
243 mt2266_writereg(priv, 0x33, 0x5e); in mt2266_calibrate()
244 mt2266_writereg(priv, 0x10, 0x10); in mt2266_calibrate()
245 mt2266_writereg(priv, 0x10, 0x00); in mt2266_calibrate()
248 mt2266_writereg(priv, 0x17, 0x6d); in mt2266_calibrate()
249 mt2266_writereg(priv, 0x1c, 0x00); in mt2266_calibrate()
251 mt2266_writereg(priv, 0x17, 0x6d); in mt2266_calibrate()
252 mt2266_writereg(priv, 0x1c, 0xff); in mt2266_calibrate()
259 return 0; in mt2266_get_frequency()
266 return 0; in mt2266_get_bandwidth()
273 ret = mt2266_writereg(priv, 0x17, 0x6d); in mt2266_init()
274 if (ret < 0) in mt2266_init()
276 ret = mt2266_writereg(priv, 0x1c, 0xff); in mt2266_init()
277 if (ret < 0) in mt2266_init()
279 return 0; in mt2266_init()
285 mt2266_writereg(priv, 0x17, 0x6d); in mt2266_sleep()
286 mt2266_writereg(priv, 0x1c, 0x00); in mt2266_sleep()
287 return 0; in mt2266_sleep()
314 u8 id = 0; in mt2266_attach()
324 if (mt2266_readreg(priv, 0, &id)) { in mt2266_attach()