drm: rcar-du: Fix DIDSR field name
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Wed, 22 Sep 2021 23:47:24 +0000 (00:47 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 7 Oct 2021 02:59:50 +0000 (05:59 +0300)
The DIDSR fields named LDCS were incorrectly defined as LCDS.
Both the Gen2 and Gen3 documentation refer to the fields as the "LVDS
Dot Clock Select".

Correct the definitions.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_group.c
drivers/gpu/drm/rcar-du/rcar_du_regs.h

index 88a783ceb3e9d5d0cf826782d062663fcda05e9a..a984eef265d279bb5a960125ef78d5084566ed2f 100644 (file)
@@ -122,10 +122,10 @@ static void rcar_du_group_setup_didsr(struct rcar_du_group *rgrp)
        didsr = DIDSR_CODE;
        for (i = 0; i < num_crtcs; ++i, ++rcrtc) {
                if (rcdu->info->lvds_clk_mask & BIT(rcrtc->index))
-                       didsr |= DIDSR_LCDS_LVDS0(i)
+                       didsr |= DIDSR_LDCS_LVDS0(i)
                              |  DIDSR_PDCS_CLK(i, 0);
                else
-                       didsr |= DIDSR_LCDS_DCLKIN(i)
+                       didsr |= DIDSR_LDCS_DCLKIN(i)
                              |  DIDSR_PDCS_CLK(i, 0);
        }
 
index fb9964949368889b18e005eea87597e5ad680134..fb7c467aa484756cb5b2df07c3f8e510e5ab652a 100644 (file)
 
 #define DIDSR                  0x20028
 #define DIDSR_CODE             (0x7790 << 16)
-#define DIDSR_LCDS_DCLKIN(n)   (0 << (8 + (n) * 2))
-#define DIDSR_LCDS_LVDS0(n)    (2 << (8 + (n) * 2))
-#define DIDSR_LCDS_LVDS1(n)    (3 << (8 + (n) * 2))
-#define DIDSR_LCDS_MASK(n)     (3 << (8 + (n) * 2))
+#define DIDSR_LDCS_DCLKIN(n)   (0 << (8 + (n) * 2))
+#define DIDSR_LDCS_LVDS0(n)    (2 << (8 + (n) * 2))
+#define DIDSR_LDCS_LVDS1(n)    (3 << (8 + (n) * 2))
+#define DIDSR_LDCS_MASK(n)     (3 << (8 + (n) * 2))
 #define DIDSR_PDCS_CLK(n, clk) (clk << ((n) * 2))
 #define DIDSR_PDCS_MASK(n)     (3 << ((n) * 2))