Commit db819940 authored by Dmytro Laktyushkin's avatar Dmytro Laktyushkin Committed by Alex Deucher

drm/amd/display: move signal type out of otg dlg params

It makes no logical sense being there
Signed-off-by: default avatarDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: default avatarEric Bernstein <Eric.Bernstein@amd.com>
Acked-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 052fa7e8
...@@ -663,7 +663,7 @@ static enum dc_status dcn10_enable_stream_timing( ...@@ -663,7 +663,7 @@ static enum dc_status dcn10_enable_stream_timing(
pipe_ctx->stream_res.tg->dlg_otg_param.vupdate_offset = pipe_ctx->pipe_dlg_param.vupdate_offset; pipe_ctx->stream_res.tg->dlg_otg_param.vupdate_offset = pipe_ctx->pipe_dlg_param.vupdate_offset;
pipe_ctx->stream_res.tg->dlg_otg_param.vupdate_width = pipe_ctx->pipe_dlg_param.vupdate_width; pipe_ctx->stream_res.tg->dlg_otg_param.vupdate_width = pipe_ctx->pipe_dlg_param.vupdate_width;
pipe_ctx->stream_res.tg->dlg_otg_param.signal = pipe_ctx->stream->signal; pipe_ctx->stream_res.tg->signal = pipe_ctx->stream->signal;
pipe_ctx->stream_res.tg->funcs->program_timing( pipe_ctx->stream_res.tg->funcs->program_timing(
pipe_ctx->stream_res.tg, pipe_ctx->stream_res.tg,
...@@ -2283,7 +2283,6 @@ static void program_all_pipe_in_tree( ...@@ -2283,7 +2283,6 @@ static void program_all_pipe_in_tree(
pipe_ctx->stream_res.tg->dlg_otg_param.vstartup_start = pipe_ctx->pipe_dlg_param.vstartup_start; pipe_ctx->stream_res.tg->dlg_otg_param.vstartup_start = pipe_ctx->pipe_dlg_param.vstartup_start;
pipe_ctx->stream_res.tg->dlg_otg_param.vupdate_offset = pipe_ctx->pipe_dlg_param.vupdate_offset; pipe_ctx->stream_res.tg->dlg_otg_param.vupdate_offset = pipe_ctx->pipe_dlg_param.vupdate_offset;
pipe_ctx->stream_res.tg->dlg_otg_param.vupdate_width = pipe_ctx->pipe_dlg_param.vupdate_width; pipe_ctx->stream_res.tg->dlg_otg_param.vupdate_width = pipe_ctx->pipe_dlg_param.vupdate_width;
pipe_ctx->stream_res.tg->dlg_otg_param.signal = pipe_ctx->stream->signal;
pipe_ctx->stream_res.tg->funcs->program_global_sync( pipe_ctx->stream_res.tg->funcs->program_global_sync(
pipe_ctx->stream_res.tg); pipe_ctx->stream_res.tg);
......
...@@ -243,9 +243,9 @@ void optc1_program_timing( ...@@ -243,9 +243,9 @@ void optc1_program_timing(
OTG_V_SYNC_A_POL, v_sync_polarity); OTG_V_SYNC_A_POL, v_sync_polarity);
v_init = asic_blank_start; v_init = asic_blank_start;
if (optc->dlg_otg_param.signal == SIGNAL_TYPE_DISPLAY_PORT || if (optc->signal == SIGNAL_TYPE_DISPLAY_PORT ||
optc->dlg_otg_param.signal == SIGNAL_TYPE_DISPLAY_PORT_MST || optc->signal == SIGNAL_TYPE_DISPLAY_PORT_MST ||
optc->dlg_otg_param.signal == SIGNAL_TYPE_EDP) { optc->signal == SIGNAL_TYPE_EDP) {
start_point = 1; start_point = 1;
if (patched_crtc_timing.flags.INTERLACE == 1) if (patched_crtc_timing.flags.INTERLACE == 1)
field_num = 1; field_num = 1;
......
...@@ -75,7 +75,6 @@ struct _dlg_otg_param { ...@@ -75,7 +75,6 @@ struct _dlg_otg_param {
int vupdate_offset; int vupdate_offset;
int vupdate_width; int vupdate_width;
int vready_offset; int vready_offset;
enum signal_type signal;
}; };
struct vupdate_keepout_params { struct vupdate_keepout_params {
...@@ -127,6 +126,7 @@ struct timing_generator { ...@@ -127,6 +126,7 @@ struct timing_generator {
struct dc_bios *bp; struct dc_bios *bp;
struct dc_context *ctx; struct dc_context *ctx;
struct _dlg_otg_param dlg_otg_param; struct _dlg_otg_param dlg_otg_param;
enum signal_type signal;
int inst; int inst;
}; };
......
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