summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorMikita Lipski <mikita.lipski@amd.com>2018-05-29 16:20:37 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-07-05 16:38:32 -0500
commit25684c59aff5147d48cc7ce04d4d75a15c5a3a71 (patch)
tree00fc94dc9dd3fa420cf48f540afae158ff72378f /drivers/gpu/drm
parent9654a28b3ac075f2454d5867d490b0c2f7cde9fd (diff)
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 <mikita.lipski@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c8
1 files changed, 8 insertions, 0 deletions
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;
}