[U-Boot] [PATCH v2 17/28] rockchip: Setup default PWM flags
Simon Glass
sjg at chromium.org
Wed May 31 23:57:25 UTC 2017
At present if the
Signed-off-by: Simon Glass <sjg at chromium.org>
Fixes: 874ee59 (rockchip: pwm: implement pwm_set_invert())
---
Changes in v2: None
drivers/pwm/rk_pwm.c | 1 +
1 file changed, 1 insertion(+)
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;
}
--
2.13.0.219.gdb65acc882-goog
More information about the U-Boot
mailing list