From 4e5095ca06a00fda50e2fcc721b1f923478778a8 Mon Sep 17 00:00:00 2001 From: Dmytro Laktyushkin Date: Fri, 7 Jul 2017 11:24:13 -0400 Subject: [PATCH] drm/amd/display: dal1.1 hwseq prog update Signed-off-by: Dmytro Laktyushkin Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- .../drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c index 223bb79bc8b8..4c39bf052d08 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c @@ -64,17 +64,13 @@ static void enable_dppclk( plane_id, dppclk_div); - if (dppclk_div) { - /* 1/2 DISPCLK*/ + if (hws->shifts->DPPCLK_RATE_CONTROL) REG_UPDATE_2(DPP_CONTROL[plane_id], - DPPCLK_RATE_CONTROL, 1, + DPPCLK_RATE_CONTROL, dppclk_div, DPP_CLOCK_ENABLE, 1); - } else { - /* DISPCLK */ - REG_UPDATE_2(DPP_CONTROL[plane_id], - DPPCLK_RATE_CONTROL, 0, + else + REG_UPDATE(DPP_CONTROL[plane_id], DPP_CLOCK_ENABLE, 1); - } } static void enable_power_gating_plane(