cxd2880-spi.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * cxd2880-spi.c
  4. * Sony CXD2880 DVB-T2/T tuner + demodulator driver
  5. * SPI adapter
  6. *
  7. * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
  8. */
  9. #define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__
  10. #include <linux/spi/spi.h>
  11. #include <linux/ktime.h>
  12. #include <media/dvb_demux.h>
  13. #include <media/dmxdev.h>
  14. #include <media/dvb_frontend.h>
  15. #include "cxd2880.h"
  16. #define CXD2880_MAX_FILTER_SIZE 32
  17. #define BURST_WRITE_MAX 128
  18. #define MAX_TRANS_PKT 300
  19. struct cxd2880_ts_buf_info {
  20. u8 read_ready:1;
  21. u8 almost_full:1;
  22. u8 almost_empty:1;
  23. u8 overflow:1;
  24. u8 underflow:1;
  25. u16 pkt_num;
  26. };
  27. struct cxd2880_pid_config {
  28. u8 is_enable;
  29. u16 pid;
  30. };
  31. struct cxd2880_pid_filter_config {
  32. u8 is_negative;
  33. struct cxd2880_pid_config pid_config[CXD2880_MAX_FILTER_SIZE];
  34. };
  35. struct cxd2880_dvb_spi {
  36. struct dvb_frontend dvb_fe;
  37. struct dvb_adapter adapter;
  38. struct dvb_demux demux;
  39. struct dmxdev dmxdev;
  40. struct dmx_frontend dmx_fe;
  41. struct task_struct *cxd2880_ts_read_thread;
  42. struct spi_device *spi;
  43. struct mutex spi_mutex; /* For SPI access exclusive control */
  44. int feed_count;
  45. int all_pid_feed_count;
  46. u8 *ts_buf;
  47. struct cxd2880_pid_filter_config filter_config;
  48. };
  49. DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
  50. static int cxd2880_write_spi(struct spi_device *spi, u8 *data, u32 size)
  51. {
  52. struct spi_message msg;
  53. struct spi_transfer tx = {};
  54. if (!spi || !data) {
  55. pr_err("invalid arg\n");
  56. return -EINVAL;
  57. }
  58. tx.tx_buf = data;
  59. tx.len = size;
  60. spi_message_init(&msg);
  61. spi_message_add_tail(&tx, &msg);
  62. return spi_sync(spi, &msg);
  63. }
  64. static int cxd2880_write_reg(struct spi_device *spi,
  65. u8 sub_address, const u8 *data, u32 size)
  66. {
  67. u8 send_data[BURST_WRITE_MAX + 4];
  68. const u8 *write_data_top = NULL;
  69. int ret = 0;
  70. if (!spi || !data) {
  71. pr_err("invalid arg\n");
  72. return -EINVAL;
  73. }
  74. if (size > BURST_WRITE_MAX || size > U8_MAX) {
  75. pr_err("data size > WRITE_MAX\n");
  76. return -EINVAL;
  77. }
  78. if (sub_address + size > 0x100) {
  79. pr_err("out of range\n");
  80. return -EINVAL;
  81. }
  82. send_data[0] = 0x0e;
  83. write_data_top = data;
  84. send_data[1] = sub_address;
  85. send_data[2] = (u8)size;
  86. memcpy(&send_data[3], write_data_top, send_data[2]);
  87. ret = cxd2880_write_spi(spi, send_data, send_data[2] + 3);
  88. if (ret)
  89. pr_err("write spi failed %d\n", ret);
  90. return ret;
  91. }
  92. static int cxd2880_spi_read_ts(struct spi_device *spi,
  93. u8 *read_data,
  94. u32 packet_num)
  95. {
  96. int ret;
  97. u8 data[3];
  98. struct spi_message message;
  99. struct spi_transfer transfer[2] = {};
  100. if (!spi || !read_data || !packet_num) {
  101. pr_err("invalid arg\n");
  102. return -EINVAL;
  103. }
  104. if (packet_num > 0xffff) {
  105. pr_err("packet num > 0xffff\n");
  106. return -EINVAL;
  107. }
  108. data[0] = 0x10;
  109. data[1] = packet_num >> 8;
  110. data[2] = packet_num;
  111. spi_message_init(&message);
  112. transfer[0].len = 3;
  113. transfer[0].tx_buf = data;
  114. spi_message_add_tail(&transfer[0], &message);
  115. transfer[1].len = packet_num * 188;
  116. transfer[1].rx_buf = read_data;
  117. spi_message_add_tail(&transfer[1], &message);
  118. ret = spi_sync(spi, &message);
  119. if (ret)
  120. pr_err("spi_write_then_read failed\n");
  121. return ret;
  122. }
  123. static int cxd2880_spi_read_ts_buffer_info(struct spi_device *spi,
  124. struct cxd2880_ts_buf_info *info)
  125. {
  126. u8 send_data = 0x20;
  127. u8 recv_data[2];
  128. int ret;
  129. if (!spi || !info) {
  130. pr_err("invalid arg\n");
  131. return -EINVAL;
  132. }
  133. ret = spi_write_then_read(spi, &send_data, 1,
  134. recv_data, sizeof(recv_data));
  135. if (ret)
  136. pr_err("spi_write_then_read failed\n");
  137. info->read_ready = (recv_data[0] & 0x80) ? 1 : 0;
  138. info->almost_full = (recv_data[0] & 0x40) ? 1 : 0;
  139. info->almost_empty = (recv_data[0] & 0x20) ? 1 : 0;
  140. info->overflow = (recv_data[0] & 0x10) ? 1 : 0;
  141. info->underflow = (recv_data[0] & 0x08) ? 1 : 0;
  142. info->pkt_num = ((recv_data[0] & 0x07) << 8) | recv_data[1];
  143. return ret;
  144. }
  145. static int cxd2880_spi_clear_ts_buffer(struct spi_device *spi)
  146. {
  147. u8 data = 0x03;
  148. int ret;
  149. ret = cxd2880_write_spi(spi, &data, 1);
  150. if (ret)
  151. pr_err("write spi failed\n");
  152. return ret;
  153. }
  154. static int cxd2880_set_pid_filter(struct spi_device *spi,
  155. struct cxd2880_pid_filter_config *cfg)
  156. {
  157. u8 data[65];
  158. int i;
  159. u16 pid = 0;
  160. int ret;
  161. if (!spi) {
  162. pr_err("invalid arg\n");
  163. return -EINVAL;
  164. }
  165. data[0] = 0x00;
  166. ret = cxd2880_write_reg(spi, 0x00, &data[0], 1);
  167. if (ret)
  168. return ret;
  169. if (!cfg) {
  170. data[0] = 0x02;
  171. ret = cxd2880_write_reg(spi, 0x50, &data[0], 1);
  172. } else {
  173. data[0] = cfg->is_negative ? 0x01 : 0x00;
  174. for (i = 0; i < CXD2880_MAX_FILTER_SIZE; i++) {
  175. pid = cfg->pid_config[i].pid;
  176. if (cfg->pid_config[i].is_enable) {
  177. data[1 + (i * 2)] = (pid >> 8) | 0x20;
  178. data[2 + (i * 2)] = pid & 0xff;
  179. } else {
  180. data[1 + (i * 2)] = 0x00;
  181. data[2 + (i * 2)] = 0x00;
  182. }
  183. }
  184. ret = cxd2880_write_reg(spi, 0x50, data, 65);
  185. }
  186. return ret;
  187. }
  188. static int cxd2880_update_pid_filter(struct cxd2880_dvb_spi *dvb_spi,
  189. struct cxd2880_pid_filter_config *cfg,
  190. bool is_all_pid_filter)
  191. {
  192. int ret;
  193. if (!dvb_spi || !cfg) {
  194. pr_err("invalid arg.\n");
  195. return -EINVAL;
  196. }
  197. mutex_lock(&dvb_spi->spi_mutex);
  198. if (is_all_pid_filter) {
  199. struct cxd2880_pid_filter_config tmpcfg;
  200. memset(&tmpcfg, 0, sizeof(tmpcfg));
  201. tmpcfg.is_negative = 1;
  202. tmpcfg.pid_config[0].is_enable = 1;
  203. tmpcfg.pid_config[0].pid = 0x1fff;
  204. ret = cxd2880_set_pid_filter(dvb_spi->spi, &tmpcfg);
  205. } else {
  206. ret = cxd2880_set_pid_filter(dvb_spi->spi, cfg);
  207. }
  208. mutex_unlock(&dvb_spi->spi_mutex);
  209. if (ret)
  210. pr_err("set_pid_filter failed\n");
  211. return ret;
  212. }
  213. static int cxd2880_ts_read(void *arg)
  214. {
  215. struct cxd2880_dvb_spi *dvb_spi = NULL;
  216. struct cxd2880_ts_buf_info info;
  217. ktime_t start;
  218. u32 i;
  219. int ret;
  220. dvb_spi = arg;
  221. if (!dvb_spi) {
  222. pr_err("invalid arg\n");
  223. return -EINVAL;
  224. }
  225. ret = cxd2880_spi_clear_ts_buffer(dvb_spi->spi);
  226. if (ret) {
  227. pr_err("set_clear_ts_buffer failed\n");
  228. return ret;
  229. }
  230. start = ktime_get();
  231. while (!kthread_should_stop()) {
  232. ret = cxd2880_spi_read_ts_buffer_info(dvb_spi->spi,
  233. &info);
  234. if (ret) {
  235. pr_err("spi_read_ts_buffer_info error\n");
  236. return ret;
  237. }
  238. if (info.pkt_num > MAX_TRANS_PKT) {
  239. for (i = 0; i < info.pkt_num / MAX_TRANS_PKT; i++) {
  240. cxd2880_spi_read_ts(dvb_spi->spi,
  241. dvb_spi->ts_buf,
  242. MAX_TRANS_PKT);
  243. dvb_dmx_swfilter(&dvb_spi->demux,
  244. dvb_spi->ts_buf,
  245. MAX_TRANS_PKT * 188);
  246. }
  247. start = ktime_get();
  248. } else if ((info.pkt_num > 0) &&
  249. (ktime_to_ms(ktime_sub(ktime_get(), start)) >= 500)) {
  250. cxd2880_spi_read_ts(dvb_spi->spi,
  251. dvb_spi->ts_buf,
  252. info.pkt_num);
  253. dvb_dmx_swfilter(&dvb_spi->demux,
  254. dvb_spi->ts_buf,
  255. info.pkt_num * 188);
  256. start = ktime_get();
  257. } else {
  258. usleep_range(10000, 11000);
  259. }
  260. }
  261. return 0;
  262. }
  263. static int cxd2880_start_feed(struct dvb_demux_feed *feed)
  264. {
  265. int ret = 0;
  266. int i = 0;
  267. struct dvb_demux *demux = NULL;
  268. struct cxd2880_dvb_spi *dvb_spi = NULL;
  269. if (!feed) {
  270. pr_err("invalid arg\n");
  271. return -EINVAL;
  272. }
  273. demux = feed->demux;
  274. if (!demux) {
  275. pr_err("feed->demux is NULL\n");
  276. return -EINVAL;
  277. }
  278. dvb_spi = demux->priv;
  279. if (dvb_spi->feed_count == CXD2880_MAX_FILTER_SIZE) {
  280. pr_err("Exceeded maximum PID count (32).");
  281. pr_err("Selected PID cannot be enabled.\n");
  282. return -EINVAL;
  283. }
  284. if (feed->pid == 0x2000) {
  285. if (dvb_spi->all_pid_feed_count == 0) {
  286. ret = cxd2880_update_pid_filter(dvb_spi,
  287. &dvb_spi->filter_config,
  288. true);
  289. if (ret) {
  290. pr_err("update pid filter failed\n");
  291. return ret;
  292. }
  293. }
  294. dvb_spi->all_pid_feed_count++;
  295. pr_debug("all PID feed (count = %d)\n",
  296. dvb_spi->all_pid_feed_count);
  297. } else {
  298. struct cxd2880_pid_filter_config cfgtmp;
  299. cfgtmp = dvb_spi->filter_config;
  300. for (i = 0; i < CXD2880_MAX_FILTER_SIZE; i++) {
  301. if (cfgtmp.pid_config[i].is_enable == 0) {
  302. cfgtmp.pid_config[i].is_enable = 1;
  303. cfgtmp.pid_config[i].pid = feed->pid;
  304. pr_debug("store PID %d to #%d\n",
  305. feed->pid, i);
  306. break;
  307. }
  308. }
  309. if (i == CXD2880_MAX_FILTER_SIZE) {
  310. pr_err("PID filter is full.\n");
  311. return -EINVAL;
  312. }
  313. if (!dvb_spi->all_pid_feed_count)
  314. ret = cxd2880_update_pid_filter(dvb_spi,
  315. &cfgtmp,
  316. false);
  317. if (ret)
  318. return ret;
  319. dvb_spi->filter_config = cfgtmp;
  320. }
  321. if (dvb_spi->feed_count == 0) {
  322. dvb_spi->ts_buf =
  323. kmalloc(MAX_TRANS_PKT * 188,
  324. GFP_KERNEL | GFP_DMA);
  325. if (!dvb_spi->ts_buf) {
  326. pr_err("ts buffer allocate failed\n");
  327. memset(&dvb_spi->filter_config, 0,
  328. sizeof(dvb_spi->filter_config));
  329. dvb_spi->all_pid_feed_count = 0;
  330. return -ENOMEM;
  331. }
  332. dvb_spi->cxd2880_ts_read_thread = kthread_run(cxd2880_ts_read,
  333. dvb_spi,
  334. "cxd2880_ts_read");
  335. if (IS_ERR(dvb_spi->cxd2880_ts_read_thread)) {
  336. pr_err("kthread_run failed/\n");
  337. kfree(dvb_spi->ts_buf);
  338. dvb_spi->ts_buf = NULL;
  339. memset(&dvb_spi->filter_config, 0,
  340. sizeof(dvb_spi->filter_config));
  341. dvb_spi->all_pid_feed_count = 0;
  342. return PTR_ERR(dvb_spi->cxd2880_ts_read_thread);
  343. }
  344. }
  345. dvb_spi->feed_count++;
  346. pr_debug("start feed (count %d)\n", dvb_spi->feed_count);
  347. return 0;
  348. }
  349. static int cxd2880_stop_feed(struct dvb_demux_feed *feed)
  350. {
  351. int i = 0;
  352. int ret;
  353. struct dvb_demux *demux = NULL;
  354. struct cxd2880_dvb_spi *dvb_spi = NULL;
  355. if (!feed) {
  356. pr_err("invalid arg\n");
  357. return -EINVAL;
  358. }
  359. demux = feed->demux;
  360. if (!demux) {
  361. pr_err("feed->demux is NULL\n");
  362. return -EINVAL;
  363. }
  364. dvb_spi = demux->priv;
  365. if (!dvb_spi->feed_count) {
  366. pr_err("no feed is started\n");
  367. return -EINVAL;
  368. }
  369. if (feed->pid == 0x2000) {
  370. /*
  371. * Special PID case.
  372. * Number of 0x2000 feed request was stored
  373. * in dvb_spi->all_pid_feed_count.
  374. */
  375. if (dvb_spi->all_pid_feed_count <= 0) {
  376. pr_err("PID %d not found.\n", feed->pid);
  377. return -EINVAL;
  378. }
  379. dvb_spi->all_pid_feed_count--;
  380. } else {
  381. struct cxd2880_pid_filter_config cfgtmp;
  382. cfgtmp = dvb_spi->filter_config;
  383. for (i = 0; i < CXD2880_MAX_FILTER_SIZE; i++) {
  384. if (feed->pid == cfgtmp.pid_config[i].pid &&
  385. cfgtmp.pid_config[i].is_enable != 0) {
  386. cfgtmp.pid_config[i].is_enable = 0;
  387. cfgtmp.pid_config[i].pid = 0;
  388. pr_debug("removed PID %d from #%d\n",
  389. feed->pid, i);
  390. break;
  391. }
  392. }
  393. dvb_spi->filter_config = cfgtmp;
  394. if (i == CXD2880_MAX_FILTER_SIZE) {
  395. pr_err("PID %d not found\n", feed->pid);
  396. return -EINVAL;
  397. }
  398. }
  399. ret = cxd2880_update_pid_filter(dvb_spi,
  400. &dvb_spi->filter_config,
  401. dvb_spi->all_pid_feed_count > 0);
  402. dvb_spi->feed_count--;
  403. if (dvb_spi->feed_count == 0) {
  404. int ret_stop = 0;
  405. ret_stop = kthread_stop(dvb_spi->cxd2880_ts_read_thread);
  406. if (ret_stop) {
  407. pr_err("'kthread_stop failed. (%d)\n", ret_stop);
  408. ret = ret_stop;
  409. }
  410. kfree(dvb_spi->ts_buf);
  411. dvb_spi->ts_buf = NULL;
  412. }
  413. pr_debug("stop feed ok.(count %d)\n", dvb_spi->feed_count);
  414. return ret;
  415. }
  416. static const struct of_device_id cxd2880_spi_of_match[] = {
  417. { .compatible = "sony,cxd2880" },
  418. { /* sentinel */ }
  419. };
  420. MODULE_DEVICE_TABLE(of, cxd2880_spi_of_match);
  421. static int
  422. cxd2880_spi_probe(struct spi_device *spi)
  423. {
  424. int ret;
  425. struct cxd2880_dvb_spi *dvb_spi = NULL;
  426. struct cxd2880_config config;
  427. if (!spi) {
  428. pr_err("invalid arg.\n");
  429. return -EINVAL;
  430. }
  431. dvb_spi = kzalloc(sizeof(struct cxd2880_dvb_spi), GFP_KERNEL);
  432. if (!dvb_spi)
  433. return -ENOMEM;
  434. dvb_spi->spi = spi;
  435. mutex_init(&dvb_spi->spi_mutex);
  436. dev_set_drvdata(&spi->dev, dvb_spi);
  437. config.spi = spi;
  438. config.spi_mutex = &dvb_spi->spi_mutex;
  439. ret = dvb_register_adapter(&dvb_spi->adapter,
  440. "CXD2880",
  441. THIS_MODULE,
  442. &spi->dev,
  443. adapter_nr);
  444. if (ret < 0) {
  445. pr_err("dvb_register_adapter() failed\n");
  446. goto fail_adapter;
  447. }
  448. if (!dvb_attach(cxd2880_attach, &dvb_spi->dvb_fe, &config)) {
  449. pr_err("cxd2880_attach failed\n");
  450. ret = -ENODEV;
  451. goto fail_attach;
  452. }
  453. ret = dvb_register_frontend(&dvb_spi->adapter,
  454. &dvb_spi->dvb_fe);
  455. if (ret < 0) {
  456. pr_err("dvb_register_frontend() failed\n");
  457. goto fail_frontend;
  458. }
  459. dvb_spi->demux.dmx.capabilities = DMX_TS_FILTERING;
  460. dvb_spi->demux.priv = dvb_spi;
  461. dvb_spi->demux.filternum = CXD2880_MAX_FILTER_SIZE;
  462. dvb_spi->demux.feednum = CXD2880_MAX_FILTER_SIZE;
  463. dvb_spi->demux.start_feed = cxd2880_start_feed;
  464. dvb_spi->demux.stop_feed = cxd2880_stop_feed;
  465. ret = dvb_dmx_init(&dvb_spi->demux);
  466. if (ret < 0) {
  467. pr_err("dvb_dmx_init() failed\n");
  468. goto fail_dmx;
  469. }
  470. dvb_spi->dmxdev.filternum = CXD2880_MAX_FILTER_SIZE;
  471. dvb_spi->dmxdev.demux = &dvb_spi->demux.dmx;
  472. dvb_spi->dmxdev.capabilities = 0;
  473. ret = dvb_dmxdev_init(&dvb_spi->dmxdev,
  474. &dvb_spi->adapter);
  475. if (ret < 0) {
  476. pr_err("dvb_dmxdev_init() failed\n");
  477. goto fail_dmxdev;
  478. }
  479. dvb_spi->dmx_fe.source = DMX_FRONTEND_0;
  480. ret = dvb_spi->demux.dmx.add_frontend(&dvb_spi->demux.dmx,
  481. &dvb_spi->dmx_fe);
  482. if (ret < 0) {
  483. pr_err("add_frontend() failed\n");
  484. goto fail_dmx_fe;
  485. }
  486. ret = dvb_spi->demux.dmx.connect_frontend(&dvb_spi->demux.dmx,
  487. &dvb_spi->dmx_fe);
  488. if (ret < 0) {
  489. pr_err("dvb_register_frontend() failed\n");
  490. goto fail_fe_conn;
  491. }
  492. pr_info("Sony CXD2880 has successfully attached.\n");
  493. return 0;
  494. fail_fe_conn:
  495. dvb_spi->demux.dmx.remove_frontend(&dvb_spi->demux.dmx,
  496. &dvb_spi->dmx_fe);
  497. fail_dmx_fe:
  498. dvb_dmxdev_release(&dvb_spi->dmxdev);
  499. fail_dmxdev:
  500. dvb_dmx_release(&dvb_spi->demux);
  501. fail_dmx:
  502. dvb_unregister_frontend(&dvb_spi->dvb_fe);
  503. fail_frontend:
  504. dvb_frontend_detach(&dvb_spi->dvb_fe);
  505. fail_attach:
  506. dvb_unregister_adapter(&dvb_spi->adapter);
  507. fail_adapter:
  508. kfree(dvb_spi);
  509. return ret;
  510. }
  511. static int
  512. cxd2880_spi_remove(struct spi_device *spi)
  513. {
  514. struct cxd2880_dvb_spi *dvb_spi;
  515. if (!spi) {
  516. pr_err("invalid arg\n");
  517. return -EINVAL;
  518. }
  519. dvb_spi = dev_get_drvdata(&spi->dev);
  520. if (!dvb_spi) {
  521. pr_err("failed\n");
  522. return -EINVAL;
  523. }
  524. dvb_spi->demux.dmx.remove_frontend(&dvb_spi->demux.dmx,
  525. &dvb_spi->dmx_fe);
  526. dvb_dmxdev_release(&dvb_spi->dmxdev);
  527. dvb_dmx_release(&dvb_spi->demux);
  528. dvb_unregister_frontend(&dvb_spi->dvb_fe);
  529. dvb_frontend_detach(&dvb_spi->dvb_fe);
  530. dvb_unregister_adapter(&dvb_spi->adapter);
  531. kfree(dvb_spi);
  532. pr_info("cxd2880_spi remove ok.\n");
  533. return 0;
  534. }
  535. static const struct spi_device_id cxd2880_spi_id[] = {
  536. { "cxd2880", 0 },
  537. { /* sentinel */ }
  538. };
  539. MODULE_DEVICE_TABLE(spi, cxd2880_spi_id);
  540. static struct spi_driver cxd2880_spi_driver = {
  541. .driver = {
  542. .name = "cxd2880",
  543. .of_match_table = cxd2880_spi_of_match,
  544. },
  545. .id_table = cxd2880_spi_id,
  546. .probe = cxd2880_spi_probe,
  547. .remove = cxd2880_spi_remove,
  548. };
  549. module_spi_driver(cxd2880_spi_driver);
  550. MODULE_DESCRIPTION("Sony CXD2880 DVB-T2/T tuner + demod driver SPI adapter");
  551. MODULE_AUTHOR("Sony Semiconductor Solutions Corporation");
  552. MODULE_LICENSE("GPL v2");