diff options
author | Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> | 2011-07-20 20:58:00 +0530 |
---|---|---|
committer | Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com> | 2011-10-03 07:01:20 +0200 |
commit | 6af7a3ed543e355b4345f8565f009c412fcf1bf2 (patch) | |
tree | f3aee7cc69b2b4f7caae7d3d2d2b151bf9020f8a /arch/arm | |
parent | 160cebfb0d9fcaa4fc9b5ee615a4923990072fca (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 'arch/arm')
-rw-r--r-- | arch/arm/mach-ux500/board-u5500.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/arm/mach-ux500/board-u5500.c b/arch/arm/mach-ux500/board-u5500.c index 7a1715ea4aa..b2056bd28bb 100644 --- a/arch/arm/mach-ux500/board-u5500.c +++ b/arch/arm/mach-ux500/board-u5500.c @@ -108,24 +108,30 @@ static struct lm3530_platform_data u5500_als_platform_data = { /* leds-ab5500 */ static struct ab5500_hvleds_platform_data ab5500_hvleds_data = { - .hw_blink = false, + .hw_fade = false, .leds = { [0] = { .name = "red", + .led_on = true, .led_id = 0, - .status = AB5500_LED_ON, + .fade_hi = 255, + .fade_lo = 0, .max_current = 10, /* wrong value may damage h/w */ }, [1] = { .name = "green", + .led_on = true, .led_id = 1, - .status = AB5500_LED_ON, + .fade_hi = 255, + .fade_lo = 0, .max_current = 10, /* wrong value may damage h/w */ }, [2] { .name = "blue", + .led_on = true, .led_id = 2, - .status = AB5500_LED_ON, + .fade_hi = 255, + .fade_lo = 0, .max_current = 10, /* wrong value may damage h/w */ }, }, |