summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/board-u5500.c
diff options
context:
space:
mode:
authorShreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>2011-04-28 14:26:14 +0530
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 15:15:16 +0200
commit5ae0bb5e0a044d132332820f2d6efc2339dd2ef3 (patch)
tree93e6cef20575836bbf72401640d3153147dadf55 /arch/arm/mach-ux500/board-u5500.c
parentf3db268d9ae114a8dbbe3833acd04ecad558e106 (diff)
ab5500: leds: driver for ab5500 leds
Simple HV LED controller driver for AB5500v1.0 MFD chips ST-Ericsson ID: WP 332221 ST-Ericsson Linux next: ER 336280 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Ic787cd1a2277a4c5782dd18d3436cd95b763c81a Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/21898 Reviewed-by: QATEST Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/board-u5500.c')
-rw-r--r--arch/arm/mach-ux500/board-u5500.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/board-u5500.c b/arch/arm/mach-ux500/board-u5500.c
index b9f5fb4468f..406892c6a97 100644
--- a/arch/arm/mach-ux500/board-u5500.c
+++ b/arch/arm/mach-ux500/board-u5500.c
@@ -18,6 +18,7 @@
#include <../../../drivers/staging/ste_rmi4/synaptics_i2c_rmi4.h>
#include <linux/input/matrix_keypad.h>
#include <linux/lsm303dlh.h>
+#include <linux/leds-ab5500.h>
#include <video/av8100.h>
@@ -94,6 +95,32 @@ static struct lm3530_platform_data u5500_als_platform_data = {
.brt_val = 0x7F, /* Max brightness */
};
+
+/* leds-ab5500 */
+static struct ab5500_hvleds_platform_data ab5500_hvleds_data = {
+ .hw_blink = false,
+ .leds = {
+ [0] = {
+ .name = "ab5500-hvled:channel-0:",
+ .led_id = 0,
+ .status = AB5500_LED_ON,
+ .max_current = 10, /* wrong value may damage h/w */
+ },
+ [1] = {
+ .name = "ab5500-hvled:channel-1:",
+ .led_id = 1,
+ .status = AB5500_LED_ON,
+ .max_current = 10, /* wrong value may damage h/w */
+ },
+ [2] {
+ .name = "ab5500-hvled:channel-2:",
+ .led_id = 2,
+ .status = AB5500_LED_ON,
+ .max_current = 10, /* wrong value may damage h/w */
+ },
+ },
+};
+
/*
* I2C
*/
@@ -290,6 +317,8 @@ static struct ab5500_platform_data ab5500_plf_data = {
},
.pm_power_off = true,
.regulator = &u5500_ab5500_regulator_data,
+ .dev_data[AB5500_DEVID_LEDS] = &ab5500_hvleds_data,
+ .dev_data_sz[AB5500_DEVID_LEDS] = sizeof(ab5500_hvleds_data),
};
static struct platform_device u5500_ab5500_device = {