diff options
author | Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> | 2011-07-20 20:58:00 +0530 |
---|---|---|
committer | Robert Marklund <robert.marklund@stericsson.com> | 2011-10-27 15:05:34 +0200 |
commit | d4633d569cf4b1e1fa0896c2ca2cdd346b4c4bbd (patch) | |
tree | 33e372be1a1393e262a764a3c2f64b80da3ed2ff /include | |
parent | 9c3b6f99075f30a18939c10681666f0b04a12877 (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.h | 14 |
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]; }; |