Interlaced mode requires different porch calculation in DECON.
Change-Id: I1bfc2554cd3204ebb270ab2e4a396d0f69f5a7f4
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
writel(val, ctx->addr + DECON_VIDTCON2);
if (!ctx->i80_if) {
- val = VIDTCON00_VBPD_F(
- mode->crtc_vtotal - mode->crtc_vsync_end - 1) |
- VIDTCON00_VFPD_F(
- mode->crtc_vsync_start - mode->crtc_vdisplay - 1);
+ int vbp = mode->crtc_vtotal - mode->crtc_vsync_end;
+ int vfp = mode->crtc_vsync_start - mode->crtc_vdisplay;
+
+ if (interlaced)
+ vbp = vbp / 2 - 1;
+ val = VIDTCON00_VBPD_F(vbp - 1) | VIDTCON00_VFPD_F(vfp - 1);
writel(val, ctx->addr + DECON_VIDTCON00);
val = VIDTCON01_VSPW_F(