summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@stericsson.com>2011-10-12 16:00:23 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 10:59:47 +0200
commit8f154c0fc9fa3bcba0ed8f4527a15054ae013023 (patch)
tree33ce58739f7814751993606ccb4f04da3d0eb05f /include
parentfe19483d1aa037de30f95447342f5cd94cf295ec (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 'include')
-rw-r--r--include/linux/leds-ab5500.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/leds-ab5500.h b/include/linux/leds-ab5500.h
new file mode 100644
index 00000000000..2db6ffd188e
--- /dev/null
+++ b/include/linux/leds-ab5500.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2011 ST-Ericsson SA.
+ *
+ * License Terms: GNU General Public License v2
+ *
+ * Simple driver for HVLED in ST-Ericsson AB5500 Analog baseband Controller
+ *
+ * Author: Shreshtha Kumar SAHU <shreshthakumar.sahu@stericsson.com>
+ */
+
+#define AB5500_HVLED0 0
+#define AB5500_HVLED1 1
+#define AB5500_HVLED2 2
+#define AB5500_HVLEDS_MAX 3
+
+enum ab5500_led_status {
+ AB5500_LED_OFF = 0x00,
+ AB5500_LED_ON,
+};
+
+struct ab5500_led_conf {
+ char *name;
+ u8 led_id;
+ enum ab5500_led_status status;
+ u8 max_current;
+};
+
+struct ab5500_hvleds_platform_data {
+ bool hw_blink;
+ struct ab5500_led_conf leds[AB5500_HVLEDS_MAX];
+};