OSDN Git Service

drm/amd/display: Add user backlight level reg write
authorWyatt Wood <wyatt.wood@amd.com>
Mon, 30 Mar 2020 13:11:09 +0000 (09:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:47 +0000 (18:11 -0400)
[Why]
Porting abm from dmcu to dmcub missed one register write.

[How]
Add this register write in the SetBacklightLevel sequence.

Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c

index 06435ec..59b2f0b 100644 (file)
@@ -136,6 +136,8 @@ static void dmcub_set_backlight_level(
 
        dmub_abm_set_pipe(&dce_abm->base, otg_inst);
 
+       REG_UPDATE(BL1_PWM_USER_LEVEL, BL1_PWM_USER_LEVEL, backlight_pwm_u16_16);
+
        if (otg_inst == 0)
                frame_ramp = 0;