drm/amd/pm: add smu power_limit callback for smu_v13_0_7
authorYang Wang <KevinYang.Wang@amd.com>
Wed, 11 May 2022 06:57:49 +0000 (14:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 May 2022 14:02:57 +0000 (10:02 -0400)
commit1e46ab91e55c43445cf36c1e88a92914fa912bfb
tree95b639d823bec3b419ee04d6118dd313d8eeb99e
parentd72a475b4881ccd5ee2cf6856b5b16fd030f11b9
drm/amd/pm: add smu power_limit callback for smu_v13_0_7

- get_power_limit
- set_power_limit

add above callback functions to enable power_cap hwmon node.

Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c