From: Wyatt Wood Date: Mon, 30 Mar 2020 13:11:09 +0000 (-0400) Subject: drm/amd/display: Add user backlight level reg write X-Git-Tag: v5.10.7~2352^2~20^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c0de7de4cd568d16032d67a768271fb4977f94f;p=platform%2Fkernel%2Flinux-rpi.git drm/amd/display: Add user backlight level reg write [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 Reviewed-by: Anthony Koo Acked-by: Rodrigo Siqueira Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c b/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c index 06435ec..59b2f0b 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c @@ -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;