Commit bbb6e5ae authored by Alvin Lee's avatar Alvin Lee Committed by Alex Deucher

drm/amd/display: Make OPTC3 function accessible to other DCN

[Why]
Newer DCN should use optc3

[How]
Declare optc3 vmin/vmax function in header.
Signed-off-by: default avatarAlvin Lee <Alvin.Lee2@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7e053bab
...@@ -440,6 +440,7 @@ struct dc_clocks { ...@@ -440,6 +440,7 @@ struct dc_clocks {
bool prev_p_state_change_support; bool prev_p_state_change_support;
bool fclk_prev_p_state_change_support; bool fclk_prev_p_state_change_support;
int num_ways; int num_ways;
bool fw_based_mclk_switching;
int prev_num_ways; int prev_num_ways;
enum dtm_pstate dtm_level; enum dtm_pstate dtm_level;
int max_supported_dppclk_khz; int max_supported_dppclk_khz;
......
...@@ -293,6 +293,11 @@ static void optc3_set_timing_double_buffer(struct timing_generator *optc, bool e ...@@ -293,6 +293,11 @@ static void optc3_set_timing_double_buffer(struct timing_generator *optc, bool e
OTG_DRR_TIMING_DBUF_UPDATE_MODE, mode); OTG_DRR_TIMING_DBUF_UPDATE_MODE, mode);
} }
void optc3_set_vtotal_min_max(struct timing_generator *optc, int vtotal_min, int vtotal_max)
{
optc1_set_vtotal_min_max(optc, vtotal_min, vtotal_max);
}
void optc3_tg_init(struct timing_generator *optc) void optc3_tg_init(struct timing_generator *optc)
{ {
optc3_set_timing_double_buffer(optc, true); optc3_set_timing_double_buffer(optc, true);
......
...@@ -58,7 +58,7 @@ static const struct hw_sequencer_funcs dcn32_funcs = { ...@@ -58,7 +58,7 @@ static const struct hw_sequencer_funcs dcn32_funcs = {
.pipe_control_lock = dcn20_pipe_control_lock, .pipe_control_lock = dcn20_pipe_control_lock,
.interdependent_update_lock = dcn10_lock_all_pipes, .interdependent_update_lock = dcn10_lock_all_pipes,
.cursor_lock = dcn10_cursor_lock, .cursor_lock = dcn10_cursor_lock,
.prepare_bandwidth = dcn20_prepare_bandwidth, .prepare_bandwidth = dcn30_prepare_bandwidth,
.optimize_bandwidth = dcn20_optimize_bandwidth, .optimize_bandwidth = dcn20_optimize_bandwidth,
.update_bandwidth = dcn20_update_bandwidth, .update_bandwidth = dcn20_update_bandwidth,
.set_drr = dcn10_set_drr, .set_drr = dcn10_set_drr,
......
...@@ -223,7 +223,7 @@ static struct timing_generator_funcs dcn32_tg_funcs = { ...@@ -223,7 +223,7 @@ static struct timing_generator_funcs dcn32_tg_funcs = {
.set_vrr_m_const = optc3_set_vrr_m_const, .set_vrr_m_const = optc3_set_vrr_m_const,
.set_drr = optc1_set_drr, .set_drr = optc1_set_drr,
.get_last_used_drr_vtotal = optc2_get_last_used_drr_vtotal, .get_last_used_drr_vtotal = optc2_get_last_used_drr_vtotal,
.set_vtotal_min_max = optc1_set_vtotal_min_max, .set_vtotal_min_max = optc3_set_vtotal_min_max,
.set_static_screen_control = optc1_set_static_screen_control, .set_static_screen_control = optc1_set_static_screen_control,
.program_stereo = optc1_program_stereo, .program_stereo = optc1_program_stereo,
.is_stereo_left_eye = optc1_is_stereo_left_eye, .is_stereo_left_eye = optc1_is_stereo_left_eye,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment