summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Gao <eric.gao@rock-chips.com>2017-05-02 18:23:55 +0800
committerSimon Glass <sjg@chromium.org>2017-05-10 13:37:22 -0600
commit028d6849014a4fcea9fd6514b1be959ee7e01b9e (patch)
tree6d39e5fe827f35a468a87cefcb19ff112493e2d9
parentc34bd8b82090718e3546ba262168467dc31a128e (diff)
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>
-rw-r--r--board/rockchip/evb_rk3399/evb-rk3399.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/rockchip/evb_rk3399/evb-rk3399.c b/board/rockchip/evb_rk3399/evb-rk3399.c
index e83dedbc5b..f63f003209 100644
--- a/board/rockchip/evb_rk3399/evb-rk3399.c
+++ b/board/rockchip/evb_rk3399/evb-rk3399.c
@@ -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__);