ipuv3-crtc.c 15 KB

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