drm/amd/display: add delay between panel pwr off to on.
authorCharlene Liu <charlene.liu@amd.com>
Tue, 20 Mar 2018 18:53:04 +0000 (14:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Apr 2018 18:08:06 +0000 (13:08 -0500)
commit78d5d04d118d55b6c51ca787d5debb9ad1b8a391
treec11c2f9205467d89897bab5a64d722b47dc3b38a
parent4c61af8afe855fcf65a09d47c8e330bb1fd1fb4a
drm/amd/display: add delay between panel pwr off to on.

As per eDP 1.4 spec, there must be at least 500ms delay
between eDP power off and on.
This change added time stamp when edp power off, which can
be used to calculate duration time when edp power on.
If duration less than 500ms, add a wait.

Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c
drivers/gpu/drm/amd/display/dc/dc_link.h
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dm_services.h