ARM: mmp: ttc_dkb: add PMIC support
authorChao Xie <chao.xie@marvell.com>
Mon, 7 May 2012 03:24:00 +0000 (11:24 +0800)
committerHaojian Zhuang <haojian.zhuang@gmail.com>
Mon, 7 May 2012 03:44:42 +0000 (11:44 +0800)
Add 88pm860x into ttc_dkb, and it will impact the suspend/resume
of pxa910

Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
arch/arm/mach-mmp/ttc_dkb.c

index 3fc9ed2..e8cf5ea 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/interrupt.h>
 #include <linux/i2c/pca953x.h>
 #include <linux/gpio.h>
+#include <linux/mfd/88pm860x.h>
 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
@@ -135,8 +136,18 @@ static struct pca953x_platform_data max7312_data[] = {
        },
 };
 
+static struct pm860x_platform_data ttc_dkb_pm8607_info = {
+       .irq_base       = IRQ_BOARD_START,
+};
+
 static struct i2c_board_info ttc_dkb_i2c_info[] = {
        {
+               .type           = "88PM860x",
+               .addr           = 0x34,
+               .platform_data  = &ttc_dkb_pm8607_info,
+               .irq            = IRQ_PXA910_PMIC_INT,
+       },
+       {
                .type           = "max7312",
                .addr           = 0x23,
                .irq            = MMP_GPIO_TO_IRQ(80),