lkml.org 
[lkml]   [2012]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 5/5] ARM: mmp: enable 88pm860x in ttc dkb
Date
Enable backlight & led components of 88pm860x PMIC in ttc dkb board.

Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
---
arch/arm/mach-mmp/ttc_dkb.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)

diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c
index 7a7de2b..1b51b81 100644
--- a/arch/arm/mach-mmp/ttc_dkb.c
+++ b/arch/arm/mach-mmp/ttc_dkb.c
@@ -138,8 +138,23 @@ static struct pca953x_platform_data max7312_data[] = {
},
};

+static struct pm860x_backlight_pdata ttc_dkb_backlight[] = {
+ { .iset = PM8606_WLED_CURRENT(4), },
+};
+
+static struct pm860x_led_pdata ttc_dkb_led[] = {
+ { .iset = PM8606_LED_CURRENT(12), },
+ { .iset = PM8606_LED_CURRENT(12), },
+ { .iset = PM8606_LED_CURRENT(12), },
+};
+
static struct pm860x_platform_data ttc_dkb_pm8607_info = {
.irq_base = IRQ_BOARD_START,
+ .companion_addr = 0x11,
+ .backlight = &ttc_dkb_backlight[0],
+ .num_backlights = ARRAY_SIZE(ttc_dkb_backlight),
+ .led = &ttc_dkb_led[0],
+ .num_leds = ARRAY_SIZE(ttc_dkb_led),
};

static struct i2c_board_info ttc_dkb_i2c_info[] = {
--
1.7.9.5


\
 
 \ /
  Last update: 2012-08-05 19:21    [W:1.004 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site