Skip to content

Commit

Permalink
drm/omap: fix WBDELAYCOUNT for HDMI
Browse files Browse the repository at this point in the history
For HDMI, WBDELAYCOUNT starts counting at the start of vsync, not at the
start of vfp.

This patch adjusts the wbdelay for HDMI accordingly.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Tomi Valkeinen committed Mar 1, 2018
1 parent 9f7853a commit 46a9304
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/gpu/drm/omapdrm/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2816,8 +2816,12 @@ int dispc_wb_setup(struct dispc_device *dispc,
} else {
int wbdelay;

wbdelay = min(vm->vfront_porch +
vm->vsync_len + vm->vback_porch, (u32)255);
if (channel_in == DSS_WB_TV_MGR)
wbdelay = min(vm->vsync_len + vm->vback_porch,
(u32)255);
else
wbdelay = min(vm->vfront_porch +
vm->vsync_len + vm->vback_porch, (u32)255);

/* WBDELAYCOUNT */
REG_FLD_MOD(dispc, DISPC_OVL_ATTRIBUTES2(plane), wbdelay, 7, 0);
Expand Down

0 comments on commit 46a9304

Please sign in to comment.