[PATCH 5/5] ARM: mmp: enable 88pm860x in ttc dkb

Haojian Zhuang
2012-08-05T16:33:35Z

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