drm/amd/display: Allow DP register double buffer
authorEric Bernstein <eric.bernstein@amd.com>
Fri, 25 May 2018 15:57:26 +0000 (11:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jun 2018 17:24:50 +0000 (12:24 -0500)
commit12036586a368b8c949d4e6e57ae3b40c41daf17a
tree9efa99cbfe97f6b9c0848d93693de1f5c979108f
parentce3f6e82249cccbbfd919ad30d256ec62d06b4af
drm/amd/display: Allow DP register double buffer

Remove setting DP_DB_DISABLE to avoid issues when changing
bit depth after vbios take over.
Refactor code to perform single register update for both
pixel encoding and component depth fields.

Signed-off-by: Eric Bernstein <eric.bernstein@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/dc/dce/dce_stream_encoder.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c