From: Simon Glass Date: Wed, 31 May 2017 23:57:25 +0000 (-0600) Subject: rockchip: Setup default PWM flags X-Git-Tag: v2017.07-rc2~54^2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=385105983abf428de55eab9a1c2464889e94cc1b;p=u-boot rockchip: Setup default PWM flags At present if the Signed-off-by: Simon Glass Fixes: 874ee59 (rockchip: pwm: implement pwm_set_invert()) --- diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 59eae0956e..28de62d716 100644 --- a/drivers/pwm/rk_pwm.c +++ b/drivers/pwm/rk_pwm.c @@ -92,6 +92,7 @@ static int rk_pwm_probe(struct udevice *dev) return -EINVAL; } priv->freq = clk_get_rate(&clk); + priv->enable_conf = PWM_DUTY_POSTIVE | PWM_INACTIVE_POSTIVE; return 0; }