diff options
author | Martin Tsai <[email protected]> | 2018-02-01 20:03:17 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2018-02-19 14:20:01 -0500 |
commit | b686ee20a95be992577ca1f89c97a94b711d7902 (patch) | |
tree | 6962425c44878dffe21dec9fd19b5c2639a21f89 | |
parent | fa4d6d8e515299e70d685e0ea2fbefd96248ebd9 (diff) |
drm/amd/display: add monitor patch for delay after DP receive power up
Signed-off-by: Martin Tsai <[email protected]>
Reviewed-by: Charlene Liu <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_link.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_types.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index 02e1c3b188fd..9ede0f884f15 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -1260,6 +1260,12 @@ static enum dc_status enable_link_dp( pipe_ctx->clock_source->id, &link_settings); + if (stream->sink->edid_caps.panel_patch.dppowerup_delay > 0) { + int delay_dp_power_up_in_ms = stream->sink->edid_caps.panel_patch.dppowerup_delay; + + msleep(delay_dp_power_up_in_ms); + } + panel_mode = dp_get_panel_mode(link); dpcd_configure_panel_mode(link, panel_mode); diff --git a/drivers/gpu/drm/amd/display/dc/dc_types.h b/drivers/gpu/drm/amd/display/dc/dc_types.h index fbbe92f7a33a..aa5b90e6beb7 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_types.h +++ b/drivers/gpu/drm/amd/display/dc/dc_types.h @@ -195,6 +195,7 @@ union display_content_support { struct dc_panel_patch { unsigned int disconnect_delay; + unsigned int dppowerup_delay; }; struct dc_edid_caps { |