|
@@ -273,16 +273,20 @@ static void tve200_display_update(struct drm_simple_display_pipe *pipe,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-int tve200_enable_vblank(struct drm_device *drm, unsigned int crtc)
|
|
|
|
|
|
+static int tve200_display_enable_vblank(struct drm_simple_display_pipe *pipe)
|
|
{
|
|
{
|
|
|
|
+ struct drm_crtc *crtc = &pipe->crtc;
|
|
|
|
+ struct drm_device *drm = crtc->dev;
|
|
struct tve200_drm_dev_private *priv = drm->dev_private;
|
|
struct tve200_drm_dev_private *priv = drm->dev_private;
|
|
|
|
|
|
writel(TVE200_INT_V_STATUS, priv->regs + TVE200_INT_EN);
|
|
writel(TVE200_INT_V_STATUS, priv->regs + TVE200_INT_EN);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-void tve200_disable_vblank(struct drm_device *drm, unsigned int crtc)
|
|
|
|
|
|
+static void tve200_display_disable_vblank(struct drm_simple_display_pipe *pipe)
|
|
{
|
|
{
|
|
|
|
+ struct drm_crtc *crtc = &pipe->crtc;
|
|
|
|
+ struct drm_device *drm = crtc->dev;
|
|
struct tve200_drm_dev_private *priv = drm->dev_private;
|
|
struct tve200_drm_dev_private *priv = drm->dev_private;
|
|
|
|
|
|
writel(0, priv->regs + TVE200_INT_EN);
|
|
writel(0, priv->regs + TVE200_INT_EN);
|
|
@@ -300,6 +304,8 @@ static const struct drm_simple_display_pipe_funcs tve200_display_funcs = {
|
|
.disable = tve200_display_disable,
|
|
.disable = tve200_display_disable,
|
|
.update = tve200_display_update,
|
|
.update = tve200_display_update,
|
|
.prepare_fb = tve200_display_prepare_fb,
|
|
.prepare_fb = tve200_display_prepare_fb,
|
|
|
|
+ .enable_vblank = tve200_display_enable_vblank,
|
|
|
|
+ .disable_vblank = tve200_display_disable_vblank,
|
|
};
|
|
};
|
|
|
|
|
|
int tve200_display_init(struct drm_device *drm)
|
|
int tve200_display_init(struct drm_device *drm)
|