Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345609
b: refs/heads/master
c: 0703397
h: refs/heads/master
i:
  345607: 361b53b
v: v3
  • Loading branch information
Prathyush K authored and Inki Dae committed Dec 13, 2012
1 parent f5f7bd4 commit 8da45d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8137a2e21a3465d91d86b49cfebcc370438b77bd
refs/heads/master: 0703397039de7e87f780ebbf6283df7d89997075
24 changes: 12 additions & 12 deletions trunk/drivers/gpu/drm/exynos/exynos_drm_fimd.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,12 +308,24 @@ static void fimd_disable_vblank(struct device *dev)
}
}

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_manager_ops fimd_manager_ops = {
.dpms = fimd_dpms,
.apply = fimd_apply,
.commit = fimd_commit,
.enable_vblank = fimd_enable_vblank,
.disable_vblank = fimd_disable_vblank,
.wait_for_vblank = fimd_wait_for_vblank,
};

static void fimd_win_mode_set(struct device *dev,
Expand Down Expand Up @@ -593,22 +605,10 @@ 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 8da45d9

Please sign in to comment.