提交 d4e745e3 编写于 作者: Y Yongqiang Sun 提交者: Alex Deucher

drm/amd/display: set correct v_total_min and v_total_max for dce.

Signed-off-by: NYongqiang Sun <yongqiang.sun@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 974db151
......@@ -393,12 +393,12 @@ void dce110_timing_generator_set_drr(
params->vertical_total_min > 0) {
set_reg_field_value(v_total_max,
params->vertical_total_max - 1,
params->vertical_total_max,
CRTC_V_TOTAL_MAX,
CRTC_V_TOTAL_MAX);
set_reg_field_value(v_total_min,
params->vertical_total_min - 1,
params->vertical_total_min,
CRTC_V_TOTAL_MIN,
CRTC_V_TOTAL_MIN);
......
......@@ -540,10 +540,10 @@ void dce120_timing_generator_set_drr(
CRTC_REG_UPDATE(
CRTC0_CRTC_V_TOTAL_MIN,
CRTC_V_TOTAL_MIN, params->vertical_total_min - 1);
CRTC_V_TOTAL_MIN, params->vertical_total_min);
CRTC_REG_UPDATE(
CRTC0_CRTC_V_TOTAL_MAX,
CRTC_V_TOTAL_MAX, params->vertical_total_max - 1);
CRTC_V_TOTAL_MAX, params->vertical_total_max);
CRTC_REG_SET_N(CRTC0_CRTC_V_TOTAL_CONTROL, 6,
FD(CRTC0_CRTC_V_TOTAL_CONTROL__CRTC_V_TOTAL_MIN_SEL), 1,
FD(CRTC0_CRTC_V_TOTAL_CONTROL__CRTC_V_TOTAL_MAX_SEL), 1,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册