Commit 028d6849014a4fcea9fd6514b1be959ee7e01b9e
Committed by
Simon Glass
1 parent
c34bd8b820
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
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>
Showing 1 changed file with 7 additions and 0 deletions Side-by-side Diff
board/rockchip/evb_rk3399/evb-rk3399.c
... | ... | @@ -29,6 +29,13 @@ |
29 | 29 | goto out; |
30 | 30 | } |
31 | 31 | |
32 | + /* Enable pwm0 for panel backlight */ | |
33 | + ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_PWM0); | |
34 | + if (ret) { | |
35 | + debug("%s PWM0 pinctrl init fail! (ret=%d)\n", __func__, ret); | |
36 | + goto out; | |
37 | + } | |
38 | + | |
32 | 39 | ret = pinctrl_request_noflags(pinctrl, PERIPH_ID_PWM2); |
33 | 40 | if (ret) { |
34 | 41 | debug("%s PWM2 pinctrl init fail!\n", __func__); |