aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_vop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index 9a5c571b95fc..2b145ba5dc17 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@ -874,8 +874,8 @@ static int vop_crtc_mode_set(struct drm_crtc *crtc,
874 VOP_CTRL_SET(vop, out_mode, vop->connector_out_mode); 874 VOP_CTRL_SET(vop, out_mode, vop->connector_out_mode);
875 875
876 val = 0x8; 876 val = 0x8;
877 val |= (adjusted_mode->flags & DRM_MODE_FLAG_NHSYNC) ? 1 : 0; 877 val |= (adjusted_mode->flags & DRM_MODE_FLAG_NHSYNC) ? 0 : 1;
878 val |= (adjusted_mode->flags & DRM_MODE_FLAG_NVSYNC) ? (1 << 1) : 0; 878 val |= (adjusted_mode->flags & DRM_MODE_FLAG_NVSYNC) ? 0 : (1 << 1);
879 VOP_CTRL_SET(vop, pin_pol, val); 879 VOP_CTRL_SET(vop, pin_pol, val);
880 880
881 VOP_CTRL_SET(vop, htotal_pw, (htotal << 16) | hsync_len); 881 VOP_CTRL_SET(vop, htotal_pw, (htotal << 16) | hsync_len);