mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-05 14:14:54 +00:00
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>
This commit is contained in:
parent
ea24af3e21
commit
aa66df58b2
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue