summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/inc
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2020-07-10 10:46:48 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-07-15 12:42:14 -0400
commitc1a9e61c582e42ef4820f77b43a11cbb6e673b2c (patch)
tree87abe8015aef308c063323820883224649bbdf12 /drivers/gpu/drm/amd/powerplay/inc
parent4387b10434fe9acde582b886d16a72ec1843c0e9 (diff)
downloadlinux-c1a9e61c582e42ef4820f77b43a11cbb6e673b2c.tar.bz2
drm/amd/powerplay: implement a common set dpm table API for smu V11
Maximum the code sharing around smu V11. Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/inc')
-rw-r--r--drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h b/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h
index c6832be8356f..b550cc837fe1 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h
@@ -287,6 +287,10 @@ int smu_v11_0_get_dpm_level_count(struct smu_context *smu,
enum smu_clk_type clk_type,
uint32_t *value);
+int smu_v11_0_set_single_dpm_table(struct smu_context *smu,
+ enum smu_clk_type clk_type,
+ struct smu_11_0_dpm_table *single_dpm_table);
+
int smu_v11_0_get_dpm_level_range(struct smu_context *smu,
enum smu_clk_type clk_type,
uint32_t *min_value,