diff options
author | Naga Radhesh <naga.radheshy@stericsson.com> | 2012-01-17 16:16:43 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:01:39 +0200 |
commit | 2ab2bbebe4ad7f2e6edef2f4fb11d275ec9b0737 (patch) | |
tree | 6547c5ac47586d6bdd9323241b713a05638900eb /include/linux | |
parent | a3f15a7ec440dbccb72f0da6bf65f5c21797a69c (diff) |
ab8500-pwm:AB8505:Enable support for PWMLED blink
Enable support for PWM OUT LED blinking for
AB8505.Instead of having 3 pwm instances from
ab8500 core file add it as platform data.
ST-Ericsson ID: 366316
ST-Ericsson Linux next: NA
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id:I63cd5510d3c1071613871946f7c624d2e2026568
Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/45669
Reviewed-by: QABUILD
Reviewed-by: Arun MURTHY <arun.murthy@stericsson.com>
Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mfd/ab8500/pwmleds.h | 20 | ||||
-rw-r--r-- | include/linux/mfd/abx500/ab8500.h | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/mfd/ab8500/pwmleds.h b/include/linux/mfd/ab8500/pwmleds.h new file mode 100644 index 00000000000..e31658280a0 --- /dev/null +++ b/include/linux/mfd/ab8500/pwmleds.h @@ -0,0 +1,20 @@ +/* + * Copyright ST-Ericsson 2012. + * + * Author: Naga Radhesh <naga.radheshy@stericsson.com> + * Licensed under GPLv2. + */ +#ifndef _AB8500_PWMLED_H +#define _AB8500_PWMLED_H + +struct ab8500_led_pwm { + int pwm_id; + int blink_en; +}; + +struct ab8500_pwmled_platform_data { + int num_pwm; + struct ab8500_led_pwm *leds; +}; + +#endif diff --git a/include/linux/mfd/abx500/ab8500.h b/include/linux/mfd/abx500/ab8500.h index 7e056197b98..a51161222e1 100644 --- a/include/linux/mfd/abx500/ab8500.h +++ b/include/linux/mfd/abx500/ab8500.h @@ -278,6 +278,7 @@ struct ab8500_sysctrl_platform_data; * @battery: machine-specific battery management data * @charger: machine-specific charger data * @btemp: machine-specific battery temp data + * @pwmled: machine-specific pwmled data */ struct ab8500_platform_data { int irq_base; @@ -297,6 +298,7 @@ struct ab8500_platform_data { struct ab8500_chargalg_platform_data *chargalg; struct ab8500_gpio_platform_data *gpio; struct ab8500_sysctrl_platform_data *sysctrl; + struct ab8500_pwmled_platform_data *pwmled; }; extern int __devinit ab8500_init(struct ab8500 *ab8500, |