summaryrefslogtreecommitdiff
path: root/include/linux/leds-ab5500.h
diff options
context:
space:
mode:
authorShreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>2011-07-20 20:58:00 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:01:02 +0200
commit2ff7e0ff79b553e7077e456cb9c9e7ec48b887a6 (patch)
treecfbfa7b6ae70a2e7f699008eb318841321eac333 /include/linux/leds-ab5500.h
parent9bac6a0efe0993a13822a3cf84371d6ff92e1abb (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/linux/leds-ab5500.h')
-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];
};