summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNaga Radhesh <naga.radheshy@stericsson.com>2012-02-23 15:49:39 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:01:39 +0200
commit84cefcf74c7b9291cbe3ce725ee912bc1f1412b7 (patch)
tree27f63771715ff5b6acf9499b3099c4b30ce7b4df /include
parent713724046af865d0650e430f2101693fd5947969 (diff)
leds-pwm:Support HW blink functionality
Support LED HW blink functionlity, by registering blink set function. ST-Ericsson ID: 366316 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:Ice4f7b786bd2acdd115ca920de6deb2e83d80ea3 Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/50126 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/leds_pwm.h2
-rw-r--r--include/linux/pwm.h10
2 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/leds_pwm.h b/include/linux/leds_pwm.h
index 9c5eab6e086..5128ffa43c3 100644
--- a/include/linux/leds_pwm.h
+++ b/include/linux/leds_pwm.h
@@ -12,6 +12,8 @@ struct led_pwm {
unsigned max_brightness;
unsigned pwm_period_ns;
unsigned int lth_brightness;
+ unsigned int dutycycle_steps;
+ unsigned int period_steps;
};
struct led_pwm_platform_data {
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
index 7c775751392..792ed4a9240 100644
--- a/include/linux/pwm.h
+++ b/include/linux/pwm.h
@@ -28,4 +28,14 @@ int pwm_enable(struct pwm_device *pwm);
*/
void pwm_disable(struct pwm_device *pwm);
+/*
+ * pwm_config_blink - configure PWM blinking
+ */
+int pwm_config_blink(struct pwm_device *pwm, int duty_ns, int period_ns);
+
+/*
+ * pwm_blink_ctrl - Enable/Disable PWM blinking
+ */
+int pwm_blink_ctrl(struct pwm_device *pwm , int enable);
+
#endif /* __LINUX_PWM_H */