]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: Patch for extend time to panel poweron.
authorHugo Hu <hugo.hu@amd.com>
Fri, 15 Jun 2018 19:49:55 +0000 (15:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:49:29 +0000 (14:49 -0500)
[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: Hugo Hu <hugo.hu@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_types.h
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c

index 03bf9eee9a045ac866702f536363f73b103edae9..8c6eb78b0c3bd8df91dce93bdb899cfad8d97ba5 100644 (file)
@@ -192,6 +192,7 @@ union display_content_support {
 
 struct dc_panel_patch {
        unsigned int dppowerup_delay;
+       unsigned int extra_t12_ms;
 };
 
 struct dc_edid_caps {
index 5b41cbe06f597c548636c552f118c12b1b7c062c..7227cfddb35214e1348a5bf20cc1edea5cdb04a5 100644 (file)
@@ -871,10 +871,13 @@ void hwss_edp_power_control(
                        unsigned long long wait_time_ms = 0;
 
                        /* 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)
-                               wait_time_ms = 500;
-                       else if (duration_in_ms < 500)
-                               wait_time_ms = 500 - duration_in_ms;
+                               wait_time_ms = edp_poweroff_time_ms;
+                       else if (duration_in_ms < edp_poweroff_time_ms)
+                               wait_time_ms = edp_poweroff_time_ms - duration_in_ms;
 
                        if (wait_time_ms) {
                                msleep(wait_time_ms);