]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amd/display: Add clock types to applying clk for voltage
authorMikita Lipski <mikita.lipski@amd.com>
Tue, 29 May 2018 20:20:37 +0000 (16:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Jul 2018 21:38:32 +0000 (16:38 -0500)
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c

index f5d626e8bf514d93f581f52fba91186a754e7b61..0ac428299f5f253acdf98d27ffd432d13ef56df1 100644 (file)
@@ -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;
        }