OSDN Git Service

drm/amd/display: Properly read LVTMA_PWRSEQ_CNTL
authorJoshua Aberback <joshua.aberback@amd.com>
Thu, 8 Aug 2019 17:22:36 +0000 (13:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Aug 2019 16:45:55 +0000 (11:45 -0500)
commit9a7bfcb6acee07ae891ad28d40a1535aab3134a9
tree9fdb07ece0ca82e9ba1ede67912cf4c3e7a7380e
parent617089d5837a3aa4167a9c4afb34929e0d52805d
drm/amd/display: Properly read LVTMA_PWRSEQ_CNTL

[Why]
The register LVTMA_PWRSEQ_CNTL is used to determine the power state of the
embedded display. Currently we do not actually read this register's values,
so during power down we think that this display is already off, so we skip
calling into VBIOS to actually turn it off.

[How]
 - add relevant fields to shift / mask initialization

Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_hwseq.h