summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>2011-07-20 20:58:00 +0530
committerSrinidhi KASAGAR <srinidhi.kasagar@stericsson.com>2011-10-03 07:01:20 +0200
commit6af7a3ed543e355b4345f8565f009c412fcf1bf2 (patch)
treef3aee7cc69b2b4f7caae7d3d2d2b151bf9020f8a /include
parent160cebfb0d9fcaa4fc9b5ee615a4923990072fca (diff)
u5500: leds: add ab5500v2 HVLED blink feature
This patch adds support for AB5500 v2.0 HVLED hardware blink feature in existing driver. ST-Ericsson Linux next: ER 336280 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson ID: ER 364964 Change-Id:I73e1caeac14774b7d3e03d1e7c5e4bd16fc7d06a Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/27547 Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32746 Reviewed-by: Naga RADHESH Y <naga.radheshy@stericsson.com> Tested-by: Naga RADHESH Y <naga.radheshy@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/leds-ab5500.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/linux/leds-ab5500.h b/include/linux/leds-ab5500.h
index 2db6ffd188e..9ba9ac61d90 100644
--- a/include/linux/leds-ab5500.h
+++ b/include/linux/leds-ab5500.h
@@ -13,19 +13,23 @@
#define AB5500_HVLED2 2
#define AB5500_HVLEDS_MAX 3
-enum ab5500_led_status {
- AB5500_LED_OFF = 0x00,
- AB5500_LED_ON,
+enum ab5500_fade_delay {
+ AB5500_FADE_DELAY_BYPASS = 0,
+ AB5500_FADE_DELAY_HALFSEC,
+ AB5500_FADE_DELAY_ONESEC,
+ AB5500_FADE_DELAY_TWOSEC
};
struct ab5500_led_conf {
char *name;
u8 led_id;
- enum ab5500_led_status status;
u8 max_current;
+ u8 fade_hi;
+ u8 fade_lo;
+ bool led_on;
};
struct ab5500_hvleds_platform_data {
- bool hw_blink;
+ bool hw_fade;
struct ab5500_led_conf leds[AB5500_HVLEDS_MAX];
};