sh_mipi_dsi.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. /*
  2. * Renesas SH-mobile MIPI DSI support
  3. *
  4. * Copyright (C) 2010 Guennadi Liakhovetski <g.liakhovetski@gmx.de>
  5. *
  6. * This is free software; you can redistribute it and/or modify
  7. * it under the terms of version 2 of the GNU General Public License as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/clk.h>
  11. #include <linux/delay.h>
  12. #include <linux/init.h>
  13. #include <linux/io.h>
  14. #include <linux/platform_device.h>
  15. #include <linux/pm_runtime.h>
  16. #include <linux/slab.h>
  17. #include <linux/string.h>
  18. #include <linux/types.h>
  19. #include <linux/module.h>
  20. #include <video/mipi_display.h>
  21. #include <video/sh_mipi_dsi.h>
  22. #include <video/sh_mobile_lcdc.h>
  23. #define SYSCTRL 0x0000
  24. #define SYSCONF 0x0004
  25. #define TIMSET 0x0008
  26. #define RESREQSET0 0x0018
  27. #define RESREQSET1 0x001c
  28. #define HSTTOVSET 0x0020
  29. #define LPRTOVSET 0x0024
  30. #define TATOVSET 0x0028
  31. #define PRTOVSET 0x002c
  32. #define DSICTRL 0x0030
  33. #define DSIINTE 0x0060
  34. #define PHYCTRL 0x0070
  35. /* relative to linkbase */
  36. #define DTCTR 0x0000
  37. #define VMCTR1 0x0020
  38. #define VMCTR2 0x0024
  39. #define VMLEN1 0x0028
  40. #define CMTSRTREQ 0x0070
  41. #define CMTSRTCTR 0x00d0
  42. /* E.g., sh7372 has 2 MIPI-DSIs - one for each LCDC */
  43. #define MAX_SH_MIPI_DSI 2
  44. struct sh_mipi {
  45. void __iomem *base;
  46. void __iomem *linkbase;
  47. struct clk *dsit_clk;
  48. struct clk *dsip_clk;
  49. struct device *dev;
  50. void *next_board_data;
  51. void (*next_display_on)(void *board_data, struct fb_info *info);
  52. void (*next_display_off)(void *board_data);
  53. };
  54. static struct sh_mipi *mipi_dsi[MAX_SH_MIPI_DSI];
  55. /* Protect the above array */
  56. static DEFINE_MUTEX(array_lock);
  57. static struct sh_mipi *sh_mipi_by_handle(int handle)
  58. {
  59. if (handle >= ARRAY_SIZE(mipi_dsi) || handle < 0)
  60. return NULL;
  61. return mipi_dsi[handle];
  62. }
  63. static int sh_mipi_send_short(struct sh_mipi *mipi, u8 dsi_cmd,
  64. u8 cmd, u8 param)
  65. {
  66. u32 data = (dsi_cmd << 24) | (cmd << 16) | (param << 8);
  67. int cnt = 100;
  68. /* transmit a short packet to LCD panel */
  69. iowrite32(1 | data, mipi->linkbase + CMTSRTCTR);
  70. iowrite32(1, mipi->linkbase + CMTSRTREQ);
  71. while ((ioread32(mipi->linkbase + CMTSRTREQ) & 1) && --cnt)
  72. udelay(1);
  73. return cnt ? 0 : -ETIMEDOUT;
  74. }
  75. #define LCD_CHAN2MIPI(c) ((c) < LCDC_CHAN_MAINLCD || (c) > LCDC_CHAN_SUBLCD ? \
  76. -EINVAL : (c) - 1)
  77. static int sh_mipi_dcs(int handle, u8 cmd)
  78. {
  79. struct sh_mipi *mipi = sh_mipi_by_handle(LCD_CHAN2MIPI(handle));
  80. if (!mipi)
  81. return -ENODEV;
  82. return sh_mipi_send_short(mipi, MIPI_DSI_DCS_SHORT_WRITE, cmd, 0);
  83. }
  84. static int sh_mipi_dcs_param(int handle, u8 cmd, u8 param)
  85. {
  86. struct sh_mipi *mipi = sh_mipi_by_handle(LCD_CHAN2MIPI(handle));
  87. if (!mipi)
  88. return -ENODEV;
  89. return sh_mipi_send_short(mipi, MIPI_DSI_DCS_SHORT_WRITE_PARAM, cmd,
  90. param);
  91. }
  92. static void sh_mipi_dsi_enable(struct sh_mipi *mipi, bool enable)
  93. {
  94. /*
  95. * enable LCDC data tx, transition to LPS after completion of each HS
  96. * packet
  97. */
  98. iowrite32(0x00000002 | enable, mipi->linkbase + DTCTR);
  99. }
  100. static void sh_mipi_shutdown(struct platform_device *pdev)
  101. {
  102. struct sh_mipi *mipi = platform_get_drvdata(pdev);
  103. sh_mipi_dsi_enable(mipi, false);
  104. }
  105. static void mipi_display_on(void *arg, struct fb_info *info)
  106. {
  107. struct sh_mipi *mipi = arg;
  108. pm_runtime_get_sync(mipi->dev);
  109. sh_mipi_dsi_enable(mipi, true);
  110. if (mipi->next_display_on)
  111. mipi->next_display_on(mipi->next_board_data, info);
  112. }
  113. static void mipi_display_off(void *arg)
  114. {
  115. struct sh_mipi *mipi = arg;
  116. if (mipi->next_display_off)
  117. mipi->next_display_off(mipi->next_board_data);
  118. sh_mipi_dsi_enable(mipi, false);
  119. pm_runtime_put(mipi->dev);
  120. }
  121. static int __init sh_mipi_setup(struct sh_mipi *mipi,
  122. struct sh_mipi_dsi_info *pdata)
  123. {
  124. void __iomem *base = mipi->base;
  125. struct sh_mobile_lcdc_chan_cfg *ch = pdata->lcd_chan;
  126. u32 pctype, datatype, pixfmt, linelength, vmctr2 = 0x00e00000;
  127. bool yuv;
  128. /*
  129. * Select data format. MIPI DSI is not hot-pluggable, so, we just use
  130. * the default videomode. If this ever becomes a problem, We'll have to
  131. * move this to mipi_display_on() above and use info->var.xres
  132. */
  133. switch (pdata->data_format) {
  134. case MIPI_RGB888:
  135. pctype = 0;
  136. datatype = MIPI_DSI_PACKED_PIXEL_STREAM_24;
  137. pixfmt = MIPI_DCS_PIXEL_FMT_24BIT;
  138. linelength = ch->lcd_cfg[0].xres * 3;
  139. yuv = false;
  140. break;
  141. case MIPI_RGB565:
  142. pctype = 1;
  143. datatype = MIPI_DSI_PACKED_PIXEL_STREAM_16;
  144. pixfmt = MIPI_DCS_PIXEL_FMT_16BIT;
  145. linelength = ch->lcd_cfg[0].xres * 2;
  146. yuv = false;
  147. break;
  148. case MIPI_RGB666_LP:
  149. pctype = 2;
  150. datatype = MIPI_DSI_PIXEL_STREAM_3BYTE_18;
  151. pixfmt = MIPI_DCS_PIXEL_FMT_24BIT;
  152. linelength = ch->lcd_cfg[0].xres * 3;
  153. yuv = false;
  154. break;
  155. case MIPI_RGB666:
  156. pctype = 3;
  157. datatype = MIPI_DSI_PACKED_PIXEL_STREAM_18;
  158. pixfmt = MIPI_DCS_PIXEL_FMT_18BIT;
  159. linelength = (ch->lcd_cfg[0].xres * 18 + 7) / 8;
  160. yuv = false;
  161. break;
  162. case MIPI_BGR888:
  163. pctype = 8;
  164. datatype = MIPI_DSI_PACKED_PIXEL_STREAM_24;
  165. pixfmt = MIPI_DCS_PIXEL_FMT_24BIT;
  166. linelength = ch->lcd_cfg[0].xres * 3;
  167. yuv = false;
  168. break;
  169. case MIPI_BGR565:
  170. pctype = 9;
  171. datatype = MIPI_DSI_PACKED_PIXEL_STREAM_16;
  172. pixfmt = MIPI_DCS_PIXEL_FMT_16BIT;
  173. linelength = ch->lcd_cfg[0].xres * 2;
  174. yuv = false;
  175. break;
  176. case MIPI_BGR666_LP:
  177. pctype = 0xa;
  178. datatype = MIPI_DSI_PIXEL_STREAM_3BYTE_18;
  179. pixfmt = MIPI_DCS_PIXEL_FMT_24BIT;
  180. linelength = ch->lcd_cfg[0].xres * 3;
  181. yuv = false;
  182. break;
  183. case MIPI_BGR666:
  184. pctype = 0xb;
  185. datatype = MIPI_DSI_PACKED_PIXEL_STREAM_18;
  186. pixfmt = MIPI_DCS_PIXEL_FMT_18BIT;
  187. linelength = (ch->lcd_cfg[0].xres * 18 + 7) / 8;
  188. yuv = false;
  189. break;
  190. case MIPI_YUYV:
  191. pctype = 4;
  192. datatype = MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16;
  193. pixfmt = MIPI_DCS_PIXEL_FMT_16BIT;
  194. linelength = ch->lcd_cfg[0].xres * 2;
  195. yuv = true;
  196. break;
  197. case MIPI_UYVY:
  198. pctype = 5;
  199. datatype = MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR16;
  200. pixfmt = MIPI_DCS_PIXEL_FMT_16BIT;
  201. linelength = ch->lcd_cfg[0].xres * 2;
  202. yuv = true;
  203. break;
  204. case MIPI_YUV420_L:
  205. pctype = 6;
  206. datatype = MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR12;
  207. pixfmt = MIPI_DCS_PIXEL_FMT_12BIT;
  208. linelength = (ch->lcd_cfg[0].xres * 12 + 7) / 8;
  209. yuv = true;
  210. break;
  211. case MIPI_YUV420:
  212. pctype = 7;
  213. datatype = MIPI_DSI_PACKED_PIXEL_STREAM_YCBCR12;
  214. pixfmt = MIPI_DCS_PIXEL_FMT_12BIT;
  215. /* Length of U/V line */
  216. linelength = (ch->lcd_cfg[0].xres + 1) / 2;
  217. yuv = true;
  218. break;
  219. default:
  220. return -EINVAL;
  221. }
  222. if ((yuv && ch->interface_type != YUV422) ||
  223. (!yuv && ch->interface_type != RGB24))
  224. return -EINVAL;
  225. /* reset DSI link */
  226. iowrite32(0x00000001, base + SYSCTRL);
  227. /* Hold reset for 100 cycles of the slowest of bus, HS byte and LP clock */
  228. udelay(50);
  229. iowrite32(0x00000000, base + SYSCTRL);
  230. /* setup DSI link */
  231. /*
  232. * Default = ULPS enable |
  233. * Contention detection enabled |
  234. * EoT packet transmission enable |
  235. * CRC check enable |
  236. * ECC check enable
  237. * additionally enable first two lanes
  238. */
  239. iowrite32(0x00003703, base + SYSCONF);
  240. /*
  241. * T_wakeup = 0x7000
  242. * T_hs-trail = 3
  243. * T_hs-prepare = 3
  244. * T_clk-trail = 3
  245. * T_clk-prepare = 2
  246. */
  247. iowrite32(0x70003332, base + TIMSET);
  248. /* no responses requested */
  249. iowrite32(0x00000000, base + RESREQSET0);
  250. /* request response to packets of type 0x28 */
  251. iowrite32(0x00000100, base + RESREQSET1);
  252. /* High-speed transmission timeout, default 0xffffffff */
  253. iowrite32(0x0fffffff, base + HSTTOVSET);
  254. /* LP reception timeout, default 0xffffffff */
  255. iowrite32(0x0fffffff, base + LPRTOVSET);
  256. /* Turn-around timeout, default 0xffffffff */
  257. iowrite32(0x0fffffff, base + TATOVSET);
  258. /* Peripheral reset timeout, default 0xffffffff */
  259. iowrite32(0x0fffffff, base + PRTOVSET);
  260. /* Enable timeout counters */
  261. iowrite32(0x00000f00, base + DSICTRL);
  262. /* Interrupts not used, disable all */
  263. iowrite32(0, base + DSIINTE);
  264. /* DSI-Tx bias on */
  265. iowrite32(0x00000001, base + PHYCTRL);
  266. udelay(200);
  267. /* Deassert resets, power on, set multiplier */
  268. iowrite32(0x03070b01, base + PHYCTRL);
  269. /* setup l-bridge */
  270. /*
  271. * Enable transmission of all packets,
  272. * transmit LPS after each HS packet completion
  273. */
  274. iowrite32(0x00000006, mipi->linkbase + DTCTR);
  275. /* VSYNC width = 2 (<< 17) */
  276. iowrite32((ch->lcd_cfg[0].vsync_len << pdata->vsynw_offset) |
  277. (pdata->clksrc << 16) | (pctype << 12) | datatype,
  278. mipi->linkbase + VMCTR1);
  279. /*
  280. * Non-burst mode with sync pulses: VSE and HSE are output,
  281. * HSA period allowed, no commands in LP
  282. */
  283. if (pdata->flags & SH_MIPI_DSI_HSABM)
  284. vmctr2 |= 0x20;
  285. if (pdata->flags & SH_MIPI_DSI_HSPBM)
  286. vmctr2 |= 0x10;
  287. iowrite32(vmctr2, mipi->linkbase + VMCTR2);
  288. /*
  289. * 0x660 = 1632 bytes per line (RGB24, 544 pixels: see
  290. * sh_mobile_lcdc_info.ch[0].lcd_cfg[0].xres), HSALEN = 1 - default
  291. * (unused if VMCTR2[HSABM] = 0)
  292. */
  293. iowrite32(1 | (linelength << 16), mipi->linkbase + VMLEN1);
  294. msleep(5);
  295. /* setup LCD panel */
  296. /* cf. drivers/video/omap/lcd_mipid.c */
  297. sh_mipi_dcs(ch->chan, MIPI_DCS_EXIT_SLEEP_MODE);
  298. msleep(120);
  299. /*
  300. * [7] - Page Address Mode
  301. * [6] - Column Address Mode
  302. * [5] - Page / Column Address Mode
  303. * [4] - Display Device Line Refresh Order
  304. * [3] - RGB/BGR Order
  305. * [2] - Display Data Latch Data Order
  306. * [1] - Flip Horizontal
  307. * [0] - Flip Vertical
  308. */
  309. sh_mipi_dcs_param(ch->chan, MIPI_DCS_SET_ADDRESS_MODE, 0x00);
  310. /* cf. set_data_lines() */
  311. sh_mipi_dcs_param(ch->chan, MIPI_DCS_SET_PIXEL_FORMAT,
  312. pixfmt << 4);
  313. sh_mipi_dcs(ch->chan, MIPI_DCS_SET_DISPLAY_ON);
  314. return 0;
  315. }
  316. static int __init sh_mipi_probe(struct platform_device *pdev)
  317. {
  318. struct sh_mipi *mipi;
  319. struct sh_mipi_dsi_info *pdata = pdev->dev.platform_data;
  320. struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  321. struct resource *res2 = platform_get_resource(pdev, IORESOURCE_MEM, 1);
  322. unsigned long rate, f_current;
  323. int idx = pdev->id, ret;
  324. char dsip_clk[] = "dsi.p_clk";
  325. if (!res || !res2 || idx >= ARRAY_SIZE(mipi_dsi) || !pdata)
  326. return -ENODEV;
  327. mutex_lock(&array_lock);
  328. if (idx < 0)
  329. for (idx = 0; idx < ARRAY_SIZE(mipi_dsi) && mipi_dsi[idx]; idx++)
  330. ;
  331. if (idx == ARRAY_SIZE(mipi_dsi)) {
  332. ret = -EBUSY;
  333. goto efindslot;
  334. }
  335. mipi = kzalloc(sizeof(*mipi), GFP_KERNEL);
  336. if (!mipi) {
  337. ret = -ENOMEM;
  338. goto ealloc;
  339. }
  340. if (!request_mem_region(res->start, resource_size(res), pdev->name)) {
  341. dev_err(&pdev->dev, "MIPI register region already claimed\n");
  342. ret = -EBUSY;
  343. goto ereqreg;
  344. }
  345. mipi->base = ioremap(res->start, resource_size(res));
  346. if (!mipi->base) {
  347. ret = -ENOMEM;
  348. goto emap;
  349. }
  350. if (!request_mem_region(res2->start, resource_size(res2), pdev->name)) {
  351. dev_err(&pdev->dev, "MIPI register region 2 already claimed\n");
  352. ret = -EBUSY;
  353. goto ereqreg2;
  354. }
  355. mipi->linkbase = ioremap(res2->start, resource_size(res2));
  356. if (!mipi->linkbase) {
  357. ret = -ENOMEM;
  358. goto emap2;
  359. }
  360. mipi->dev = &pdev->dev;
  361. mipi->dsit_clk = clk_get(&pdev->dev, "dsit_clk");
  362. if (IS_ERR(mipi->dsit_clk)) {
  363. ret = PTR_ERR(mipi->dsit_clk);
  364. goto eclktget;
  365. }
  366. f_current = clk_get_rate(mipi->dsit_clk);
  367. /* 80MHz required by the datasheet */
  368. rate = clk_round_rate(mipi->dsit_clk, 80000000);
  369. if (rate > 0 && rate != f_current)
  370. ret = clk_set_rate(mipi->dsit_clk, rate);
  371. else
  372. ret = rate;
  373. if (ret < 0)
  374. goto esettrate;
  375. dev_dbg(&pdev->dev, "DSI-T clk %lu -> %lu\n", f_current, rate);
  376. sprintf(dsip_clk, "dsi%1.1dp_clk", idx);
  377. mipi->dsip_clk = clk_get(&pdev->dev, dsip_clk);
  378. if (IS_ERR(mipi->dsip_clk)) {
  379. ret = PTR_ERR(mipi->dsip_clk);
  380. goto eclkpget;
  381. }
  382. f_current = clk_get_rate(mipi->dsip_clk);
  383. /* Between 10 and 50MHz */
  384. rate = clk_round_rate(mipi->dsip_clk, 24000000);
  385. if (rate > 0 && rate != f_current)
  386. ret = clk_set_rate(mipi->dsip_clk, rate);
  387. else
  388. ret = rate;
  389. if (ret < 0)
  390. goto esetprate;
  391. dev_dbg(&pdev->dev, "DSI-P clk %lu -> %lu\n", f_current, rate);
  392. msleep(10);
  393. ret = clk_enable(mipi->dsit_clk);
  394. if (ret < 0)
  395. goto eclkton;
  396. ret = clk_enable(mipi->dsip_clk);
  397. if (ret < 0)
  398. goto eclkpon;
  399. mipi_dsi[idx] = mipi;
  400. pm_runtime_enable(&pdev->dev);
  401. pm_runtime_resume(&pdev->dev);
  402. ret = sh_mipi_setup(mipi, pdata);
  403. if (ret < 0)
  404. goto emipisetup;
  405. mutex_unlock(&array_lock);
  406. platform_set_drvdata(pdev, mipi);
  407. /* Save original LCDC callbacks */
  408. mipi->next_board_data = pdata->lcd_chan->board_cfg.board_data;
  409. mipi->next_display_on = pdata->lcd_chan->board_cfg.display_on;
  410. mipi->next_display_off = pdata->lcd_chan->board_cfg.display_off;
  411. /* Set up LCDC callbacks */
  412. pdata->lcd_chan->board_cfg.board_data = mipi;
  413. pdata->lcd_chan->board_cfg.display_on = mipi_display_on;
  414. pdata->lcd_chan->board_cfg.display_off = mipi_display_off;
  415. pdata->lcd_chan->board_cfg.owner = THIS_MODULE;
  416. return 0;
  417. emipisetup:
  418. mipi_dsi[idx] = NULL;
  419. pm_runtime_disable(&pdev->dev);
  420. clk_disable(mipi->dsip_clk);
  421. eclkpon:
  422. clk_disable(mipi->dsit_clk);
  423. eclkton:
  424. esetprate:
  425. clk_put(mipi->dsip_clk);
  426. eclkpget:
  427. esettrate:
  428. clk_put(mipi->dsit_clk);
  429. eclktget:
  430. iounmap(mipi->linkbase);
  431. emap2:
  432. release_mem_region(res2->start, resource_size(res2));
  433. ereqreg2:
  434. iounmap(mipi->base);
  435. emap:
  436. release_mem_region(res->start, resource_size(res));
  437. ereqreg:
  438. kfree(mipi);
  439. ealloc:
  440. efindslot:
  441. mutex_unlock(&array_lock);
  442. return ret;
  443. }
  444. static int __exit sh_mipi_remove(struct platform_device *pdev)
  445. {
  446. struct sh_mipi_dsi_info *pdata = pdev->dev.platform_data;
  447. struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  448. struct resource *res2 = platform_get_resource(pdev, IORESOURCE_MEM, 1);
  449. struct sh_mipi *mipi = platform_get_drvdata(pdev);
  450. int i, ret;
  451. mutex_lock(&array_lock);
  452. for (i = 0; i < ARRAY_SIZE(mipi_dsi) && mipi_dsi[i] != mipi; i++)
  453. ;
  454. if (i == ARRAY_SIZE(mipi_dsi)) {
  455. ret = -EINVAL;
  456. } else {
  457. ret = 0;
  458. mipi_dsi[i] = NULL;
  459. }
  460. mutex_unlock(&array_lock);
  461. if (ret < 0)
  462. return ret;
  463. pdata->lcd_chan->board_cfg.owner = NULL;
  464. pdata->lcd_chan->board_cfg.display_on = NULL;
  465. pdata->lcd_chan->board_cfg.display_off = NULL;
  466. pdata->lcd_chan->board_cfg.board_data = NULL;
  467. pm_runtime_disable(&pdev->dev);
  468. clk_disable(mipi->dsip_clk);
  469. clk_disable(mipi->dsit_clk);
  470. clk_put(mipi->dsit_clk);
  471. clk_put(mipi->dsip_clk);
  472. iounmap(mipi->linkbase);
  473. if (res2)
  474. release_mem_region(res2->start, resource_size(res2));
  475. iounmap(mipi->base);
  476. if (res)
  477. release_mem_region(res->start, resource_size(res));
  478. platform_set_drvdata(pdev, NULL);
  479. kfree(mipi);
  480. return 0;
  481. }
  482. static struct platform_driver sh_mipi_driver = {
  483. .remove = __exit_p(sh_mipi_remove),
  484. .shutdown = sh_mipi_shutdown,
  485. .driver = {
  486. .name = "sh-mipi-dsi",
  487. },
  488. };
  489. static int __init sh_mipi_init(void)
  490. {
  491. return platform_driver_probe(&sh_mipi_driver, sh_mipi_probe);
  492. }
  493. module_init(sh_mipi_init);
  494. static void __exit sh_mipi_exit(void)
  495. {
  496. platform_driver_unregister(&sh_mipi_driver);
  497. }
  498. module_exit(sh_mipi_exit);
  499. MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>");
  500. MODULE_DESCRIPTION("SuperH / ARM-shmobile MIPI DSI driver");
  501. MODULE_LICENSE("GPL v2");