diff options
| author | Rex Zhu <Rex.Zhu@amd.com> | 2015-09-30 08:28:49 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2015-12-22 00:42:22 +0300 |
| commit | b1132013ce4c8263e1692841223ff022cf8bf18f (patch) | |
| tree | a0b44a8e55190e41bc478b8a0032b8ba815eccb6 | |
| parent | 3cec76f973af12c48edce1416193378532cc1bf3 (diff) | |
| download | linux-b1132013ce4c8263e1692841223ff022cf8bf18f.tar.xz | |
drm/amd/powerplay: add new function point in hwmgr_func for CG/PG.
Add callbacks interface for clock and powergating.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h index 2370a72a99cd..f90a8b61e8af 100644 --- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h @@ -288,6 +288,9 @@ struct pp_hwmgr_func { int (*enable_clock_power_gating)(struct pp_hwmgr *hwmgr); int (*notify_smc_display_config_after_ps_adjustment)(struct pp_hwmgr *hwmgr); int (*display_config_changed)(struct pp_hwmgr *hwmgr); + int (*disable_clock_power_gating)(struct pp_hwmgr *hwmgr); + int (*update_clock_gatings)(struct pp_hwmgr *hwmgr, + const uint32_t *msg_id); }; struct pp_table_func { |
