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