diff options
author | Yongqiang Sun <yongqiang.sun@amd.com> | 2016-12-15 10:50:48 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 17:05:26 -0400 |
commit | aa66df58b2f272dad459c9f02fa3718d844b9fc6 (patch) | |
tree | ce431119dbd868aa21a6be2690a7cdb02f258819 /drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | |
parent | ea24af3e21192a719603ed02ec42e549e3c4a66a (diff) |
drm/amd/display: Add debug option to disable dmcu
Signed-off-by: Yongqiang Sun <yongqiang.sun@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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c index c73d6054cdda..a8a2290d47db 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c @@ -1821,6 +1821,9 @@ void dce110_link_encoder_init_dmcu_backlight_settings( uint32_t s2; uint32_t value; + if (enc->ctx->dc->debug.disable_dmcu) + return; + bl_pwm_cntl = REG_READ(BL_PWM_CNTL); /* It must not be 0, so we have to restore them |