2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 12:43:55 +08:00

drm/amd/display: navi10 bring up skip dsc encoder config

not needed for bring up.

Signed-off-by: hersen wu <hersenxs.wu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
hersen wu 2019-03-13 16:25:37 -04:00 committed by Alex Deucher
parent 9e14d4f17e
commit ec8763486d

View File

@ -286,6 +286,14 @@ static void enc2_dp_set_dsc_config(struct stream_encoder *enc,
uint8_t *dsc_packed_pps) uint8_t *dsc_packed_pps)
{ {
struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc);
uint32_t dsc_value = 0;
dsc_value = REG_READ(DP_DSC_CNTL);
/* dsc disable skip */
if ((dsc_value & 0x3) == 0x0)
return;
REG_UPDATE_2(DP_DSC_CNTL, REG_UPDATE_2(DP_DSC_CNTL,
DP_DSC_MODE, dsc_mode, DP_DSC_MODE, dsc_mode,