Commit aa66df58 authored by Yongqiang Sun's avatar Yongqiang Sun Committed by Alex Deucher

drm/amd/display: Add debug option to disable dmcu

Signed-off-by: default avatarYongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ea24af3e
......@@ -147,6 +147,7 @@ struct dc_debug {
bool disable_dfs_bypass;
bool disable_power_gate;
bool disable_clock_gate;
bool disable_dmcu;
};
struct dc {
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment