From: Rex Zhu Date: Wed, 30 Sep 2015 05:28:49 +0000 (+0800) Subject: drm/amd/powerplay: add new function point in hwmgr_func for CG/PG. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1132013ce4c8263e1692841223ff022cf8bf18f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Jammy Zhou Reviewed-by: Alex Deucher --- 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 {