Skip to content

Commit

Permalink
drm/exynos/decon5433: signal frame done interrupt at front porch
Browse files Browse the repository at this point in the history
DECON in case of video mode generates interrupt by default at start
of vertical back porch. As this interrupt is used to generate VBLANK
events more optimal point is start of vertical front porch.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
  • Loading branch information
Andrzej Hajda authored and daeinki committed Mar 21, 2017
1 parent 7348833 commit f3cce67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/exynos/exynos5433_drm_decon.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static int decon_enable_vblank(struct exynos_drm_crtc *crtc)
if (ctx->out_type & IFTYPE_I80)
val |= VIDINTCON0_FRAMEDONE;
else
val |= VIDINTCON0_INTFRMEN;
val |= VIDINTCON0_INTFRMEN | VIDINTCON0_FRAMESEL_FP;

writel(val, ctx->addr + DECON_VIDINTCON0);
}
Expand Down
4 changes: 4 additions & 0 deletions include/video/exynos5433_decon.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@

/* VIDINTCON0 */
#define VIDINTCON0_FRAMEDONE (1 << 17)
#define VIDINTCON0_FRAMESEL_BP (0 << 15)
#define VIDINTCON0_FRAMESEL_VS (1 << 15)
#define VIDINTCON0_FRAMESEL_AC (2 << 15)
#define VIDINTCON0_FRAMESEL_FP (3 << 15)
#define VIDINTCON0_INTFRMEN (1 << 12)
#define VIDINTCON0_INTEN (1 << 0)

Expand Down

0 comments on commit f3cce67

Please sign in to comment.