diff options
author | Eric Huang <JinHuiEric.Huang@amd.com> | 2016-05-19 15:41:25 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-07-07 14:50:47 -0400 |
commit | c85e299ff9a14fe43160fd8caada383d622354a1 (patch) | |
tree | aba2cfe011ef41f5bd039191c4bf0c32997e55e0 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 9bf51b07196a8a53a71bea3c60ad0b5c01a446e6 (diff) |
drm/amdgpu: add the new common pm code to select the clock levels
This extends dpm clock level selection to the non-powerplay code paths.
This interface can be used to select individual clock levels.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 611d33d855ff..5252580621bc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -1560,6 +1560,8 @@ struct amdgpu_dpm_funcs { | |||
1560 | u32 (*get_fan_control_mode)(struct amdgpu_device *adev); | 1560 | u32 (*get_fan_control_mode)(struct amdgpu_device *adev); |
1561 | int (*set_fan_speed_percent)(struct amdgpu_device *adev, u32 speed); | 1561 | int (*set_fan_speed_percent)(struct amdgpu_device *adev, u32 speed); |
1562 | int (*get_fan_speed_percent)(struct amdgpu_device *adev, u32 *speed); | 1562 | int (*get_fan_speed_percent)(struct amdgpu_device *adev, u32 *speed); |
1563 | int (*force_clock_level)(struct amdgpu_device *adev, enum pp_clock_type type, uint32_t mask); | ||
1564 | int (*print_clock_levels)(struct amdgpu_device *adev, enum pp_clock_type type, char *buf); | ||
1563 | }; | 1565 | }; |
1564 | 1566 | ||
1565 | struct amdgpu_dpm { | 1567 | struct amdgpu_dpm { |