summaryrefslogtreecommitdiff
path: root/drivers/pwm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-31 17:57:25 -0600
committerSimon Glass <sjg@chromium.org>2017-06-09 13:39:34 -0600
commit385105983abf428de55eab9a1c2464889e94cc1b (patch)
tree05f86683de985bbcb79d21adc398b7fe55db2e7c /drivers/pwm
parentc9af6673e8799dbc32b1654c152c1bf9c2454b72 (diff)
rockchip: Setup default PWM flags
At present if the Signed-off-by: Simon Glass <sjg@chromium.org> Fixes: 874ee59 (rockchip: pwm: implement pwm_set_invert())
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/rk_pwm.c1
1 files changed, 1 insertions, 0 deletions
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;
}