mmp_ctrl.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  1. /*
  2. * linux/drivers/video/mmp/hw/mmp_ctrl.c
  3. * Marvell MMP series Display Controller support
  4. *
  5. * Copyright (C) 2012 Marvell Technology Group Ltd.
  6. * Authors: Guoqing Li <ligq@marvell.com>
  7. * Lisa Du <cldu@marvell.com>
  8. * Zhou Zhu <zzhu3@marvell.com>
  9. *
  10. * This program is free software; you can redistribute it and/or modify it
  11. * under the terms of the GNU General Public License as published by the
  12. * Free Software Foundation; either version 2 of the License, or (at your
  13. * option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful, but WITHOUT
  16. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  17. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  18. * more details.
  19. *
  20. * You should have received a copy of the GNU General Public License along with
  21. * this program. If not, see <http://www.gnu.org/licenses/>.
  22. *
  23. */
  24. #include <linux/module.h>
  25. #include <linux/moduleparam.h>
  26. #include <linux/kernel.h>
  27. #include <linux/errno.h>
  28. #include <linux/string.h>
  29. #include <linux/interrupt.h>
  30. #include <linux/slab.h>
  31. #include <linux/delay.h>
  32. #include <linux/platform_device.h>
  33. #include <linux/dma-mapping.h>
  34. #include <linux/clk.h>
  35. #include <linux/err.h>
  36. #include <linux/vmalloc.h>
  37. #include <linux/uaccess.h>
  38. #include <linux/kthread.h>
  39. #include <linux/io.h>
  40. #include "mmp_ctrl.h"
  41. static irqreturn_t ctrl_handle_irq(int irq, void *dev_id)
  42. {
  43. struct mmphw_ctrl *ctrl = (struct mmphw_ctrl *)dev_id;
  44. u32 isr, imask, tmp;
  45. isr = readl_relaxed(ctrl->reg_base + SPU_IRQ_ISR);
  46. imask = readl_relaxed(ctrl->reg_base + SPU_IRQ_ENA);
  47. do {
  48. /* clear clock only */
  49. tmp = readl_relaxed(ctrl->reg_base + SPU_IRQ_ISR);
  50. if (tmp & isr)
  51. writel_relaxed(~isr, ctrl->reg_base + SPU_IRQ_ISR);
  52. } while ((isr = readl_relaxed(ctrl->reg_base + SPU_IRQ_ISR)) & imask);
  53. return IRQ_HANDLED;
  54. }
  55. static u32 fmt_to_reg(struct mmp_overlay *overlay, int pix_fmt)
  56. {
  57. u32 rbswap = 0, uvswap = 0, yuvswap = 0,
  58. csc_en = 0, val = 0,
  59. vid = overlay_is_vid(overlay);
  60. switch (pix_fmt) {
  61. case PIXFMT_RGB565:
  62. case PIXFMT_RGB1555:
  63. case PIXFMT_RGB888PACK:
  64. case PIXFMT_RGB888UNPACK:
  65. case PIXFMT_RGBA888:
  66. rbswap = 1;
  67. break;
  68. case PIXFMT_VYUY:
  69. case PIXFMT_YVU422P:
  70. case PIXFMT_YVU420P:
  71. uvswap = 1;
  72. break;
  73. case PIXFMT_YUYV:
  74. yuvswap = 1;
  75. break;
  76. default:
  77. break;
  78. }
  79. switch (pix_fmt) {
  80. case PIXFMT_RGB565:
  81. case PIXFMT_BGR565:
  82. break;
  83. case PIXFMT_RGB1555:
  84. case PIXFMT_BGR1555:
  85. val = 0x1;
  86. break;
  87. case PIXFMT_RGB888PACK:
  88. case PIXFMT_BGR888PACK:
  89. val = 0x2;
  90. break;
  91. case PIXFMT_RGB888UNPACK:
  92. case PIXFMT_BGR888UNPACK:
  93. val = 0x3;
  94. break;
  95. case PIXFMT_RGBA888:
  96. case PIXFMT_BGRA888:
  97. val = 0x4;
  98. break;
  99. case PIXFMT_UYVY:
  100. case PIXFMT_VYUY:
  101. case PIXFMT_YUYV:
  102. val = 0x5;
  103. csc_en = 1;
  104. break;
  105. case PIXFMT_YUV422P:
  106. case PIXFMT_YVU422P:
  107. val = 0x6;
  108. csc_en = 1;
  109. break;
  110. case PIXFMT_YUV420P:
  111. case PIXFMT_YVU420P:
  112. val = 0x7;
  113. csc_en = 1;
  114. break;
  115. default:
  116. break;
  117. }
  118. return (dma_palette(0) | dma_fmt(vid, val) |
  119. dma_swaprb(vid, rbswap) | dma_swapuv(vid, uvswap) |
  120. dma_swapyuv(vid, yuvswap) | dma_csc(vid, csc_en));
  121. }
  122. static void dmafetch_set_fmt(struct mmp_overlay *overlay)
  123. {
  124. u32 tmp;
  125. struct mmp_path *path = overlay->path;
  126. tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id));
  127. tmp &= ~dma_mask(overlay_is_vid(overlay));
  128. tmp |= fmt_to_reg(overlay, overlay->win.pix_fmt);
  129. writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id));
  130. }
  131. static void overlay_set_win(struct mmp_overlay *overlay, struct mmp_win *win)
  132. {
  133. struct lcd_regs *regs = path_regs(overlay->path);
  134. /* assert win supported */
  135. memcpy(&overlay->win, win, sizeof(struct mmp_win));
  136. mutex_lock(&overlay->access_ok);
  137. if (overlay_is_vid(overlay)) {
  138. writel_relaxed(win->pitch[0], &regs->v_pitch_yc);
  139. writel_relaxed(win->pitch[2] << 16 |
  140. win->pitch[1], &regs->v_pitch_uv);
  141. writel_relaxed((win->ysrc << 16) | win->xsrc, &regs->v_size);
  142. writel_relaxed((win->ydst << 16) | win->xdst, &regs->v_size_z);
  143. writel_relaxed(win->ypos << 16 | win->xpos, &regs->v_start);
  144. } else {
  145. writel_relaxed(win->pitch[0], &regs->g_pitch);
  146. writel_relaxed((win->ysrc << 16) | win->xsrc, &regs->g_size);
  147. writel_relaxed((win->ydst << 16) | win->xdst, &regs->g_size_z);
  148. writel_relaxed(win->ypos << 16 | win->xpos, &regs->g_start);
  149. }
  150. dmafetch_set_fmt(overlay);
  151. mutex_unlock(&overlay->access_ok);
  152. }
  153. static void dmafetch_onoff(struct mmp_overlay *overlay, int on)
  154. {
  155. u32 mask = overlay_is_vid(overlay) ? CFG_DMA_ENA_MASK :
  156. CFG_GRA_ENA_MASK;
  157. u32 enable = overlay_is_vid(overlay) ? CFG_DMA_ENA(1) : CFG_GRA_ENA(1);
  158. u32 tmp;
  159. struct mmp_path *path = overlay->path;
  160. mutex_lock(&overlay->access_ok);
  161. tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id));
  162. tmp &= ~mask;
  163. tmp |= (on ? enable : 0);
  164. writel(tmp, ctrl_regs(path) + dma_ctrl(0, path->id));
  165. mutex_unlock(&overlay->access_ok);
  166. }
  167. static void path_enabledisable(struct mmp_path *path, int on)
  168. {
  169. u32 tmp;
  170. mutex_lock(&path->access_ok);
  171. tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path));
  172. if (on)
  173. tmp &= ~SCLK_DISABLE;
  174. else
  175. tmp |= SCLK_DISABLE;
  176. writel_relaxed(tmp, ctrl_regs(path) + LCD_SCLK(path));
  177. mutex_unlock(&path->access_ok);
  178. }
  179. static void path_onoff(struct mmp_path *path, int on)
  180. {
  181. if (path->status == on) {
  182. dev_info(path->dev, "path %s is already %s\n",
  183. path->name, stat_name(path->status));
  184. return;
  185. }
  186. if (on) {
  187. path_enabledisable(path, 1);
  188. if (path->panel && path->panel->set_onoff)
  189. path->panel->set_onoff(path->panel, 1);
  190. } else {
  191. if (path->panel && path->panel->set_onoff)
  192. path->panel->set_onoff(path->panel, 0);
  193. path_enabledisable(path, 0);
  194. }
  195. path->status = on;
  196. }
  197. static void overlay_set_onoff(struct mmp_overlay *overlay, int on)
  198. {
  199. if (overlay->status == on) {
  200. dev_info(overlay_to_ctrl(overlay)->dev, "overlay %s is already %s\n",
  201. overlay->path->name, stat_name(overlay->status));
  202. return;
  203. }
  204. overlay->status = on;
  205. dmafetch_onoff(overlay, on);
  206. if (overlay->path->ops.check_status(overlay->path)
  207. != overlay->path->status)
  208. path_onoff(overlay->path, on);
  209. }
  210. static void overlay_set_fetch(struct mmp_overlay *overlay, int fetch_id)
  211. {
  212. overlay->dmafetch_id = fetch_id;
  213. }
  214. static int overlay_set_addr(struct mmp_overlay *overlay, struct mmp_addr *addr)
  215. {
  216. struct lcd_regs *regs = path_regs(overlay->path);
  217. /* FIXME: assert addr supported */
  218. memcpy(&overlay->addr, addr, sizeof(struct mmp_addr));
  219. if (overlay_is_vid(overlay)) {
  220. writel_relaxed(addr->phys[0], &regs->v_y0);
  221. writel_relaxed(addr->phys[1], &regs->v_u0);
  222. writel_relaxed(addr->phys[2], &regs->v_v0);
  223. } else
  224. writel_relaxed(addr->phys[0], &regs->g_0);
  225. return overlay->addr.phys[0];
  226. }
  227. static void path_set_mode(struct mmp_path *path, struct mmp_mode *mode)
  228. {
  229. struct lcd_regs *regs = path_regs(path);
  230. u32 total_x, total_y, vsync_ctrl, tmp, sclk_src, sclk_div,
  231. link_config = path_to_path_plat(path)->link_config,
  232. dsi_rbswap = path_to_path_plat(path)->link_config;
  233. /* FIXME: assert videomode supported */
  234. memcpy(&path->mode, mode, sizeof(struct mmp_mode));
  235. mutex_lock(&path->access_ok);
  236. /* polarity of timing signals */
  237. tmp = readl_relaxed(ctrl_regs(path) + intf_ctrl(path->id)) & 0x1;
  238. tmp |= mode->vsync_invert ? 0 : 0x8;
  239. tmp |= mode->hsync_invert ? 0 : 0x4;
  240. tmp |= link_config & CFG_DUMBMODE_MASK;
  241. tmp |= CFG_DUMB_ENA(1);
  242. writel_relaxed(tmp, ctrl_regs(path) + intf_ctrl(path->id));
  243. /* interface rb_swap setting */
  244. tmp = readl_relaxed(ctrl_regs(path) + intf_rbswap_ctrl(path->id)) &
  245. (~(CFG_INTFRBSWAP_MASK));
  246. tmp |= dsi_rbswap & CFG_INTFRBSWAP_MASK;
  247. writel_relaxed(tmp, ctrl_regs(path) + intf_rbswap_ctrl(path->id));
  248. writel_relaxed((mode->yres << 16) | mode->xres, &regs->screen_active);
  249. writel_relaxed((mode->left_margin << 16) | mode->right_margin,
  250. &regs->screen_h_porch);
  251. writel_relaxed((mode->upper_margin << 16) | mode->lower_margin,
  252. &regs->screen_v_porch);
  253. total_x = mode->xres + mode->left_margin + mode->right_margin +
  254. mode->hsync_len;
  255. total_y = mode->yres + mode->upper_margin + mode->lower_margin +
  256. mode->vsync_len;
  257. writel_relaxed((total_y << 16) | total_x, &regs->screen_size);
  258. /* vsync ctrl */
  259. if (path->output_type == PATH_OUT_DSI)
  260. vsync_ctrl = 0x01330133;
  261. else
  262. vsync_ctrl = ((mode->xres + mode->right_margin) << 16)
  263. | (mode->xres + mode->right_margin);
  264. writel_relaxed(vsync_ctrl, &regs->vsync_ctrl);
  265. /* set pixclock div */
  266. sclk_src = clk_get_rate(path_to_ctrl(path)->clk);
  267. sclk_div = sclk_src / mode->pixclock_freq;
  268. if (sclk_div * mode->pixclock_freq < sclk_src)
  269. sclk_div++;
  270. dev_info(path->dev, "%s sclk_src %d sclk_div 0x%x pclk %d\n",
  271. __func__, sclk_src, sclk_div, mode->pixclock_freq);
  272. tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path));
  273. tmp &= ~CLK_INT_DIV_MASK;
  274. tmp |= sclk_div;
  275. writel_relaxed(tmp, ctrl_regs(path) + LCD_SCLK(path));
  276. mutex_unlock(&path->access_ok);
  277. }
  278. static struct mmp_overlay_ops mmphw_overlay_ops = {
  279. .set_fetch = overlay_set_fetch,
  280. .set_onoff = overlay_set_onoff,
  281. .set_win = overlay_set_win,
  282. .set_addr = overlay_set_addr,
  283. };
  284. static void ctrl_set_default(struct mmphw_ctrl *ctrl)
  285. {
  286. u32 tmp, irq_mask;
  287. /*
  288. * LCD Global control(LCD_TOP_CTRL) should be configed before
  289. * any other LCD registers read/write, or there maybe issues.
  290. */
  291. tmp = readl_relaxed(ctrl->reg_base + LCD_TOP_CTRL);
  292. tmp |= 0xfff0;
  293. writel_relaxed(tmp, ctrl->reg_base + LCD_TOP_CTRL);
  294. /* disable all interrupts */
  295. irq_mask = path_imasks(0) | err_imask(0) |
  296. path_imasks(1) | err_imask(1);
  297. tmp = readl_relaxed(ctrl->reg_base + SPU_IRQ_ENA);
  298. tmp &= ~irq_mask;
  299. tmp |= irq_mask;
  300. writel_relaxed(tmp, ctrl->reg_base + SPU_IRQ_ENA);
  301. }
  302. static void path_set_default(struct mmp_path *path)
  303. {
  304. struct lcd_regs *regs = path_regs(path);
  305. u32 dma_ctrl1, mask, tmp, path_config;
  306. path_config = path_to_path_plat(path)->path_config;
  307. /* Configure IOPAD: should be parallel only */
  308. if (PATH_OUT_PARALLEL == path->output_type) {
  309. mask = CFG_IOPADMODE_MASK | CFG_BURST_MASK | CFG_BOUNDARY_MASK;
  310. tmp = readl_relaxed(ctrl_regs(path) + SPU_IOPAD_CONTROL);
  311. tmp &= ~mask;
  312. tmp |= path_config;
  313. writel_relaxed(tmp, ctrl_regs(path) + SPU_IOPAD_CONTROL);
  314. }
  315. /* Select path clock source */
  316. tmp = readl_relaxed(ctrl_regs(path) + LCD_SCLK(path));
  317. tmp &= ~SCLK_SRC_SEL_MASK;
  318. tmp |= path_config;
  319. writel_relaxed(tmp, ctrl_regs(path) + LCD_SCLK(path));
  320. /*
  321. * Configure default bits: vsync triggers DMA,
  322. * power save enable, configure alpha registers to
  323. * display 100% graphics, and set pixel command.
  324. */
  325. dma_ctrl1 = 0x2032ff81;
  326. dma_ctrl1 |= CFG_VSYNC_INV_MASK;
  327. writel_relaxed(dma_ctrl1, ctrl_regs(path) + dma_ctrl(1, path->id));
  328. /* Configure default register values */
  329. writel_relaxed(0x00000000, &regs->blank_color);
  330. writel_relaxed(0x00000000, &regs->g_1);
  331. writel_relaxed(0x00000000, &regs->g_start);
  332. /*
  333. * 1.enable multiple burst request in DMA AXI
  334. * bus arbiter for faster read if not tv path;
  335. * 2.enable horizontal smooth filter;
  336. */
  337. mask = CFG_GRA_HSMOOTH_MASK | CFG_DMA_HSMOOTH_MASK | CFG_ARBFAST_ENA(1);
  338. tmp = readl_relaxed(ctrl_regs(path) + dma_ctrl(0, path->id));
  339. tmp |= mask;
  340. if (PATH_TV == path->id)
  341. tmp &= ~CFG_ARBFAST_ENA(1);
  342. writel_relaxed(tmp, ctrl_regs(path) + dma_ctrl(0, path->id));
  343. }
  344. static int path_init(struct mmphw_path_plat *path_plat,
  345. struct mmp_mach_path_config *config)
  346. {
  347. struct mmphw_ctrl *ctrl = path_plat->ctrl;
  348. struct mmp_path_info *path_info;
  349. struct mmp_path *path = NULL;
  350. dev_info(ctrl->dev, "%s: %s\n", __func__, config->name);
  351. /* init driver data */
  352. path_info = kzalloc(sizeof(struct mmp_path_info), GFP_KERNEL);
  353. if (!path_info) {
  354. dev_err(ctrl->dev, "%s: unable to alloc path_info for %s\n",
  355. __func__, config->name);
  356. return 0;
  357. }
  358. path_info->name = config->name;
  359. path_info->id = path_plat->id;
  360. path_info->dev = ctrl->dev;
  361. path_info->overlay_num = config->overlay_num;
  362. path_info->overlay_ops = &mmphw_overlay_ops;
  363. path_info->set_mode = path_set_mode;
  364. path_info->plat_data = path_plat;
  365. /* create/register platform device */
  366. path = mmp_register_path(path_info);
  367. if (!path) {
  368. kfree(path_info);
  369. return 0;
  370. }
  371. path_plat->path = path;
  372. path_plat->path_config = config->path_config;
  373. path_plat->link_config = config->link_config;
  374. path_plat->dsi_rbswap = config->dsi_rbswap;
  375. path_set_default(path);
  376. kfree(path_info);
  377. return 1;
  378. }
  379. static void path_deinit(struct mmphw_path_plat *path_plat)
  380. {
  381. if (!path_plat)
  382. return;
  383. mmp_unregister_path(path_plat->path);
  384. }
  385. static int mmphw_probe(struct platform_device *pdev)
  386. {
  387. struct mmp_mach_plat_info *mi;
  388. struct resource *res;
  389. int ret, i, size, irq;
  390. struct mmphw_path_plat *path_plat;
  391. struct mmphw_ctrl *ctrl = NULL;
  392. /* get resources from platform data */
  393. res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  394. if (res == NULL) {
  395. dev_err(&pdev->dev, "%s: no IO memory defined\n", __func__);
  396. ret = -ENOENT;
  397. goto failed;
  398. }
  399. irq = platform_get_irq(pdev, 0);
  400. if (irq < 0) {
  401. dev_err(&pdev->dev, "%s: no IRQ defined\n", __func__);
  402. ret = -ENOENT;
  403. goto failed;
  404. }
  405. /* get configs from platform data */
  406. mi = pdev->dev.platform_data;
  407. if (mi == NULL || !mi->path_num || !mi->paths) {
  408. dev_err(&pdev->dev, "%s: no platform data defined\n", __func__);
  409. ret = -EINVAL;
  410. goto failed;
  411. }
  412. /* allocate */
  413. size = sizeof(struct mmphw_ctrl) + sizeof(struct mmphw_path_plat) *
  414. mi->path_num;
  415. ctrl = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
  416. if (!ctrl) {
  417. ret = -ENOMEM;
  418. goto failed;
  419. }
  420. ctrl->name = mi->name;
  421. ctrl->path_num = mi->path_num;
  422. ctrl->dev = &pdev->dev;
  423. ctrl->irq = irq;
  424. platform_set_drvdata(pdev, ctrl);
  425. mutex_init(&ctrl->access_ok);
  426. /* map registers.*/
  427. if (!devm_request_mem_region(ctrl->dev, res->start,
  428. resource_size(res), ctrl->name)) {
  429. dev_err(ctrl->dev,
  430. "can't request region for resource %pR\n", res);
  431. ret = -EINVAL;
  432. goto failed;
  433. }
  434. ctrl->reg_base = devm_ioremap_nocache(ctrl->dev,
  435. res->start, resource_size(res));
  436. if (ctrl->reg_base == NULL) {
  437. dev_err(ctrl->dev, "%s: res %x - %x map failed\n", __func__,
  438. res->start, res->end);
  439. ret = -ENOMEM;
  440. goto failed;
  441. }
  442. /* request irq */
  443. ret = devm_request_irq(ctrl->dev, ctrl->irq, ctrl_handle_irq,
  444. IRQF_SHARED, "lcd_controller", ctrl);
  445. if (ret < 0) {
  446. dev_err(ctrl->dev, "%s unable to request IRQ %d\n",
  447. __func__, ctrl->irq);
  448. ret = -ENXIO;
  449. goto failed;
  450. }
  451. /* get clock */
  452. ctrl->clk = devm_clk_get(ctrl->dev, mi->clk_name);
  453. if (IS_ERR(ctrl->clk)) {
  454. dev_err(ctrl->dev, "unable to get clk %s\n", mi->clk_name);
  455. ret = -ENOENT;
  456. goto failed;
  457. }
  458. clk_prepare_enable(ctrl->clk);
  459. /* init global regs */
  460. ctrl_set_default(ctrl);
  461. /* init pathes from machine info and register them */
  462. for (i = 0; i < ctrl->path_num; i++) {
  463. /* get from config and machine info */
  464. path_plat = &ctrl->path_plats[i];
  465. path_plat->id = i;
  466. path_plat->ctrl = ctrl;
  467. /* path init */
  468. if (!path_init(path_plat, &mi->paths[i])) {
  469. ret = -EINVAL;
  470. goto failed_path_init;
  471. }
  472. }
  473. #ifdef CONFIG_MMP_DISP_SPI
  474. ret = lcd_spi_register(ctrl);
  475. if (ret < 0)
  476. goto failed_path_init;
  477. #endif
  478. dev_info(ctrl->dev, "device init done\n");
  479. return 0;
  480. failed_path_init:
  481. for (i = 0; i < ctrl->path_num; i++) {
  482. path_plat = &ctrl->path_plats[i];
  483. path_deinit(path_plat);
  484. }
  485. clk_disable_unprepare(ctrl->clk);
  486. failed:
  487. dev_err(&pdev->dev, "device init failed\n");
  488. return ret;
  489. }
  490. static struct platform_driver mmphw_driver = {
  491. .driver = {
  492. .name = "mmp-disp",
  493. },
  494. .probe = mmphw_probe,
  495. };
  496. static int mmphw_init(void)
  497. {
  498. return platform_driver_register(&mmphw_driver);
  499. }
  500. module_init(mmphw_init);
  501. MODULE_AUTHOR("Li Guoqing<ligq@marvell.com>");
  502. MODULE_DESCRIPTION("Framebuffer driver for mmp");
  503. MODULE_LICENSE("GPL");