aboutsummaryrefslogtreecommitdiffstats
path: root/patches/0442-drm-rcar-du-Add-R8A7743-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/0442-drm-rcar-du-Add-R8A7743-support.patch')
-rw-r--r--patches/0442-drm-rcar-du-Add-R8A7743-support.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/patches/0442-drm-rcar-du-Add-R8A7743-support.patch b/patches/0442-drm-rcar-du-Add-R8A7743-support.patch
new file mode 100644
index 00000000000000..edf80627518a8d
--- /dev/null
+++ b/patches/0442-drm-rcar-du-Add-R8A7743-support.patch
@@ -0,0 +1,61 @@
+From 07084ee18d47e03cb5e7fb976cd1be040eccaffb Mon Sep 17 00:00:00 2001
+From: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
+Date: Fri, 13 Oct 2017 16:22:20 +0100
+Subject: [PATCH 0442/1795] drm: rcar-du: Add R8A7743 support
+
+Add support for the R8A7743 DU (which is very similar to the R8A7791 DU);
+it has 1 DPAD (RGB) output and 1 LVDS output.
+
+Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
+Reviewed-by: Biju Das <biju.das@bp.renesas.com>
+Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+(cherry picked from commit 36a46da90212ddeeb78c2f902caaca264d8496a9)
+Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
+Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
+---
+ drivers/gpu/drm/rcar-du/rcar_du_drv.c | 22 ++++++++++++++++++++++
+ 1 file changed, 22 insertions(+)
+
+diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+index d2f29e6b1112..3db5e8df4ce6 100644
+--- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c
++++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+@@ -34,6 +34,27 @@
+ * Device Information
+ */
+
++static const struct rcar_du_device_info rzg1_du_r8a7743_info = {
++ .gen = 2,
++ .features = RCAR_DU_FEATURE_CRTC_IRQ_CLOCK
++ | RCAR_DU_FEATURE_EXT_CTRL_REGS,
++ .num_crtcs = 2,
++ .routes = {
++ /*
++ * R8A7743 has one RGB output and one LVDS output
++ */
++ [RCAR_DU_OUTPUT_DPAD0] = {
++ .possible_crtcs = BIT(1) | BIT(0),
++ .port = 0,
++ },
++ [RCAR_DU_OUTPUT_LVDS0] = {
++ .possible_crtcs = BIT(0),
++ .port = 1,
++ },
++ },
++ .num_lvds = 1,
++};
++
+ static const struct rcar_du_device_info rcar_du_r8a7779_info = {
+ .gen = 2,
+ .features = 0,
+@@ -207,6 +228,7 @@ static const struct rcar_du_device_info rcar_du_r8a7796_info = {
+ };
+
+ static const struct of_device_id rcar_du_of_table[] = {
++ { .compatible = "renesas,du-r8a7743", .data = &rzg1_du_r8a7743_info },
+ { .compatible = "renesas,du-r8a7779", .data = &rcar_du_r8a7779_info },
+ { .compatible = "renesas,du-r8a7790", .data = &rcar_du_r8a7790_info },
+ { .compatible = "renesas,du-r8a7791", .data = &rcar_du_r8a7791_info },
+--
+2.19.0
+