summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h
diff options
context:
space:
mode:
authorEric Yang <Eric.Yang2@amd.com>2019-04-03 22:40:05 +0300
committerAlex Deucher <alexander.deucher@amd.com>2019-05-24 20:20:49 +0300
commit21e471f0850de874b2afa54f19ef7886490b99fe (patch)
treeeb501656f2659e903ae7f9add2a879320355ca76 /drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h
parent4cd75ff096f4ef49c343093b52a952f27aba7796 (diff)
downloadlinux-21e471f0850de874b2afa54f19ef7886490b99fe.tar.xz
drm/amd/display: Set dispclk and dprefclock directly
[Why] To simply logic for setting DCN specific clocks, we will send SMU message directly through the VBIOS message box. [How] Add new structure in pp_smu to hold functions to set clocks through vbios message box Signed-off-by: Eric Yang <Eric.Yang2@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h b/drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h
index 31bd6d5183ab..f3fd3f8cac26 100644
--- a/drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h
+++ b/drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h
@@ -31,7 +31,7 @@
struct clk_mgr {
struct dc_context *ctx;
- const struct clk_mgr_funcs *funcs;
+ struct clk_mgr_funcs *funcs;
struct dc_clocks clks;
};
@@ -44,6 +44,12 @@ struct clk_mgr_funcs {
int (*get_dp_ref_clk_frequency)(struct clk_mgr *clk_mgr);
void (*init_clocks)(struct clk_mgr *clk_mgr);
+
+ /* Returns actual clk that's set */
+ int (*set_dispclk)(struct clk_mgr *clk_mgr, int requested_dispclk_khz);
+ int (*set_dprefclk)(struct clk_mgr *clk_mgr);
};
+
+
#endif /* __DAL_CLK_MGR_H__ */