pandora: add vsense platform data
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 Jun 2010 19:30:21 +0000 (22:30 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 3 Jun 2011 22:29:28 +0000 (01:29 +0300)
arch/arm/mach-omap2/board-omap3pandora.c

index 577483c..f5ad324 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/mmc/host.h>
 #include <linux/mmc/card.h>
 #include <linux/regulator/fixed.h>
+#include <linux/i2c/vsense.h>
 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
@@ -562,8 +563,26 @@ static struct i2c_board_info __initdata omap3pandora_i2c_boardinfo[] = {
        },
 };
 
+static struct vsense_platform_data omap3pandora_nub1_data = {
+       .gpio_irq       = 161,
+       .gpio_reset     = 156,
+};
+
+static struct vsense_platform_data omap3pandora_nub2_data = {
+       .gpio_irq       = 162,
+       .gpio_reset     = 156,
+};
+
 static struct i2c_board_info __initdata omap3pandora_i2c3_boardinfo[] = {
        {
+               I2C_BOARD_INFO("vsense", 0x66),
+               .flags = I2C_CLIENT_WAKE,
+               .platform_data = &omap3pandora_nub1_data,
+       }, {
+               I2C_BOARD_INFO("vsense", 0x67),
+               .flags = I2C_CLIENT_WAKE,
+               .platform_data = &omap3pandora_nub2_data,
+       }, {
                I2C_BOARD_INFO("bq27500", 0x55),
                .flags = I2C_CLIENT_WAKE,
        },