diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-01-31 22:36:28 -0800 |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2014-02-27 09:56:55 -0800 |
commit | a59ce6584d566847980f9dcad5343cd9856145c8 (patch) | |
tree | 5d940cf8bb5bc9489350243cb689375316997def /include | |
parent | 8d82fef8bbee588d071372eb02439d2053b4bfe4 (diff) | |
download | linux-a59ce6584d566847980f9dcad5343cd9856145c8.tar.gz linux-a59ce6584d566847980f9dcad5343cd9856145c8.tar.bz2 linux-a59ce6584d566847980f9dcad5343cd9856145c8.zip |
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')
-rw-r--r-- | include/linux/mfd/mc13xxx.h | 6 |
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]; }; |