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

From: Haojian Zhuang
Date: Sun Aug 05 2012 - 12:33:27 EST


Enable backlight & led components of 88pm860x PMIC in ttc dkb board.

Signed-off-by: Haojian Zhuang <haojian.zhuang@xxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/