1 // SPDX-License-Identifier: GPL-2.0+
3 * R-Car Display Unit DRM driver
5 * Copyright (C) 2013-2015 Renesas Electronics Corporation
7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
10 #include <linux/clk.h>
11 #include <linux/dma-mapping.h>
14 #include <linux/module.h>
15 #include <linux/of_device.h>
16 #include <linux/platform_device.h>
18 #include <linux/slab.h>
19 #include <linux/sys_soc.h>
20 #include <linux/wait.h>
22 #include <drm/drm_atomic_helper.h>
23 #include <drm/drm_drv.h>
24 #include <drm/drm_fbdev_generic.h>
25 #include <drm/drm_gem_dma_helper.h>
26 #include <drm/drm_managed.h>
27 #include <drm/drm_probe_helper.h>
29 #include "rcar_du_drv.h"
30 #include "rcar_du_kms.h"
32 /* -----------------------------------------------------------------------------
36 static const struct rcar_du_device_info rzg1_du_r8a7743_info = {
38 .features = RCAR_DU_FEATURE_CRTC_IRQ
39 | RCAR_DU_FEATURE_CRTC_CLOCK
40 | RCAR_DU_FEATURE_INTERLACED
41 | RCAR_DU_FEATURE_TVM_SYNC,
42 .channels_mask = BIT(1) | BIT(0),
45 * R8A774[34] has one RGB output and one LVDS output
47 [RCAR_DU_OUTPUT_DPAD0] = {
48 .possible_crtcs = BIT(1) | BIT(0),
51 [RCAR_DU_OUTPUT_LVDS0] = {
52 .possible_crtcs = BIT(0),
60 static const struct rcar_du_device_info rzg1_du_r8a7745_info = {
62 .features = RCAR_DU_FEATURE_CRTC_IRQ
63 | RCAR_DU_FEATURE_CRTC_CLOCK
64 | RCAR_DU_FEATURE_INTERLACED
65 | RCAR_DU_FEATURE_TVM_SYNC,
66 .channels_mask = BIT(1) | BIT(0),
69 * R8A7745 has two RGB outputs
71 [RCAR_DU_OUTPUT_DPAD0] = {
72 .possible_crtcs = BIT(0),
75 [RCAR_DU_OUTPUT_DPAD1] = {
76 .possible_crtcs = BIT(1),
83 static const struct rcar_du_device_info rzg1_du_r8a77470_info = {
85 .features = RCAR_DU_FEATURE_CRTC_IRQ
86 | RCAR_DU_FEATURE_CRTC_CLOCK
87 | RCAR_DU_FEATURE_INTERLACED
88 | RCAR_DU_FEATURE_TVM_SYNC,
89 .channels_mask = BIT(1) | BIT(0),
92 * R8A77470 has two RGB outputs, one LVDS output, and
93 * one (currently unsupported) analog video output
95 [RCAR_DU_OUTPUT_DPAD0] = {
96 .possible_crtcs = BIT(0),
99 [RCAR_DU_OUTPUT_DPAD1] = {
100 .possible_crtcs = BIT(1),
103 [RCAR_DU_OUTPUT_LVDS0] = {
104 .possible_crtcs = BIT(0) | BIT(1),
111 static const struct rcar_du_device_info rcar_du_r8a774a1_info = {
113 .features = RCAR_DU_FEATURE_CRTC_IRQ
114 | RCAR_DU_FEATURE_CRTC_CLOCK
115 | RCAR_DU_FEATURE_VSP1_SOURCE
116 | RCAR_DU_FEATURE_INTERLACED
117 | RCAR_DU_FEATURE_TVM_SYNC,
118 .channels_mask = BIT(2) | BIT(1) | BIT(0),
121 * R8A774A1 has one RGB output, one LVDS output and one HDMI
124 [RCAR_DU_OUTPUT_DPAD0] = {
125 .possible_crtcs = BIT(2),
128 [RCAR_DU_OUTPUT_HDMI0] = {
129 .possible_crtcs = BIT(1),
132 [RCAR_DU_OUTPUT_LVDS0] = {
133 .possible_crtcs = BIT(0),
142 static const struct rcar_du_device_info rcar_du_r8a774b1_info = {
144 .features = RCAR_DU_FEATURE_CRTC_IRQ
145 | RCAR_DU_FEATURE_CRTC_CLOCK
146 | RCAR_DU_FEATURE_VSP1_SOURCE
147 | RCAR_DU_FEATURE_INTERLACED
148 | RCAR_DU_FEATURE_TVM_SYNC,
149 .channels_mask = BIT(3) | BIT(1) | BIT(0),
152 * R8A774B1 has one RGB output, one LVDS output and one HDMI
155 [RCAR_DU_OUTPUT_DPAD0] = {
156 .possible_crtcs = BIT(2),
159 [RCAR_DU_OUTPUT_HDMI0] = {
160 .possible_crtcs = BIT(1),
163 [RCAR_DU_OUTPUT_LVDS0] = {
164 .possible_crtcs = BIT(0),
173 static const struct rcar_du_device_info rcar_du_r8a774c0_info = {
175 .features = RCAR_DU_FEATURE_CRTC_IRQ
176 | RCAR_DU_FEATURE_CRTC_CLOCK
177 | RCAR_DU_FEATURE_VSP1_SOURCE,
178 .channels_mask = BIT(1) | BIT(0),
181 * R8A774C0 has one RGB output and two LVDS outputs
183 [RCAR_DU_OUTPUT_DPAD0] = {
184 .possible_crtcs = BIT(0) | BIT(1),
187 [RCAR_DU_OUTPUT_LVDS0] = {
188 .possible_crtcs = BIT(0),
191 [RCAR_DU_OUTPUT_LVDS1] = {
192 .possible_crtcs = BIT(1),
198 .lvds_clk_mask = BIT(1) | BIT(0),
201 static const struct rcar_du_device_info rcar_du_r8a774e1_info = {
203 .features = RCAR_DU_FEATURE_CRTC_IRQ
204 | RCAR_DU_FEATURE_CRTC_CLOCK
205 | RCAR_DU_FEATURE_VSP1_SOURCE
206 | RCAR_DU_FEATURE_INTERLACED
207 | RCAR_DU_FEATURE_TVM_SYNC,
208 .channels_mask = BIT(3) | BIT(1) | BIT(0),
211 * R8A774E1 has one RGB output, one LVDS output and one HDMI
214 [RCAR_DU_OUTPUT_DPAD0] = {
215 .possible_crtcs = BIT(2),
218 [RCAR_DU_OUTPUT_HDMI0] = {
219 .possible_crtcs = BIT(1),
222 [RCAR_DU_OUTPUT_LVDS0] = {
223 .possible_crtcs = BIT(0),
232 static const struct rcar_du_device_info rcar_du_r8a7779_info = {
234 .features = RCAR_DU_FEATURE_INTERLACED
235 | RCAR_DU_FEATURE_TVM_SYNC,
236 .channels_mask = BIT(1) | BIT(0),
239 * R8A7779 has two RGB outputs and one (currently unsupported)
242 [RCAR_DU_OUTPUT_DPAD0] = {
243 .possible_crtcs = BIT(0),
246 [RCAR_DU_OUTPUT_DPAD1] = {
247 .possible_crtcs = BIT(1) | BIT(0),
253 static const struct rcar_du_device_info rcar_du_r8a7790_info = {
255 .features = RCAR_DU_FEATURE_CRTC_IRQ
256 | RCAR_DU_FEATURE_CRTC_CLOCK
257 | RCAR_DU_FEATURE_INTERLACED
258 | RCAR_DU_FEATURE_TVM_SYNC,
259 .quirks = RCAR_DU_QUIRK_ALIGN_128B,
260 .channels_mask = BIT(2) | BIT(1) | BIT(0),
263 * R8A7742 and R8A7790 each have one RGB output and two LVDS
264 * outputs. Additionally R8A7790 supports one TCON output
265 * (currently unsupported by the driver).
267 [RCAR_DU_OUTPUT_DPAD0] = {
268 .possible_crtcs = BIT(2) | BIT(1) | BIT(0),
271 [RCAR_DU_OUTPUT_LVDS0] = {
272 .possible_crtcs = BIT(0),
275 [RCAR_DU_OUTPUT_LVDS1] = {
276 .possible_crtcs = BIT(2) | BIT(1),
284 /* M2-W (r8a7791) and M2-N (r8a7793) are identical */
285 static const struct rcar_du_device_info rcar_du_r8a7791_info = {
287 .features = RCAR_DU_FEATURE_CRTC_IRQ
288 | RCAR_DU_FEATURE_CRTC_CLOCK
289 | RCAR_DU_FEATURE_INTERLACED
290 | RCAR_DU_FEATURE_TVM_SYNC,
291 .channels_mask = BIT(1) | BIT(0),
294 * R8A779[13] has one RGB output, one LVDS output and one
295 * (currently unsupported) TCON output.
297 [RCAR_DU_OUTPUT_DPAD0] = {
298 .possible_crtcs = BIT(1) | BIT(0),
301 [RCAR_DU_OUTPUT_LVDS0] = {
302 .possible_crtcs = BIT(0),
310 static const struct rcar_du_device_info rcar_du_r8a7792_info = {
312 .features = RCAR_DU_FEATURE_CRTC_IRQ
313 | RCAR_DU_FEATURE_CRTC_CLOCK
314 | RCAR_DU_FEATURE_INTERLACED
315 | RCAR_DU_FEATURE_TVM_SYNC,
316 .channels_mask = BIT(1) | BIT(0),
318 /* R8A7792 has two RGB outputs. */
319 [RCAR_DU_OUTPUT_DPAD0] = {
320 .possible_crtcs = BIT(0),
323 [RCAR_DU_OUTPUT_DPAD1] = {
324 .possible_crtcs = BIT(1),
331 static const struct rcar_du_device_info rcar_du_r8a7794_info = {
333 .features = RCAR_DU_FEATURE_CRTC_IRQ
334 | RCAR_DU_FEATURE_CRTC_CLOCK
335 | RCAR_DU_FEATURE_INTERLACED
336 | RCAR_DU_FEATURE_TVM_SYNC,
337 .channels_mask = BIT(1) | BIT(0),
340 * R8A7794 has two RGB outputs and one (currently unsupported)
343 [RCAR_DU_OUTPUT_DPAD0] = {
344 .possible_crtcs = BIT(0),
347 [RCAR_DU_OUTPUT_DPAD1] = {
348 .possible_crtcs = BIT(1),
355 static const struct rcar_du_device_info rcar_du_r8a7795_info = {
357 .features = RCAR_DU_FEATURE_CRTC_IRQ
358 | RCAR_DU_FEATURE_CRTC_CLOCK
359 | RCAR_DU_FEATURE_VSP1_SOURCE
360 | RCAR_DU_FEATURE_INTERLACED
361 | RCAR_DU_FEATURE_TVM_SYNC,
362 .channels_mask = BIT(3) | BIT(2) | BIT(1) | BIT(0),
365 * R8A7795 has one RGB output, two HDMI outputs and one
368 [RCAR_DU_OUTPUT_DPAD0] = {
369 .possible_crtcs = BIT(3),
372 [RCAR_DU_OUTPUT_HDMI0] = {
373 .possible_crtcs = BIT(1),
376 [RCAR_DU_OUTPUT_HDMI1] = {
377 .possible_crtcs = BIT(2),
380 [RCAR_DU_OUTPUT_LVDS0] = {
381 .possible_crtcs = BIT(0),
387 .dpll_mask = BIT(2) | BIT(1),
390 static const struct rcar_du_device_info rcar_du_r8a7795_es1_info = {
392 .features = RCAR_DU_FEATURE_CRTC_IRQ
393 | RCAR_DU_FEATURE_CRTC_CLOCK
394 | RCAR_DU_FEATURE_VSP1_SOURCE
395 | RCAR_DU_FEATURE_INTERLACED
396 | RCAR_DU_FEATURE_TVM_SYNC,
397 .quirks = RCAR_DU_QUIRK_H3_ES1_PCLK_STABILITY
398 | RCAR_DU_QUIRK_H3_ES1_PLL,
399 .channels_mask = BIT(3) | BIT(2) | BIT(1) | BIT(0),
402 * R8A7795 has one RGB output, two HDMI outputs and one
405 [RCAR_DU_OUTPUT_DPAD0] = {
406 .possible_crtcs = BIT(3),
409 [RCAR_DU_OUTPUT_HDMI0] = {
410 .possible_crtcs = BIT(1),
413 [RCAR_DU_OUTPUT_HDMI1] = {
414 .possible_crtcs = BIT(2),
417 [RCAR_DU_OUTPUT_LVDS0] = {
418 .possible_crtcs = BIT(0),
424 .dpll_mask = BIT(2) | BIT(1),
427 static const struct rcar_du_device_info rcar_du_r8a7796_info = {
429 .features = RCAR_DU_FEATURE_CRTC_IRQ
430 | RCAR_DU_FEATURE_CRTC_CLOCK
431 | RCAR_DU_FEATURE_VSP1_SOURCE
432 | RCAR_DU_FEATURE_INTERLACED
433 | RCAR_DU_FEATURE_TVM_SYNC,
434 .channels_mask = BIT(2) | BIT(1) | BIT(0),
437 * R8A7796 has one RGB output, one LVDS output and one HDMI
440 [RCAR_DU_OUTPUT_DPAD0] = {
441 .possible_crtcs = BIT(2),
444 [RCAR_DU_OUTPUT_HDMI0] = {
445 .possible_crtcs = BIT(1),
448 [RCAR_DU_OUTPUT_LVDS0] = {
449 .possible_crtcs = BIT(0),
458 static const struct rcar_du_device_info rcar_du_r8a77965_info = {
460 .features = RCAR_DU_FEATURE_CRTC_IRQ
461 | RCAR_DU_FEATURE_CRTC_CLOCK
462 | RCAR_DU_FEATURE_VSP1_SOURCE
463 | RCAR_DU_FEATURE_INTERLACED
464 | RCAR_DU_FEATURE_TVM_SYNC,
465 .channels_mask = BIT(3) | BIT(1) | BIT(0),
468 * R8A77965 has one RGB output, one LVDS output and one HDMI
471 [RCAR_DU_OUTPUT_DPAD0] = {
472 .possible_crtcs = BIT(2),
475 [RCAR_DU_OUTPUT_HDMI0] = {
476 .possible_crtcs = BIT(1),
479 [RCAR_DU_OUTPUT_LVDS0] = {
480 .possible_crtcs = BIT(0),
489 static const struct rcar_du_device_info rcar_du_r8a77970_info = {
491 .features = RCAR_DU_FEATURE_CRTC_IRQ
492 | RCAR_DU_FEATURE_CRTC_CLOCK
493 | RCAR_DU_FEATURE_VSP1_SOURCE
494 | RCAR_DU_FEATURE_INTERLACED
495 | RCAR_DU_FEATURE_TVM_SYNC,
496 .channels_mask = BIT(0),
499 * R8A77970 and R8A77980 have one RGB output and one LVDS
502 [RCAR_DU_OUTPUT_DPAD0] = {
503 .possible_crtcs = BIT(0),
506 [RCAR_DU_OUTPUT_LVDS0] = {
507 .possible_crtcs = BIT(0),
515 static const struct rcar_du_device_info rcar_du_r8a7799x_info = {
517 .features = RCAR_DU_FEATURE_CRTC_IRQ
518 | RCAR_DU_FEATURE_CRTC_CLOCK
519 | RCAR_DU_FEATURE_VSP1_SOURCE,
520 .channels_mask = BIT(1) | BIT(0),
523 * R8A77990 and R8A77995 have one RGB output and two LVDS
526 [RCAR_DU_OUTPUT_DPAD0] = {
527 .possible_crtcs = BIT(0) | BIT(1),
530 [RCAR_DU_OUTPUT_LVDS0] = {
531 .possible_crtcs = BIT(0),
534 [RCAR_DU_OUTPUT_LVDS1] = {
535 .possible_crtcs = BIT(1),
541 .lvds_clk_mask = BIT(1) | BIT(0),
544 static const struct rcar_du_device_info rcar_du_r8a779a0_info = {
546 .features = RCAR_DU_FEATURE_CRTC_IRQ
547 | RCAR_DU_FEATURE_VSP1_SOURCE
548 | RCAR_DU_FEATURE_NO_BLENDING,
549 .channels_mask = BIT(1) | BIT(0),
551 /* R8A779A0 has two MIPI DSI outputs. */
552 [RCAR_DU_OUTPUT_DSI0] = {
553 .possible_crtcs = BIT(0),
556 [RCAR_DU_OUTPUT_DSI1] = {
557 .possible_crtcs = BIT(1),
562 .dsi_clk_mask = BIT(1) | BIT(0),
565 static const struct rcar_du_device_info rcar_du_r8a779g0_info = {
567 .features = RCAR_DU_FEATURE_CRTC_IRQ
568 | RCAR_DU_FEATURE_VSP1_SOURCE
569 | RCAR_DU_FEATURE_NO_BLENDING,
570 .channels_mask = BIT(1) | BIT(0),
572 /* R8A779G0 has two MIPI DSI outputs. */
573 [RCAR_DU_OUTPUT_DSI0] = {
574 .possible_crtcs = BIT(0),
577 [RCAR_DU_OUTPUT_DSI1] = {
578 .possible_crtcs = BIT(1),
583 .dsi_clk_mask = BIT(1) | BIT(0),
586 static const struct of_device_id rcar_du_of_table[] = {
587 { .compatible = "renesas,du-r8a7742", .data = &rcar_du_r8a7790_info },
588 { .compatible = "renesas,du-r8a7743", .data = &rzg1_du_r8a7743_info },
589 { .compatible = "renesas,du-r8a7744", .data = &rzg1_du_r8a7743_info },
590 { .compatible = "renesas,du-r8a7745", .data = &rzg1_du_r8a7745_info },
591 { .compatible = "renesas,du-r8a77470", .data = &rzg1_du_r8a77470_info },
592 { .compatible = "renesas,du-r8a774a1", .data = &rcar_du_r8a774a1_info },
593 { .compatible = "renesas,du-r8a774b1", .data = &rcar_du_r8a774b1_info },
594 { .compatible = "renesas,du-r8a774c0", .data = &rcar_du_r8a774c0_info },
595 { .compatible = "renesas,du-r8a774e1", .data = &rcar_du_r8a774e1_info },
596 { .compatible = "renesas,du-r8a7779", .data = &rcar_du_r8a7779_info },
597 { .compatible = "renesas,du-r8a7790", .data = &rcar_du_r8a7790_info },
598 { .compatible = "renesas,du-r8a7791", .data = &rcar_du_r8a7791_info },
599 { .compatible = "renesas,du-r8a7792", .data = &rcar_du_r8a7792_info },
600 { .compatible = "renesas,du-r8a7793", .data = &rcar_du_r8a7791_info },
601 { .compatible = "renesas,du-r8a7794", .data = &rcar_du_r8a7794_info },
602 { .compatible = "renesas,du-r8a7795", .data = &rcar_du_r8a7795_info },
603 { .compatible = "renesas,du-r8a7796", .data = &rcar_du_r8a7796_info },
604 { .compatible = "renesas,du-r8a77961", .data = &rcar_du_r8a7796_info },
605 { .compatible = "renesas,du-r8a77965", .data = &rcar_du_r8a77965_info },
606 { .compatible = "renesas,du-r8a77970", .data = &rcar_du_r8a77970_info },
607 { .compatible = "renesas,du-r8a77980", .data = &rcar_du_r8a77970_info },
608 { .compatible = "renesas,du-r8a77990", .data = &rcar_du_r8a7799x_info },
609 { .compatible = "renesas,du-r8a77995", .data = &rcar_du_r8a7799x_info },
610 { .compatible = "renesas,du-r8a779a0", .data = &rcar_du_r8a779a0_info },
611 { .compatible = "renesas,du-r8a779g0", .data = &rcar_du_r8a779g0_info },
615 MODULE_DEVICE_TABLE(of, rcar_du_of_table);
617 static const struct soc_device_attribute rcar_du_soc_table[] = {
618 { .soc_id = "r8a7795", .revision = "ES1.*", .data = &rcar_du_r8a7795_es1_info },
622 const char *rcar_du_output_name(enum rcar_du_output output)
624 static const char * const names[] = {
625 [RCAR_DU_OUTPUT_DPAD0] = "DPAD0",
626 [RCAR_DU_OUTPUT_DPAD1] = "DPAD1",
627 [RCAR_DU_OUTPUT_DSI0] = "DSI0",
628 [RCAR_DU_OUTPUT_DSI1] = "DSI1",
629 [RCAR_DU_OUTPUT_HDMI0] = "HDMI0",
630 [RCAR_DU_OUTPUT_HDMI1] = "HDMI1",
631 [RCAR_DU_OUTPUT_LVDS0] = "LVDS0",
632 [RCAR_DU_OUTPUT_LVDS1] = "LVDS1",
633 [RCAR_DU_OUTPUT_TCON] = "TCON",
636 if (output >= ARRAY_SIZE(names) || !names[output])
639 return names[output];
642 /* -----------------------------------------------------------------------------
646 DEFINE_DRM_GEM_DMA_FOPS(rcar_du_fops);
648 static const struct drm_driver rcar_du_driver = {
649 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC,
650 .dumb_create = rcar_du_dumb_create,
651 .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
652 .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
653 .gem_prime_import_sg_table = rcar_du_gem_prime_import_sg_table,
654 .gem_prime_mmap = drm_gem_prime_mmap,
655 .fops = &rcar_du_fops,
657 .desc = "Renesas R-Car Display Unit",
663 /* -----------------------------------------------------------------------------
667 static int rcar_du_pm_suspend(struct device *dev)
669 struct rcar_du_device *rcdu = dev_get_drvdata(dev);
671 return drm_mode_config_helper_suspend(&rcdu->ddev);
674 static int rcar_du_pm_resume(struct device *dev)
676 struct rcar_du_device *rcdu = dev_get_drvdata(dev);
678 return drm_mode_config_helper_resume(&rcdu->ddev);
681 static DEFINE_SIMPLE_DEV_PM_OPS(rcar_du_pm_ops,
682 rcar_du_pm_suspend, rcar_du_pm_resume);
684 /* -----------------------------------------------------------------------------
688 static int rcar_du_remove(struct platform_device *pdev)
690 struct rcar_du_device *rcdu = platform_get_drvdata(pdev);
691 struct drm_device *ddev = &rcdu->ddev;
693 drm_dev_unregister(ddev);
694 drm_atomic_helper_shutdown(ddev);
696 drm_kms_helper_poll_fini(ddev);
701 static void rcar_du_shutdown(struct platform_device *pdev)
703 struct rcar_du_device *rcdu = platform_get_drvdata(pdev);
705 drm_atomic_helper_shutdown(&rcdu->ddev);
708 static int rcar_du_probe(struct platform_device *pdev)
710 const struct soc_device_attribute *soc_attr;
711 struct rcar_du_device *rcdu;
715 if (drm_firmware_drivers_only())
718 /* Allocate and initialize the R-Car device structure. */
719 rcdu = devm_drm_dev_alloc(&pdev->dev, &rcar_du_driver,
720 struct rcar_du_device, ddev);
722 return PTR_ERR(rcdu);
724 rcdu->dev = &pdev->dev;
726 rcdu->info = of_device_get_match_data(rcdu->dev);
728 soc_attr = soc_device_match(rcar_du_soc_table);
730 rcdu->info = soc_attr->data;
732 platform_set_drvdata(pdev, rcdu);
735 rcdu->mmio = devm_platform_ioremap_resource(pdev, 0);
736 if (IS_ERR(rcdu->mmio))
737 return PTR_ERR(rcdu->mmio);
740 * Set the DMA coherent mask to reflect the DU 32-bit DMA address space
741 * limitations. When sourcing frames from a VSP the DU doesn't perform
742 * any memory access so set the mask to 40 bits to accept all buffers.
744 mask = rcar_du_has(rcdu, RCAR_DU_FEATURE_VSP1_SOURCE) ? 40 : 32;
745 ret = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(mask));
749 /* DRM/KMS objects */
750 ret = rcar_du_modeset_init(rcdu);
752 if (ret != -EPROBE_DEFER)
754 "failed to initialize DRM/KMS (%d)\n", ret);
759 * Register the DRM device with the core and the connectors with
762 ret = drm_dev_register(&rcdu->ddev, 0);
766 DRM_INFO("Device %s probed\n", dev_name(&pdev->dev));
768 drm_fbdev_generic_setup(&rcdu->ddev, 32);
773 drm_kms_helper_poll_fini(&rcdu->ddev);
777 static struct platform_driver rcar_du_platform_driver = {
778 .probe = rcar_du_probe,
779 .remove = rcar_du_remove,
780 .shutdown = rcar_du_shutdown,
783 .pm = pm_sleep_ptr(&rcar_du_pm_ops),
784 .of_match_table = rcar_du_of_table,
788 module_platform_driver(rcar_du_platform_driver);
790 MODULE_AUTHOR("Laurent Pinchart <laurent.pinchart@ideasonboard.com>");
791 MODULE_DESCRIPTION("Renesas R-Car Display Unit DRM Driver");
792 MODULE_LICENSE("GPL");