mirror of
https://github.com/CTCaer/hekate
synced 2024-11-09 21:36:35 +00:00
bdk: display: wait 2us for bl pwm config to take
Fixes the tiny blink showing up while pwm is still at max.
This commit is contained in:
parent
1214ab0e02
commit
4bc0a0591c
1 changed files with 2 additions and 0 deletions
|
@ -630,6 +630,8 @@ void display_backlight_pwm_init()
|
||||||
PWM(PWM_CONTROLLER_PWM_CSR_0) = PWM_CSR_EN;
|
PWM(PWM_CONTROLLER_PWM_CSR_0) = PWM_CSR_EN;
|
||||||
|
|
||||||
PINMUX_AUX(PINMUX_AUX_LCD_BL_PWM) = (PINMUX_AUX(PINMUX_AUX_LCD_BL_PWM) & ~PINMUX_FUNC_MASK) | 1; // Set PWM0 mode.
|
PINMUX_AUX(PINMUX_AUX_LCD_BL_PWM) = (PINMUX_AUX(PINMUX_AUX_LCD_BL_PWM) & ~PINMUX_FUNC_MASK) | 1; // Set PWM0 mode.
|
||||||
|
usleep(2);
|
||||||
|
|
||||||
gpio_config(GPIO_PORT_V, GPIO_PIN_0, GPIO_MODE_SPIO); // Backlight power mode.
|
gpio_config(GPIO_PORT_V, GPIO_PIN_0, GPIO_MODE_SPIO); // Backlight power mode.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue