mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
rockchip: board: evb_rk3399: initialize pwm0 for dispaly backlight
Enable pwm0 for display of rk3399 evb board. The PWM do not have decicated interrupt number in dts and can not get periph_id by pinctrl framework. So init them here. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c34bd8b820
commit
028d684901
1 changed files with 7 additions and 0 deletions
|
|
@ -29,6 +29,13 @@ int board_init(void)
|
|||
goto out;
|
||||
}
|
||||
|
||||
/* Enable pwm0 for panel backlight */
|
||||
ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_PWM0);
|
||||
if (ret) {
|
||||
debug("%s PWM0 pinctrl init fail! (ret=%d)\n", __func__, ret);
|
||||
goto out;
|
||||
}
|
||||
|
||||
ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_PWM2);
|
||||
if (ret) {
|
||||
debug("%s PWM2 pinctrl init fail!\n", __func__);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue