Commit b3859b16 authored by Evgenii Krasnikov's avatar Evgenii Krasnikov Committed by Alex Deucher

drm/amd/display: add an option to skip wait for HPD when powering on eDP panel

[HOW/WHY]
Add an option to skip edp_wait_for_hpd_ready when necessary
Reviewed-by: default avatarJayendran Ramani <Jayendran.Ramani@amd.com>
Acked-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarEvgenii Krasnikov <Evgenii.Krasnikov@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fff7eb56
...@@ -6971,13 +6971,14 @@ bool is_dp_128b_132b_signal(struct pipe_ctx *pipe_ctx) ...@@ -6971,13 +6971,14 @@ bool is_dp_128b_132b_signal(struct pipe_ctx *pipe_ctx)
dc_is_dp_signal(pipe_ctx->stream->signal)); dc_is_dp_signal(pipe_ctx->stream->signal));
} }
void edp_panel_backlight_power_on(struct dc_link *link) void edp_panel_backlight_power_on(struct dc_link *link, bool wait_for_hpd)
{ {
if (link->connector_signal != SIGNAL_TYPE_EDP) if (link->connector_signal != SIGNAL_TYPE_EDP)
return; return;
link->dc->hwss.edp_power_control(link, true); link->dc->hwss.edp_power_control(link, true);
link->dc->hwss.edp_wait_for_hpd_ready(link, true); if (wait_for_hpd)
link->dc->hwss.edp_wait_for_hpd_ready(link, true);
if (link->dc->hwss.edp_backlight_control) if (link->dc->hwss.edp_backlight_control)
link->dc->hwss.edp_backlight_control(link, true); link->dc->hwss.edp_backlight_control(link, true);
} }
......
...@@ -193,6 +193,7 @@ enum dc_status dpcd_configure_lttpr_mode( ...@@ -193,6 +193,7 @@ enum dc_status dpcd_configure_lttpr_mode(
struct link_training_settings *lt_settings); struct link_training_settings *lt_settings);
enum dp_link_encoding dp_get_link_encoding_format(const struct dc_link_settings *link_settings); enum dp_link_encoding dp_get_link_encoding_format(const struct dc_link_settings *link_settings);
bool dp_retrieve_lttpr_cap(struct dc_link *link);
bool dpcd_write_128b_132b_sst_payload_allocation_table( bool dpcd_write_128b_132b_sst_payload_allocation_table(
const struct dc_stream_state *stream, const struct dc_stream_state *stream,
struct dc_link *link, struct dc_link *link,
...@@ -214,11 +215,10 @@ void enable_dp_hpo_output(struct dc_link *link, ...@@ -214,11 +215,10 @@ void enable_dp_hpo_output(struct dc_link *link,
void disable_dp_hpo_output(struct dc_link *link, void disable_dp_hpo_output(struct dc_link *link,
const struct link_resource *link_res, const struct link_resource *link_res,
enum signal_type signal); enum signal_type signal);
void setup_dp_hpo_stream(struct pipe_ctx *pipe_ctx, bool enable); void setup_dp_hpo_stream(struct pipe_ctx *pipe_ctx, bool enable);
bool is_dp_128b_132b_signal(struct pipe_ctx *pipe_ctx); bool is_dp_128b_132b_signal(struct pipe_ctx *pipe_ctx);
void edp_panel_backlight_power_on(struct dc_link *link, bool wait_for_hpd);
bool dp_retrieve_lttpr_cap(struct dc_link *link);
void edp_panel_backlight_power_on(struct dc_link *link);
void dp_receiver_power_ctrl(struct dc_link *link, bool on); void dp_receiver_power_ctrl(struct dc_link *link, bool on);
void dp_source_sequence_trace(struct dc_link *link, uint8_t dp_test_mode); void dp_source_sequence_trace(struct dc_link *link, uint8_t dp_test_mode);
void dp_enable_link_phy( void dp_enable_link_phy(
......
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