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

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

parent ea24af3e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -147,6 +147,7 @@ struct dc_debug {
	bool disable_dfs_bypass;
	bool disable_power_gate;
	bool disable_clock_gate;
	bool disable_dmcu;
};

struct dc {
+3 −0
Original line number Diff line number Diff line
@@ -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