mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 18:30:06 +00:00
drm/amd/display: add diags clock programming
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f553e68102
commit
15cf3974eb
4 changed files with 21 additions and 13 deletions
|
@ -505,3 +505,8 @@ enum dc_edid_status dm_helpers_read_local_edid(
|
|||
|
||||
return edid_status;
|
||||
}
|
||||
|
||||
void dm_set_dcn_clocks(struct dc_context *ctx, struct dc_clocks *clks)
|
||||
{
|
||||
/* TODO: something */
|
||||
}
|
||||
|
|
|
@ -184,6 +184,17 @@ enum wm_report_mode {
|
|||
WM_REPORT_OVERRIDE = 1,
|
||||
};
|
||||
|
||||
struct dc_clocks {
|
||||
int dispclk_khz;
|
||||
int max_dppclk_khz;
|
||||
int dcfclk_khz;
|
||||
int socclk_khz;
|
||||
int dcfclk_deep_sleep_khz;
|
||||
int fclk_khz;
|
||||
int dram_ccm_us;
|
||||
int min_active_dram_ccm_us;
|
||||
};
|
||||
|
||||
struct dc_debug {
|
||||
bool surface_visual_confirm;
|
||||
bool sanity_checks;
|
||||
|
|
|
@ -108,5 +108,8 @@ enum dc_edid_status dm_helpers_read_local_edid(
|
|||
struct dc_link *link,
|
||||
struct dc_sink *sink);
|
||||
|
||||
void dm_set_dcn_clocks(
|
||||
struct dc_context *ctx,
|
||||
struct dc_clocks *clks);
|
||||
|
||||
#endif /* __DM_HELPERS__ */
|
||||
|
|
|
@ -256,20 +256,9 @@ struct dce_bw_output {
|
|||
int blackout_recovery_time_us;
|
||||
};
|
||||
|
||||
struct dcn_bw_clocks {
|
||||
int dispclk_khz;
|
||||
int max_dppclk_khz;
|
||||
int dcfclk_khz;
|
||||
int socclk_khz;
|
||||
int dcfclk_deep_sleep_khz;
|
||||
int fclk_khz;
|
||||
int dram_ccm_us;
|
||||
int min_active_dram_ccm_us;
|
||||
};
|
||||
|
||||
struct dcn_bw_output {
|
||||
struct dcn_bw_clocks cur_clk;
|
||||
struct dcn_bw_clocks calc_clk;
|
||||
struct dc_clocks cur_clk;
|
||||
struct dc_clocks calc_clk;
|
||||
struct dcn_watermark_set watermarks;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue