From 25684c59aff5147d48cc7ce04d4d75a15c5a3a71 Mon Sep 17 00:00:00 2001 From: Mikita Lipski Date: Tue, 29 May 2018 16:20:37 -0400 Subject: [PATCH] drm/amd/display: Add clock types to applying clk for voltage Add DCF and FCLK clock case statements for changing raven's clocks for voltage request. Also maintain DCEF clock for DCE120 calls. Signed-off-by: Mikita Lipski Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c index f5d626e8bf51..0ac428299f5f 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c @@ -433,10 +433,18 @@ bool dm_pp_apply_clock_for_voltage_request( pp_clock_request.clock_type = amd_pp_dcef_clock; break; + case DM_PP_CLOCK_TYPE_DCFCLK: + pp_clock_request.clock_type = amd_pp_dcf_clock; + break; + case DM_PP_CLOCK_TYPE_PIXELCLK: pp_clock_request.clock_type = amd_pp_pixel_clock; break; + case DM_PP_CLOCK_TYPE_FCLK: + pp_clock_request.clock_type = amd_pp_f_clock; + break; + default: return false; } -- 2.30.2