mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
drm/amd/powerplay: add enable_umd_pstate functions for SMU11
add enable_umd_pstate to support sys interface for SMU11. Signed-off-by: Chengming Gui <Jack.Gui@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b3c139d537
commit
49d27e91cf
3 changed files with 51 additions and 0 deletions
|
@ -137,6 +137,7 @@ enum DC_FEATURE_MASK {
|
|||
DC_FBC_MASK = 0x1,
|
||||
};
|
||||
|
||||
enum amd_dpm_forced_level;
|
||||
/**
|
||||
* struct amd_ip_funcs - general hooks for managing amdgpu IP Blocks
|
||||
*/
|
||||
|
@ -186,6 +187,8 @@ struct amd_ip_funcs {
|
|||
enum amd_powergating_state state);
|
||||
/** @get_clockgating_state: get current clockgating status */
|
||||
void (*get_clockgating_state)(void *handle, u32 *flags);
|
||||
/** @enable_umd_pstate: enable UMD powerstate */
|
||||
int (*enable_umd_pstate)(void *handle, enum amd_dpm_forced_level *level);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue