summaryrefslogtreecommitdiffstats
path: root/include/pwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pwm.h')
-rw-r--r--include/pwm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/pwm.h b/include/pwm.h
index bdc2fdd858..59d86d497d 100644
--- a/include/pwm.h
+++ b/include/pwm.h
@@ -9,6 +9,8 @@ struct device_d;
*/
struct pwm_device *pwm_request(const char *pwmname);
+struct pwm_device *of_pwm_request(struct device_node *np, const char *con_id);
+
/*
* pwm_free - free a PWM device
*/
@@ -29,6 +31,11 @@ int pwm_enable(struct pwm_device *pwm);
*/
void pwm_disable(struct pwm_device *pwm);
+void pwm_set_period(struct pwm_device *pwm, unsigned int period);
+unsigned int pwm_get_period(struct pwm_device *pwm);
+void pwm_set_duty_cycle(struct pwm_device *pwm, unsigned int duty);
+unsigned int pwm_get_duty_cycle(struct pwm_device *pwm);
+
struct pwm_chip;
/**