drm/amd/display: Check lid state to determine fast boot optimization.
authorYongqiang Sun <yongqiang.sun@amd.com>
Wed, 4 Apr 2018 21:27:18 +0000 (17:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:24 +0000 (13:43 -0500)
commit339cc82ae67700cb25a5bb10842cca5b09a79afe
tree5a0c32f82f62c55a8a5a019edc719df1515a2dfc
parentd0f6f1c0319d39b792a7969bf511d5b1870f1f0e
drm/amd/display: Check lid state to determine fast boot optimization.

For legacy enable boot up with lid closed, eDP information couldn't be
read correctly via SBIOS_SCRATCH_3 results in eDP cannot be light up
properly when open lid.
Check lid state instead can resolve the issue.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Eric Yang <eric.yang2@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_stream.h
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c