fc0013.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. /*
  2. * Fitipower FC0013 tuner driver
  3. *
  4. * Copyright (C) 2012 Hans-Frieder Vogt <hfvogt@gmx.net>
  5. * partially based on driver code from Fitipower
  6. * Copyright (C) 2010 Fitipower Integrated Technology Inc
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. *
  22. */
  23. #include "fc0013.h"
  24. #include "fc0013-priv.h"
  25. static int fc0013_writereg(struct fc0013_priv *priv, u8 reg, u8 val)
  26. {
  27. u8 buf[2] = {reg, val};
  28. struct i2c_msg msg = {
  29. .addr = priv->addr, .flags = 0, .buf = buf, .len = 2
  30. };
  31. if (i2c_transfer(priv->i2c, &msg, 1) != 1) {
  32. err("I2C write reg failed, reg: %02x, val: %02x", reg, val);
  33. return -EREMOTEIO;
  34. }
  35. return 0;
  36. }
  37. static int fc0013_readreg(struct fc0013_priv *priv, u8 reg, u8 *val)
  38. {
  39. struct i2c_msg msg[2] = {
  40. { .addr = priv->addr, .flags = 0, .buf = &reg, .len = 1 },
  41. { .addr = priv->addr, .flags = I2C_M_RD, .buf = val, .len = 1 },
  42. };
  43. if (i2c_transfer(priv->i2c, msg, 2) != 2) {
  44. err("I2C read reg failed, reg: %02x", reg);
  45. return -EREMOTEIO;
  46. }
  47. return 0;
  48. }
  49. static int fc0013_release(struct dvb_frontend *fe)
  50. {
  51. kfree(fe->tuner_priv);
  52. fe->tuner_priv = NULL;
  53. return 0;
  54. }
  55. static int fc0013_init(struct dvb_frontend *fe)
  56. {
  57. struct fc0013_priv *priv = fe->tuner_priv;
  58. int i, ret = 0;
  59. unsigned char reg[] = {
  60. 0x00, /* reg. 0x00: dummy */
  61. 0x09, /* reg. 0x01 */
  62. 0x16, /* reg. 0x02 */
  63. 0x00, /* reg. 0x03 */
  64. 0x00, /* reg. 0x04 */
  65. 0x17, /* reg. 0x05 */
  66. 0x02, /* reg. 0x06 */
  67. 0x0a, /* reg. 0x07: CHECK */
  68. 0xff, /* reg. 0x08: AGC Clock divide by 256, AGC gain 1/256,
  69. Loop Bw 1/8 */
  70. 0x6f, /* reg. 0x09: enable LoopThrough */
  71. 0xb8, /* reg. 0x0a: Disable LO Test Buffer */
  72. 0x82, /* reg. 0x0b: CHECK */
  73. 0xfc, /* reg. 0x0c: depending on AGC Up-Down mode, may need 0xf8 */
  74. 0x01, /* reg. 0x0d: AGC Not Forcing & LNA Forcing, may need 0x02 */
  75. 0x00, /* reg. 0x0e */
  76. 0x00, /* reg. 0x0f */
  77. 0x00, /* reg. 0x10 */
  78. 0x00, /* reg. 0x11 */
  79. 0x00, /* reg. 0x12 */
  80. 0x00, /* reg. 0x13 */
  81. 0x50, /* reg. 0x14: DVB-t High Gain, UHF.
  82. Middle Gain: 0x48, Low Gain: 0x40 */
  83. 0x01, /* reg. 0x15 */
  84. };
  85. switch (priv->xtal_freq) {
  86. case FC_XTAL_27_MHZ:
  87. case FC_XTAL_28_8_MHZ:
  88. reg[0x07] |= 0x20;
  89. break;
  90. case FC_XTAL_36_MHZ:
  91. default:
  92. break;
  93. }
  94. if (priv->dual_master)
  95. reg[0x0c] |= 0x02;
  96. if (fe->ops.i2c_gate_ctrl)
  97. fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */
  98. for (i = 1; i < sizeof(reg); i++) {
  99. ret = fc0013_writereg(priv, i, reg[i]);
  100. if (ret)
  101. break;
  102. }
  103. if (fe->ops.i2c_gate_ctrl)
  104. fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */
  105. if (ret)
  106. err("fc0013_writereg failed: %d", ret);
  107. return ret;
  108. }
  109. static int fc0013_sleep(struct dvb_frontend *fe)
  110. {
  111. /* nothing to do here */
  112. return 0;
  113. }
  114. int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val)
  115. {
  116. struct fc0013_priv *priv = fe->tuner_priv;
  117. int ret;
  118. u8 rc_cal;
  119. int val;
  120. if (fe->ops.i2c_gate_ctrl)
  121. fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */
  122. /* push rc_cal value, get rc_cal value */
  123. ret = fc0013_writereg(priv, 0x10, 0x00);
  124. if (ret)
  125. goto error_out;
  126. /* get rc_cal value */
  127. ret = fc0013_readreg(priv, 0x10, &rc_cal);
  128. if (ret)
  129. goto error_out;
  130. rc_cal &= 0x0f;
  131. val = (int)rc_cal + rc_val;
  132. /* forcing rc_cal */
  133. ret = fc0013_writereg(priv, 0x0d, 0x11);
  134. if (ret)
  135. goto error_out;
  136. /* modify rc_cal value */
  137. if (val > 15)
  138. ret = fc0013_writereg(priv, 0x10, 0x0f);
  139. else if (val < 0)
  140. ret = fc0013_writereg(priv, 0x10, 0x00);
  141. else
  142. ret = fc0013_writereg(priv, 0x10, (u8)val);
  143. error_out:
  144. if (fe->ops.i2c_gate_ctrl)
  145. fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */
  146. return ret;
  147. }
  148. EXPORT_SYMBOL(fc0013_rc_cal_add);
  149. int fc0013_rc_cal_reset(struct dvb_frontend *fe)
  150. {
  151. struct fc0013_priv *priv = fe->tuner_priv;
  152. int ret;
  153. if (fe->ops.i2c_gate_ctrl)
  154. fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */
  155. ret = fc0013_writereg(priv, 0x0d, 0x01);
  156. if (!ret)
  157. ret = fc0013_writereg(priv, 0x10, 0x00);
  158. if (fe->ops.i2c_gate_ctrl)
  159. fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */
  160. return ret;
  161. }
  162. EXPORT_SYMBOL(fc0013_rc_cal_reset);
  163. static int fc0013_set_vhf_track(struct fc0013_priv *priv, u32 freq)
  164. {
  165. int ret;
  166. u8 tmp;
  167. ret = fc0013_readreg(priv, 0x1d, &tmp);
  168. if (ret)
  169. goto error_out;
  170. tmp &= 0xe3;
  171. if (freq <= 177500) { /* VHF Track: 7 */
  172. ret = fc0013_writereg(priv, 0x1d, tmp | 0x1c);
  173. } else if (freq <= 184500) { /* VHF Track: 6 */
  174. ret = fc0013_writereg(priv, 0x1d, tmp | 0x18);
  175. } else if (freq <= 191500) { /* VHF Track: 5 */
  176. ret = fc0013_writereg(priv, 0x1d, tmp | 0x14);
  177. } else if (freq <= 198500) { /* VHF Track: 4 */
  178. ret = fc0013_writereg(priv, 0x1d, tmp | 0x10);
  179. } else if (freq <= 205500) { /* VHF Track: 3 */
  180. ret = fc0013_writereg(priv, 0x1d, tmp | 0x0c);
  181. } else if (freq <= 219500) { /* VHF Track: 2 */
  182. ret = fc0013_writereg(priv, 0x1d, tmp | 0x08);
  183. } else if (freq < 300000) { /* VHF Track: 1 */
  184. ret = fc0013_writereg(priv, 0x1d, tmp | 0x04);
  185. } else { /* UHF and GPS */
  186. ret = fc0013_writereg(priv, 0x1d, tmp | 0x1c);
  187. }
  188. error_out:
  189. return ret;
  190. }
  191. static int fc0013_set_params(struct dvb_frontend *fe)
  192. {
  193. struct fc0013_priv *priv = fe->tuner_priv;
  194. int i, ret = 0;
  195. struct dtv_frontend_properties *p = &fe->dtv_property_cache;
  196. u32 freq = p->frequency / 1000;
  197. u32 delsys = p->delivery_system;
  198. unsigned char reg[7], am, pm, multi, tmp;
  199. unsigned long f_vco;
  200. unsigned short xtal_freq_khz_2, xin, xdiv;
  201. bool vco_select = false;
  202. if (fe->callback) {
  203. ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER,
  204. FC_FE_CALLBACK_VHF_ENABLE, (freq > 300000 ? 0 : 1));
  205. if (ret)
  206. goto exit;
  207. }
  208. switch (priv->xtal_freq) {
  209. case FC_XTAL_27_MHZ:
  210. xtal_freq_khz_2 = 27000 / 2;
  211. break;
  212. case FC_XTAL_36_MHZ:
  213. xtal_freq_khz_2 = 36000 / 2;
  214. break;
  215. case FC_XTAL_28_8_MHZ:
  216. default:
  217. xtal_freq_khz_2 = 28800 / 2;
  218. break;
  219. }
  220. if (fe->ops.i2c_gate_ctrl)
  221. fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */
  222. /* set VHF track */
  223. ret = fc0013_set_vhf_track(priv, freq);
  224. if (ret)
  225. goto exit;
  226. if (freq < 300000) {
  227. /* enable VHF filter */
  228. ret = fc0013_readreg(priv, 0x07, &tmp);
  229. if (ret)
  230. goto exit;
  231. ret = fc0013_writereg(priv, 0x07, tmp | 0x10);
  232. if (ret)
  233. goto exit;
  234. /* disable UHF & disable GPS */
  235. ret = fc0013_readreg(priv, 0x14, &tmp);
  236. if (ret)
  237. goto exit;
  238. ret = fc0013_writereg(priv, 0x14, tmp & 0x1f);
  239. if (ret)
  240. goto exit;
  241. } else if (freq <= 862000) {
  242. /* disable VHF filter */
  243. ret = fc0013_readreg(priv, 0x07, &tmp);
  244. if (ret)
  245. goto exit;
  246. ret = fc0013_writereg(priv, 0x07, tmp & 0xef);
  247. if (ret)
  248. goto exit;
  249. /* enable UHF & disable GPS */
  250. ret = fc0013_readreg(priv, 0x14, &tmp);
  251. if (ret)
  252. goto exit;
  253. ret = fc0013_writereg(priv, 0x14, (tmp & 0x1f) | 0x40);
  254. if (ret)
  255. goto exit;
  256. } else {
  257. /* disable VHF filter */
  258. ret = fc0013_readreg(priv, 0x07, &tmp);
  259. if (ret)
  260. goto exit;
  261. ret = fc0013_writereg(priv, 0x07, tmp & 0xef);
  262. if (ret)
  263. goto exit;
  264. /* disable UHF & enable GPS */
  265. ret = fc0013_readreg(priv, 0x14, &tmp);
  266. if (ret)
  267. goto exit;
  268. ret = fc0013_writereg(priv, 0x14, (tmp & 0x1f) | 0x20);
  269. if (ret)
  270. goto exit;
  271. }
  272. /* select frequency divider and the frequency of VCO */
  273. if (freq < 37084) { /* freq * 96 < 3560000 */
  274. multi = 96;
  275. reg[5] = 0x82;
  276. reg[6] = 0x00;
  277. } else if (freq < 55625) { /* freq * 64 < 3560000 */
  278. multi = 64;
  279. reg[5] = 0x02;
  280. reg[6] = 0x02;
  281. } else if (freq < 74167) { /* freq * 48 < 3560000 */
  282. multi = 48;
  283. reg[5] = 0x42;
  284. reg[6] = 0x00;
  285. } else if (freq < 111250) { /* freq * 32 < 3560000 */
  286. multi = 32;
  287. reg[5] = 0x82;
  288. reg[6] = 0x02;
  289. } else if (freq < 148334) { /* freq * 24 < 3560000 */
  290. multi = 24;
  291. reg[5] = 0x22;
  292. reg[6] = 0x00;
  293. } else if (freq < 222500) { /* freq * 16 < 3560000 */
  294. multi = 16;
  295. reg[5] = 0x42;
  296. reg[6] = 0x02;
  297. } else if (freq < 296667) { /* freq * 12 < 3560000 */
  298. multi = 12;
  299. reg[5] = 0x12;
  300. reg[6] = 0x00;
  301. } else if (freq < 445000) { /* freq * 8 < 3560000 */
  302. multi = 8;
  303. reg[5] = 0x22;
  304. reg[6] = 0x02;
  305. } else if (freq < 593334) { /* freq * 6 < 3560000 */
  306. multi = 6;
  307. reg[5] = 0x0a;
  308. reg[6] = 0x00;
  309. } else if (freq < 950000) { /* freq * 4 < 3800000 */
  310. multi = 4;
  311. reg[5] = 0x12;
  312. reg[6] = 0x02;
  313. } else {
  314. multi = 2;
  315. reg[5] = 0x0a;
  316. reg[6] = 0x02;
  317. }
  318. f_vco = freq * multi;
  319. if (f_vco >= 3060000) {
  320. reg[6] |= 0x08;
  321. vco_select = true;
  322. }
  323. if (freq >= 45000) {
  324. /* From divided value (XDIV) determined the FA and FP value */
  325. xdiv = (unsigned short)(f_vco / xtal_freq_khz_2);
  326. if ((f_vco - xdiv * xtal_freq_khz_2) >= (xtal_freq_khz_2 / 2))
  327. xdiv++;
  328. pm = (unsigned char)(xdiv / 8);
  329. am = (unsigned char)(xdiv - (8 * pm));
  330. if (am < 2) {
  331. reg[1] = am + 8;
  332. reg[2] = pm - 1;
  333. } else {
  334. reg[1] = am;
  335. reg[2] = pm;
  336. }
  337. } else {
  338. /* fix for frequency less than 45 MHz */
  339. reg[1] = 0x06;
  340. reg[2] = 0x11;
  341. }
  342. /* fix clock out */
  343. reg[6] |= 0x20;
  344. /* From VCO frequency determines the XIN ( fractional part of Delta
  345. Sigma PLL) and divided value (XDIV) */
  346. xin = (unsigned short)(f_vco - (f_vco / xtal_freq_khz_2) * xtal_freq_khz_2);
  347. xin = (xin << 15) / xtal_freq_khz_2;
  348. if (xin >= 16384)
  349. xin += 32768;
  350. reg[3] = xin >> 8;
  351. reg[4] = xin & 0xff;
  352. if (delsys == SYS_DVBT) {
  353. reg[6] &= 0x3f; /* bits 6 and 7 describe the bandwidth */
  354. switch (p->bandwidth_hz) {
  355. case 6000000:
  356. reg[6] |= 0x80;
  357. break;
  358. case 7000000:
  359. reg[6] |= 0x40;
  360. break;
  361. case 8000000:
  362. default:
  363. break;
  364. }
  365. } else {
  366. err("%s: modulation type not supported!", __func__);
  367. return -EINVAL;
  368. }
  369. /* modified for Realtek demod */
  370. reg[5] |= 0x07;
  371. for (i = 1; i <= 6; i++) {
  372. ret = fc0013_writereg(priv, i, reg[i]);
  373. if (ret)
  374. goto exit;
  375. }
  376. ret = fc0013_readreg(priv, 0x11, &tmp);
  377. if (ret)
  378. goto exit;
  379. if (multi == 64)
  380. ret = fc0013_writereg(priv, 0x11, tmp | 0x04);
  381. else
  382. ret = fc0013_writereg(priv, 0x11, tmp & 0xfb);
  383. if (ret)
  384. goto exit;
  385. /* VCO Calibration */
  386. ret = fc0013_writereg(priv, 0x0e, 0x80);
  387. if (!ret)
  388. ret = fc0013_writereg(priv, 0x0e, 0x00);
  389. /* VCO Re-Calibration if needed */
  390. if (!ret)
  391. ret = fc0013_writereg(priv, 0x0e, 0x00);
  392. if (!ret) {
  393. msleep(10);
  394. ret = fc0013_readreg(priv, 0x0e, &tmp);
  395. }
  396. if (ret)
  397. goto exit;
  398. /* vco selection */
  399. tmp &= 0x3f;
  400. if (vco_select) {
  401. if (tmp > 0x3c) {
  402. reg[6] &= ~0x08;
  403. ret = fc0013_writereg(priv, 0x06, reg[6]);
  404. if (!ret)
  405. ret = fc0013_writereg(priv, 0x0e, 0x80);
  406. if (!ret)
  407. ret = fc0013_writereg(priv, 0x0e, 0x00);
  408. }
  409. } else {
  410. if (tmp < 0x02) {
  411. reg[6] |= 0x08;
  412. ret = fc0013_writereg(priv, 0x06, reg[6]);
  413. if (!ret)
  414. ret = fc0013_writereg(priv, 0x0e, 0x80);
  415. if (!ret)
  416. ret = fc0013_writereg(priv, 0x0e, 0x00);
  417. }
  418. }
  419. priv->frequency = p->frequency;
  420. priv->bandwidth = p->bandwidth_hz;
  421. exit:
  422. if (fe->ops.i2c_gate_ctrl)
  423. fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */
  424. if (ret)
  425. warn("%s: failed: %d", __func__, ret);
  426. return ret;
  427. }
  428. static int fc0013_get_frequency(struct dvb_frontend *fe, u32 *frequency)
  429. {
  430. struct fc0013_priv *priv = fe->tuner_priv;
  431. *frequency = priv->frequency;
  432. return 0;
  433. }
  434. static int fc0013_get_if_frequency(struct dvb_frontend *fe, u32 *frequency)
  435. {
  436. /* always ? */
  437. *frequency = 0;
  438. return 0;
  439. }
  440. static int fc0013_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
  441. {
  442. struct fc0013_priv *priv = fe->tuner_priv;
  443. *bandwidth = priv->bandwidth;
  444. return 0;
  445. }
  446. #define INPUT_ADC_LEVEL -8
  447. static int fc0013_get_rf_strength(struct dvb_frontend *fe, u16 *strength)
  448. {
  449. struct fc0013_priv *priv = fe->tuner_priv;
  450. int ret;
  451. unsigned char tmp;
  452. int int_temp, lna_gain, int_lna, tot_agc_gain, power;
  453. const int fc0013_lna_gain_table[] = {
  454. /* low gain */
  455. -63, -58, -99, -73,
  456. -63, -65, -54, -60,
  457. /* middle gain */
  458. 71, 70, 68, 67,
  459. 65, 63, 61, 58,
  460. /* high gain */
  461. 197, 191, 188, 186,
  462. 184, 182, 181, 179,
  463. };
  464. if (fe->ops.i2c_gate_ctrl)
  465. fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */
  466. ret = fc0013_writereg(priv, 0x13, 0x00);
  467. if (ret)
  468. goto err;
  469. ret = fc0013_readreg(priv, 0x13, &tmp);
  470. if (ret)
  471. goto err;
  472. int_temp = tmp;
  473. ret = fc0013_readreg(priv, 0x14, &tmp);
  474. if (ret)
  475. goto err;
  476. lna_gain = tmp & 0x1f;
  477. if (fe->ops.i2c_gate_ctrl)
  478. fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */
  479. if (lna_gain < ARRAY_SIZE(fc0013_lna_gain_table)) {
  480. int_lna = fc0013_lna_gain_table[lna_gain];
  481. tot_agc_gain = (abs((int_temp >> 5) - 7) - 2 +
  482. (int_temp & 0x1f)) * 2;
  483. power = INPUT_ADC_LEVEL - tot_agc_gain - int_lna / 10;
  484. if (power >= 45)
  485. *strength = 255; /* 100% */
  486. else if (power < -95)
  487. *strength = 0;
  488. else
  489. *strength = (power + 95) * 255 / 140;
  490. *strength |= *strength << 8;
  491. } else {
  492. ret = -1;
  493. }
  494. goto exit;
  495. err:
  496. if (fe->ops.i2c_gate_ctrl)
  497. fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */
  498. exit:
  499. if (ret)
  500. warn("%s: failed: %d", __func__, ret);
  501. return ret;
  502. }
  503. static const struct dvb_tuner_ops fc0013_tuner_ops = {
  504. .info = {
  505. .name = "Fitipower FC0013",
  506. .frequency_min = 37000000, /* estimate */
  507. .frequency_max = 1680000000, /* CHECK */
  508. .frequency_step = 0,
  509. },
  510. .release = fc0013_release,
  511. .init = fc0013_init,
  512. .sleep = fc0013_sleep,
  513. .set_params = fc0013_set_params,
  514. .get_frequency = fc0013_get_frequency,
  515. .get_if_frequency = fc0013_get_if_frequency,
  516. .get_bandwidth = fc0013_get_bandwidth,
  517. .get_rf_strength = fc0013_get_rf_strength,
  518. };
  519. struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe,
  520. struct i2c_adapter *i2c, u8 i2c_address, int dual_master,
  521. enum fc001x_xtal_freq xtal_freq)
  522. {
  523. struct fc0013_priv *priv = NULL;
  524. priv = kzalloc(sizeof(struct fc0013_priv), GFP_KERNEL);
  525. if (priv == NULL)
  526. return NULL;
  527. priv->i2c = i2c;
  528. priv->dual_master = dual_master;
  529. priv->addr = i2c_address;
  530. priv->xtal_freq = xtal_freq;
  531. info("Fitipower FC0013 successfully attached.");
  532. fe->tuner_priv = priv;
  533. memcpy(&fe->ops.tuner_ops, &fc0013_tuner_ops,
  534. sizeof(struct dvb_tuner_ops));
  535. return fe;
  536. }
  537. EXPORT_SYMBOL(fc0013_attach);
  538. MODULE_DESCRIPTION("Fitipower FC0013 silicon tuner driver");
  539. MODULE_AUTHOR("Hans-Frieder Vogt <hfvogt@gmx.net>");
  540. MODULE_LICENSE("GPL");
  541. MODULE_VERSION("0.2");