bdk: display: use a scratch reg for backlight

Spare registers normally have hidden hw config usage, so avoid them just in case.
This commit is contained in:
CTCaer committed 2025-12-18 11:48:53 +02:00
1 parent b5a6c8eb64
commit 998053f8db
2 files changed
+8 -6

No files matched your search

+2 -2
View File
@@ -606,7 +606,7 @@ void display_backlight(bool enable)
static void _display_dsi_backlight_brightness(u32 duty)
{
if (DISPLAY_A(DC_DISP_BACKLIGHT_DUTY) == duty)
if (DISPLAY_A(DC_DCS_BACKLIGHT_LEVEL) == duty)
return;
// Convert duty to candela.
@@ -619,7 +619,7 @@ static void _display_dsi_backlight_brightness(u32 duty)
if (!duty)
usleep(100000);
DISPLAY_A(DC_DISP_BACKLIGHT_DUTY) = duty;
DISPLAY_A(DC_DCS_BACKLIGHT_LEVEL) = duty;
}
static void _display_pwm_backlight_brightness(u32 duty, u32 step_delay)