summaryrefslogtreecommitdiff
path: root/include/linux/mfd/mc13xxx.h
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-02-01 10:36:28 +0400
committerBryan Wu <cooloney@gmail.com>2014-02-27 21:56:55 +0400
commita59ce6584d566847980f9dcad5343cd9856145c8 (patch)
tree5d940cf8bb5bc9489350243cb689375316997def /include/linux/mfd/mc13xxx.h
parent8d82fef8bbee588d071372eb02439d2053b4bfe4 (diff)
downloadlinux-a59ce6584d566847980f9dcad5343cd9856145c8.tar.xz
leds: leds-mc13783: Add MC34708 LED support
This patch adds support for two LEDs on MC34708 PMIC. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'include/linux/mfd/mc13xxx.h')
-rw-r--r--include/linux/mfd/mc13xxx.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/mc13xxx.h b/include/linux/mfd/mc13xxx.h
index ac39d910e70b..a326c850f046 100644
--- a/include/linux/mfd/mc13xxx.h
+++ b/include/linux/mfd/mc13xxx.h
@@ -104,6 +104,9 @@ enum {
MC13892_LED_R,
MC13892_LED_G,
MC13892_LED_B,
+ /* MC34708 LED IDs */
+ MC34708_LED_R,
+ MC34708_LED_G,
};
struct mc13xxx_led_platform_data {
@@ -163,6 +166,9 @@ struct mc13xxx_leds_platform_data {
#define MC13892_LED_C2_CURRENT_G(x) (((x) & 0x7) << 21)
/* MC13892 LED Control 3 */
#define MC13892_LED_C3_CURRENT_B(x) (((x) & 0x7) << 9)
+/* MC34708 LED Control 0 */
+#define MC34708_LED_C0_CURRENT_R(x) (((x) & 0x3) << 9)
+#define MC34708_LED_C0_CURRENT_G(x) (((x) & 0x3) << 21)
u32 led_control[MAX_LED_CONTROL_REGS];
};