drm/rockchip: vop: fliter interlace mode
authorMark Yao <mark.yao@rock-chips.com>
Fri, 7 Jul 2017 08:23:50 +0000 (16:23 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Tue, 11 Jul 2017 02:50:17 +0000 (10:50 +0800)
rk3288 and rk3368 are not support interlace mode

Change-Id: I5b6c155095285a5ae6e574efba122b56ddb1a112
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_vop.c

index 89d09be7d0cdc26b8981b6a2d702a3f6cbc3ad21..4ef23ac55eb114201740d4ba65a56320b4234c47 100644 (file)
@@ -1592,6 +1592,11 @@ vop_crtc_mode_valid(struct drm_crtc *crtc, const struct drm_display_mode *mode,
        if (mode->hdisplay > vop_data->max_output.width)
                return MODE_BAD_HVALUE;
 
+       if ((mode->flags & DRM_MODE_FLAG_INTERLACE) &&
+           VOP_MAJOR(vop->data->version) == 3 &&
+           VOP_MINOR(vop->data->version) <= 2)
+               return MODE_BAD;
+
        if (mode->flags & DRM_MODE_FLAG_DBLCLK)
                request_clock *= 2;
        clock = clk_round_rate(vop->dclk, request_clock * 1000) / 1000;