Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331761
b: refs/heads/master
c: 479cbc3
h: refs/heads/master
i:
  331759: 7825fbf
v: v3
  • Loading branch information
Inki Dae committed Oct 4, 2012
1 parent ae67313 commit 61c69db
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b011941f0ffdefb87585d9ed786164037d0d50df
refs/heads/master: 479cbc3eeed060879dc89652e497d7719f7ee1dc
12 changes: 12 additions & 0 deletions trunk/drivers/gpu/drm/exynos/exynos_drm_fimd.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,10 +570,22 @@ static void fimd_win_disable(struct device *dev, int zpos)
win_data->enabled = false;
}

static void fimd_wait_for_vblank(struct device *dev)
{
struct fimd_context *ctx = get_fimd_context(dev);
int ret;

ret = wait_for((__raw_readl(ctx->regs + VIDCON1) &
VIDCON1_VSTATUS_VSYNC), 50);
if (ret < 0)
DRM_DEBUG_KMS("vblank wait timed out.\n");
}

static struct exynos_drm_overlay_ops fimd_overlay_ops = {
.mode_set = fimd_win_mode_set,
.commit = fimd_win_commit,
.disable = fimd_win_disable,
.wait_for_vblank = fimd_wait_for_vblank,
};

static struct exynos_drm_manager fimd_manager = {
Expand Down

0 comments on commit 61c69db

Please sign in to comment.