]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: Setup default PWM flags
authorSimon Glass <sjg@chromium.org>
Wed, 31 May 2017 23:57:25 +0000 (17:57 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 9 Jun 2017 19:39:34 +0000 (13:39 -0600)
At present if the

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: 874ee59 (rockchip: pwm: implement pwm_set_invert())
drivers/pwm/rk_pwm.c

index 59eae0956e67b88b51f7d8f9849a56a0d5eb26f2..28de62d71611087ace2f188c85f4a57ec60f42f4 100644 (file)
@@ -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;
 }