ipuv3-crtc.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. /*
  2. * i.MX IPUv3 Graphics driver
  3. *
  4. * Copyright (C) 2011 Sascha Hauer, Pengutronix
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version 2
  9. * of the License, or (at your option) any later version.
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #include <linux/component.h>
  16. #include <linux/module.h>
  17. #include <linux/export.h>
  18. #include <linux/device.h>
  19. #include <linux/platform_device.h>
  20. #include <drm/drmP.h>
  21. #include <drm/drm_crtc_helper.h>
  22. #include <linux/fb.h>
  23. #include <linux/clk.h>
  24. #include <linux/errno.h>
  25. #include <linux/reservation.h>
  26. #include <linux/dma-buf.h>
  27. #include <drm/drm_gem_cma_helper.h>
  28. #include <drm/drm_fb_cma_helper.h>
  29. #include <video/imx-ipu-v3.h>
  30. #include "imx-drm.h"
  31. #include "ipuv3-plane.h"
  32. #define DRIVER_DESC "i.MX IPUv3 Graphics"
  33. enum ipu_flip_status {
  34. IPU_FLIP_NONE,
  35. IPU_FLIP_PENDING,
  36. IPU_FLIP_SUBMITTED,
  37. };
  38. struct ipu_flip_work {
  39. struct work_struct unref_work;
  40. struct drm_gem_object *bo;
  41. struct drm_pending_vblank_event *page_flip_event;
  42. struct work_struct fence_work;
  43. struct ipu_crtc *crtc;
  44. struct fence *excl;
  45. unsigned shared_count;
  46. struct fence **shared;
  47. };
  48. struct ipu_crtc {
  49. struct device *dev;
  50. struct drm_crtc base;
  51. struct imx_drm_crtc *imx_crtc;
  52. /* plane[0] is the full plane, plane[1] is the partial plane */
  53. struct ipu_plane *plane[2];
  54. struct ipu_dc *dc;
  55. struct ipu_di *di;
  56. int enabled;
  57. enum ipu_flip_status flip_state;
  58. struct workqueue_struct *flip_queue;
  59. struct ipu_flip_work *flip_work;
  60. int irq;
  61. u32 bus_format;
  62. int di_hsync_pin;
  63. int di_vsync_pin;
  64. };
  65. #define to_ipu_crtc(x) container_of(x, struct ipu_crtc, base)
  66. static void ipu_fb_enable(struct ipu_crtc *ipu_crtc)
  67. {
  68. struct ipu_soc *ipu = dev_get_drvdata(ipu_crtc->dev->parent);
  69. if (ipu_crtc->enabled)
  70. return;
  71. ipu_dc_enable(ipu);
  72. ipu_plane_enable(ipu_crtc->plane[0]);
  73. /* Start DC channel and DI after IDMAC */
  74. ipu_dc_enable_channel(ipu_crtc->dc);
  75. ipu_di_enable(ipu_crtc->di);
  76. drm_crtc_vblank_on(&ipu_crtc->base);
  77. ipu_crtc->enabled = 1;
  78. }
  79. static void ipu_fb_disable(struct ipu_crtc *ipu_crtc)
  80. {
  81. struct ipu_soc *ipu = dev_get_drvdata(ipu_crtc->dev->parent);
  82. if (!ipu_crtc->enabled)
  83. return;
  84. /* Stop DC channel and DI before IDMAC */
  85. ipu_dc_disable_channel(ipu_crtc->dc);
  86. ipu_di_disable(ipu_crtc->di);
  87. ipu_plane_disable(ipu_crtc->plane[0]);
  88. ipu_dc_disable(ipu);
  89. drm_crtc_vblank_off(&ipu_crtc->base);
  90. ipu_crtc->enabled = 0;
  91. }
  92. static void ipu_crtc_dpms(struct drm_crtc *crtc, int mode)
  93. {
  94. struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc);
  95. dev_dbg(ipu_crtc->dev, "%s mode: %d\n", __func__, mode);
  96. switch (mode) {
  97. case DRM_MODE_DPMS_ON:
  98. ipu_fb_enable(ipu_crtc);
  99. break;
  100. case DRM_MODE_DPMS_STANDBY:
  101. case DRM_MODE_DPMS_SUSPEND:
  102. case DRM_MODE_DPMS_OFF:
  103. ipu_fb_disable(ipu_crtc);
  104. break;
  105. }
  106. }
  107. static void ipu_flip_unref_work_func(struct work_struct *__work)
  108. {
  109. struct ipu_flip_work *work =
  110. container_of(__work, struct ipu_flip_work, unref_work);
  111. drm_gem_object_unreference_unlocked(work->bo);
  112. kfree(work);
  113. }
  114. static void ipu_flip_fence_work_func(struct work_struct *__work)
  115. {
  116. struct ipu_flip_work *work =
  117. container_of(__work, struct ipu_flip_work, fence_work);
  118. int i;
  119. /* wait for all fences attached to the FB obj to signal */
  120. if (work->excl) {
  121. fence_wait(work->excl, false);
  122. fence_put(work->excl);
  123. }
  124. for (i = 0; i < work->shared_count; i++) {
  125. fence_wait(work->shared[i], false);
  126. fence_put(work->shared[i]);
  127. }
  128. work->crtc->flip_state = IPU_FLIP_SUBMITTED;
  129. }
  130. static int ipu_page_flip(struct drm_crtc *crtc,
  131. struct drm_framebuffer *fb,
  132. struct drm_pending_vblank_event *event,
  133. uint32_t page_flip_flags)
  134. {
  135. struct drm_gem_cma_object *cma_obj = drm_fb_cma_get_gem_obj(fb, 0);
  136. struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc);
  137. struct ipu_flip_work *flip_work;
  138. int ret;
  139. if (ipu_crtc->flip_state != IPU_FLIP_NONE)
  140. return -EBUSY;
  141. ret = imx_drm_crtc_vblank_get(ipu_crtc->imx_crtc);
  142. if (ret) {
  143. dev_dbg(ipu_crtc->dev, "failed to acquire vblank counter\n");
  144. list_del(&event->base.link);
  145. return ret;
  146. }
  147. flip_work = kzalloc(sizeof *flip_work, GFP_KERNEL);
  148. if (!flip_work) {
  149. ret = -ENOMEM;
  150. goto put_vblank;
  151. }
  152. INIT_WORK(&flip_work->unref_work, ipu_flip_unref_work_func);
  153. flip_work->page_flip_event = event;
  154. /* get BO backing the old framebuffer and take a reference */
  155. flip_work->bo = &drm_fb_cma_get_gem_obj(crtc->primary->fb, 0)->base;
  156. drm_gem_object_reference(flip_work->bo);
  157. ipu_crtc->flip_work = flip_work;
  158. /*
  159. * If the object has a DMABUF attached, we need to wait on its fences
  160. * if there are any.
  161. */
  162. if (cma_obj->base.dma_buf) {
  163. INIT_WORK(&flip_work->fence_work, ipu_flip_fence_work_func);
  164. flip_work->crtc = ipu_crtc;
  165. ret = reservation_object_get_fences_rcu(
  166. cma_obj->base.dma_buf->resv, &flip_work->excl,
  167. &flip_work->shared_count, &flip_work->shared);
  168. if (unlikely(ret)) {
  169. DRM_ERROR("failed to get fences for buffer\n");
  170. goto free_flip_work;
  171. }
  172. /* No need to queue the worker if the are no fences */
  173. if (!flip_work->excl && !flip_work->shared_count) {
  174. ipu_crtc->flip_state = IPU_FLIP_SUBMITTED;
  175. } else {
  176. ipu_crtc->flip_state = IPU_FLIP_PENDING;
  177. queue_work(ipu_crtc->flip_queue,
  178. &flip_work->fence_work);
  179. }
  180. } else {
  181. ipu_crtc->flip_state = IPU_FLIP_SUBMITTED;
  182. }
  183. return 0;
  184. free_flip_work:
  185. drm_gem_object_unreference_unlocked(flip_work->bo);
  186. kfree(flip_work);
  187. ipu_crtc->flip_work = NULL;
  188. put_vblank:
  189. imx_drm_crtc_vblank_put(ipu_crtc->imx_crtc);
  190. return ret;
  191. }
  192. static const struct drm_crtc_funcs ipu_crtc_funcs = {
  193. .set_config = drm_crtc_helper_set_config,
  194. .destroy = drm_crtc_cleanup,
  195. .page_flip = ipu_page_flip,
  196. };
  197. static int ipu_crtc_mode_set(struct drm_crtc *crtc,
  198. struct drm_display_mode *orig_mode,
  199. struct drm_display_mode *mode,
  200. int x, int y,
  201. struct drm_framebuffer *old_fb)
  202. {
  203. struct drm_device *dev = crtc->dev;
  204. struct drm_encoder *encoder;
  205. struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc);
  206. struct ipu_di_signal_cfg sig_cfg = {};
  207. unsigned long encoder_types = 0;
  208. int ret;
  209. dev_dbg(ipu_crtc->dev, "%s: mode->hdisplay: %d\n", __func__,
  210. mode->hdisplay);
  211. dev_dbg(ipu_crtc->dev, "%s: mode->vdisplay: %d\n", __func__,
  212. mode->vdisplay);
  213. list_for_each_entry(encoder, &dev->mode_config.encoder_list, head)
  214. if (encoder->crtc == crtc)
  215. encoder_types |= BIT(encoder->encoder_type);
  216. dev_dbg(ipu_crtc->dev, "%s: attached to encoder types 0x%lx\n",
  217. __func__, encoder_types);
  218. /*
  219. * If we have DAC or LDB, then we need the IPU DI clock to be
  220. * the same as the LDB DI clock. For TVDAC, derive the IPU DI
  221. * clock from 27 MHz TVE_DI clock, but allow to divide it.
  222. */
  223. if (encoder_types & (BIT(DRM_MODE_ENCODER_DAC) |
  224. BIT(DRM_MODE_ENCODER_LVDS)))
  225. sig_cfg.clkflags = IPU_DI_CLKMODE_SYNC | IPU_DI_CLKMODE_EXT;
  226. else if (encoder_types & BIT(DRM_MODE_ENCODER_TVDAC))
  227. sig_cfg.clkflags = IPU_DI_CLKMODE_EXT;
  228. else
  229. sig_cfg.clkflags = 0;
  230. sig_cfg.enable_pol = 1;
  231. sig_cfg.clk_pol = 0;
  232. sig_cfg.bus_format = ipu_crtc->bus_format;
  233. sig_cfg.v_to_h_sync = 0;
  234. sig_cfg.hsync_pin = ipu_crtc->di_hsync_pin;
  235. sig_cfg.vsync_pin = ipu_crtc->di_vsync_pin;
  236. drm_display_mode_to_videomode(mode, &sig_cfg.mode);
  237. ret = ipu_dc_init_sync(ipu_crtc->dc, ipu_crtc->di,
  238. mode->flags & DRM_MODE_FLAG_INTERLACE,
  239. ipu_crtc->bus_format, mode->hdisplay);
  240. if (ret) {
  241. dev_err(ipu_crtc->dev,
  242. "initializing display controller failed with %d\n",
  243. ret);
  244. return ret;
  245. }
  246. ret = ipu_di_init_sync_panel(ipu_crtc->di, &sig_cfg);
  247. if (ret) {
  248. dev_err(ipu_crtc->dev,
  249. "initializing panel failed with %d\n", ret);
  250. return ret;
  251. }
  252. return ipu_plane_mode_set(ipu_crtc->plane[0], crtc, mode,
  253. crtc->primary->fb,
  254. 0, 0, mode->hdisplay, mode->vdisplay,
  255. x, y, mode->hdisplay, mode->vdisplay,
  256. mode->flags & DRM_MODE_FLAG_INTERLACE);
  257. }
  258. static void ipu_crtc_handle_pageflip(struct ipu_crtc *ipu_crtc)
  259. {
  260. unsigned long flags;
  261. struct drm_device *drm = ipu_crtc->base.dev;
  262. struct ipu_flip_work *work = ipu_crtc->flip_work;
  263. spin_lock_irqsave(&drm->event_lock, flags);
  264. if (work->page_flip_event)
  265. drm_crtc_send_vblank_event(&ipu_crtc->base,
  266. work->page_flip_event);
  267. imx_drm_crtc_vblank_put(ipu_crtc->imx_crtc);
  268. spin_unlock_irqrestore(&drm->event_lock, flags);
  269. }
  270. static irqreturn_t ipu_irq_handler(int irq, void *dev_id)
  271. {
  272. struct ipu_crtc *ipu_crtc = dev_id;
  273. imx_drm_handle_vblank(ipu_crtc->imx_crtc);
  274. if (ipu_crtc->flip_state == IPU_FLIP_SUBMITTED) {
  275. struct ipu_plane *plane = ipu_crtc->plane[0];
  276. ipu_plane_set_base(plane, ipu_crtc->base.primary->fb,
  277. plane->x, plane->y);
  278. ipu_crtc_handle_pageflip(ipu_crtc);
  279. queue_work(ipu_crtc->flip_queue,
  280. &ipu_crtc->flip_work->unref_work);
  281. ipu_crtc->flip_state = IPU_FLIP_NONE;
  282. }
  283. return IRQ_HANDLED;
  284. }
  285. static bool ipu_crtc_mode_fixup(struct drm_crtc *crtc,
  286. const struct drm_display_mode *mode,
  287. struct drm_display_mode *adjusted_mode)
  288. {
  289. struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc);
  290. struct videomode vm;
  291. int ret;
  292. drm_display_mode_to_videomode(adjusted_mode, &vm);
  293. ret = ipu_di_adjust_videomode(ipu_crtc->di, &vm);
  294. if (ret)
  295. return false;
  296. drm_display_mode_from_videomode(&vm, adjusted_mode);
  297. return true;
  298. }
  299. static void ipu_crtc_prepare(struct drm_crtc *crtc)
  300. {
  301. struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc);
  302. ipu_fb_disable(ipu_crtc);
  303. }
  304. static void ipu_crtc_commit(struct drm_crtc *crtc)
  305. {
  306. struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc);
  307. ipu_fb_enable(ipu_crtc);
  308. }
  309. static const struct drm_crtc_helper_funcs ipu_helper_funcs = {
  310. .dpms = ipu_crtc_dpms,
  311. .mode_fixup = ipu_crtc_mode_fixup,
  312. .mode_set = ipu_crtc_mode_set,
  313. .prepare = ipu_crtc_prepare,
  314. .commit = ipu_crtc_commit,
  315. };
  316. static int ipu_enable_vblank(struct drm_crtc *crtc)
  317. {
  318. struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc);
  319. enable_irq(ipu_crtc->irq);
  320. return 0;
  321. }
  322. static void ipu_disable_vblank(struct drm_crtc *crtc)
  323. {
  324. struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc);
  325. disable_irq_nosync(ipu_crtc->irq);
  326. }
  327. static int ipu_set_interface_pix_fmt(struct drm_crtc *crtc,
  328. u32 bus_format, int hsync_pin, int vsync_pin)
  329. {
  330. struct ipu_crtc *ipu_crtc = to_ipu_crtc(crtc);
  331. ipu_crtc->bus_format = bus_format;
  332. ipu_crtc->di_hsync_pin = hsync_pin;
  333. ipu_crtc->di_vsync_pin = vsync_pin;
  334. return 0;
  335. }
  336. static const struct imx_drm_crtc_helper_funcs ipu_crtc_helper_funcs = {
  337. .enable_vblank = ipu_enable_vblank,
  338. .disable_vblank = ipu_disable_vblank,
  339. .set_interface_pix_fmt = ipu_set_interface_pix_fmt,
  340. .crtc_funcs = &ipu_crtc_funcs,
  341. .crtc_helper_funcs = &ipu_helper_funcs,
  342. };
  343. static void ipu_put_resources(struct ipu_crtc *ipu_crtc)
  344. {
  345. if (!IS_ERR_OR_NULL(ipu_crtc->dc))
  346. ipu_dc_put(ipu_crtc->dc);
  347. if (!IS_ERR_OR_NULL(ipu_crtc->di))
  348. ipu_di_put(ipu_crtc->di);
  349. }
  350. static int ipu_get_resources(struct ipu_crtc *ipu_crtc,
  351. struct ipu_client_platformdata *pdata)
  352. {
  353. struct ipu_soc *ipu = dev_get_drvdata(ipu_crtc->dev->parent);
  354. int ret;
  355. ipu_crtc->dc = ipu_dc_get(ipu, pdata->dc);
  356. if (IS_ERR(ipu_crtc->dc)) {
  357. ret = PTR_ERR(ipu_crtc->dc);
  358. goto err_out;
  359. }
  360. ipu_crtc->di = ipu_di_get(ipu, pdata->di);
  361. if (IS_ERR(ipu_crtc->di)) {
  362. ret = PTR_ERR(ipu_crtc->di);
  363. goto err_out;
  364. }
  365. return 0;
  366. err_out:
  367. ipu_put_resources(ipu_crtc);
  368. return ret;
  369. }
  370. static int ipu_crtc_init(struct ipu_crtc *ipu_crtc,
  371. struct ipu_client_platformdata *pdata, struct drm_device *drm)
  372. {
  373. struct ipu_soc *ipu = dev_get_drvdata(ipu_crtc->dev->parent);
  374. int dp = -EINVAL;
  375. int ret;
  376. ret = ipu_get_resources(ipu_crtc, pdata);
  377. if (ret) {
  378. dev_err(ipu_crtc->dev, "getting resources failed with %d.\n",
  379. ret);
  380. return ret;
  381. }
  382. if (pdata->dp >= 0)
  383. dp = IPU_DP_FLOW_SYNC_BG;
  384. ipu_crtc->plane[0] = ipu_plane_init(drm, ipu, pdata->dma[0], dp, 0,
  385. DRM_PLANE_TYPE_PRIMARY);
  386. if (IS_ERR(ipu_crtc->plane[0])) {
  387. ret = PTR_ERR(ipu_crtc->plane[0]);
  388. goto err_put_resources;
  389. }
  390. ret = imx_drm_add_crtc(drm, &ipu_crtc->base, &ipu_crtc->imx_crtc,
  391. &ipu_crtc->plane[0]->base, &ipu_crtc_helper_funcs,
  392. pdata->of_node);
  393. if (ret) {
  394. dev_err(ipu_crtc->dev, "adding crtc failed with %d.\n", ret);
  395. goto err_put_resources;
  396. }
  397. ret = ipu_plane_get_resources(ipu_crtc->plane[0]);
  398. if (ret) {
  399. dev_err(ipu_crtc->dev, "getting plane 0 resources failed with %d.\n",
  400. ret);
  401. goto err_remove_crtc;
  402. }
  403. /* If this crtc is using the DP, add an overlay plane */
  404. if (pdata->dp >= 0 && pdata->dma[1] > 0) {
  405. ipu_crtc->plane[1] = ipu_plane_init(drm, ipu, pdata->dma[1],
  406. IPU_DP_FLOW_SYNC_FG,
  407. drm_crtc_mask(&ipu_crtc->base),
  408. DRM_PLANE_TYPE_OVERLAY);
  409. if (IS_ERR(ipu_crtc->plane[1]))
  410. ipu_crtc->plane[1] = NULL;
  411. }
  412. ipu_crtc->irq = ipu_plane_irq(ipu_crtc->plane[0]);
  413. ret = devm_request_irq(ipu_crtc->dev, ipu_crtc->irq, ipu_irq_handler, 0,
  414. "imx_drm", ipu_crtc);
  415. if (ret < 0) {
  416. dev_err(ipu_crtc->dev, "irq request failed with %d.\n", ret);
  417. goto err_put_plane_res;
  418. }
  419. /* Only enable IRQ when we actually need it to trigger work. */
  420. disable_irq(ipu_crtc->irq);
  421. ipu_crtc->flip_queue = create_singlethread_workqueue("ipu-crtc-flip");
  422. return 0;
  423. err_put_plane_res:
  424. ipu_plane_put_resources(ipu_crtc->plane[0]);
  425. err_remove_crtc:
  426. imx_drm_remove_crtc(ipu_crtc->imx_crtc);
  427. err_put_resources:
  428. ipu_put_resources(ipu_crtc);
  429. return ret;
  430. }
  431. static int ipu_drm_bind(struct device *dev, struct device *master, void *data)
  432. {
  433. struct ipu_client_platformdata *pdata = dev->platform_data;
  434. struct drm_device *drm = data;
  435. struct ipu_crtc *ipu_crtc;
  436. int ret;
  437. ipu_crtc = devm_kzalloc(dev, sizeof(*ipu_crtc), GFP_KERNEL);
  438. if (!ipu_crtc)
  439. return -ENOMEM;
  440. ipu_crtc->dev = dev;
  441. ret = ipu_crtc_init(ipu_crtc, pdata, drm);
  442. if (ret)
  443. return ret;
  444. dev_set_drvdata(dev, ipu_crtc);
  445. return 0;
  446. }
  447. static void ipu_drm_unbind(struct device *dev, struct device *master,
  448. void *data)
  449. {
  450. struct ipu_crtc *ipu_crtc = dev_get_drvdata(dev);
  451. imx_drm_remove_crtc(ipu_crtc->imx_crtc);
  452. destroy_workqueue(ipu_crtc->flip_queue);
  453. ipu_plane_put_resources(ipu_crtc->plane[0]);
  454. ipu_put_resources(ipu_crtc);
  455. }
  456. static const struct component_ops ipu_crtc_ops = {
  457. .bind = ipu_drm_bind,
  458. .unbind = ipu_drm_unbind,
  459. };
  460. static int ipu_drm_probe(struct platform_device *pdev)
  461. {
  462. struct device *dev = &pdev->dev;
  463. int ret;
  464. if (!dev->platform_data)
  465. return -EINVAL;
  466. ret = dma_set_coherent_mask(dev, DMA_BIT_MASK(32));
  467. if (ret)
  468. return ret;
  469. return component_add(dev, &ipu_crtc_ops);
  470. }
  471. static int ipu_drm_remove(struct platform_device *pdev)
  472. {
  473. component_del(&pdev->dev, &ipu_crtc_ops);
  474. return 0;
  475. }
  476. static struct platform_driver ipu_drm_driver = {
  477. .driver = {
  478. .name = "imx-ipuv3-crtc",
  479. },
  480. .probe = ipu_drm_probe,
  481. .remove = ipu_drm_remove,
  482. };
  483. module_platform_driver(ipu_drm_driver);
  484. MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>");
  485. MODULE_DESCRIPTION(DRIVER_DESC);
  486. MODULE_LICENSE("GPL");
  487. MODULE_ALIAS("platform:imx-ipuv3-crtc");