MLK-16347-5: gpu: imx: dpu: TCON adjustment
authorOliver Brown <oliver.brown@nxp.com>
Sat, 9 Sep 2017 00:58:22 +0000 (19:58 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:39:13 +0000 (15:39 -0500)
The DPU TCON register regarding hsync/vsync are incorrectly
initialized. So, adjust vsync start to align with hsync start.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
drivers/gpu/imx/dpu/dpu-tcon.c

index ff3fda0..eb76df3 100644 (file)
@@ -130,11 +130,11 @@ void tcon_cfg_videomode(struct dpu_tcon *tcon, struct drm_display_mode *m)
        dpu_tcon_write(tcon, 0x1, SMXFCTTABLE(0));
 
        /* dsp_control[1]: vsync */
-       dpu_tcon_write(tcon, X(m->hsync_end) | Y(m->vsync_start - 1),
+       dpu_tcon_write(tcon, X(m->hsync_start) | Y(m->vsync_start - 1),
                                                                SPGPOSON(1));
        dpu_tcon_write(tcon, 0x0, SPGMASKON(1));
 
-       dpu_tcon_write(tcon, X(m->hsync_end) | Y(m->vsync_end - 1),
+       dpu_tcon_write(tcon, X(m->hsync_start) | Y(m->vsync_end - 1),
                                                                SPGPOSOFF(1));
        dpu_tcon_write(tcon, 0x0, SPGMASKOFF(1));