Commit ff587987 authored by Hugo Hu's avatar Hugo Hu Committed by Alex Deucher

drm/amd/display: Patch for extend time to panel poweron.

[WHY]
In eDP spec, the min duration in LCDVDD on-off-on sequence should be
500ms, some BOE panels need 700ms to pass.
[HOW]
Add patch to wait more time when eDP power on.
Signed-off-by: default avatarHugo Hu <hugo.hu@amd.com>
Reviewed-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 39a9f4d8
...@@ -192,6 +192,7 @@ union display_content_support { ...@@ -192,6 +192,7 @@ union display_content_support {
struct dc_panel_patch { struct dc_panel_patch {
unsigned int dppowerup_delay; unsigned int dppowerup_delay;
unsigned int extra_t12_ms;
}; };
struct dc_edid_caps { struct dc_edid_caps {
......
...@@ -871,10 +871,13 @@ void hwss_edp_power_control( ...@@ -871,10 +871,13 @@ void hwss_edp_power_control(
unsigned long long wait_time_ms = 0; unsigned long long wait_time_ms = 0;
/* max 500ms from LCDVDD off to on */ /* max 500ms from LCDVDD off to on */
unsigned long long edp_poweroff_time_ms =
500 + link->local_sink->edid_caps.panel_patch.extra_t12_ms;
if (link->link_trace.time_stamp.edp_poweroff == 0) if (link->link_trace.time_stamp.edp_poweroff == 0)
wait_time_ms = 500; wait_time_ms = edp_poweroff_time_ms;
else if (duration_in_ms < 500) else if (duration_in_ms < edp_poweroff_time_ms)
wait_time_ms = 500 - duration_in_ms; wait_time_ms = edp_poweroff_time_ms - duration_in_ms;
if (wait_time_ms) { if (wait_time_ms) {
msleep(wait_time_ms); msleep(wait_time_ms);
......
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