diff mbox

OMAP3: cm-t35: enable ds2786 battery gas gauge

Message ID 1271919966-12366-1-git-send-email-mike@compulab.co.il (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Mike Rapoport April 22, 2010, 7:06 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c
index 2de4f79..c28e7bb 100644
--- a/arch/arm/mach-omap2/board-cm-t35.c
+++ b/arch/arm/mach-omap2/board-cm-t35.c
@@ -687,10 +687,23 @@  static struct i2c_board_info __initdata cm_t35_i2c_boardinfo[] = {
 	},
 };
 
+#define DS2786_RSNS    18 /* Constant sense resistor value */
+
+static int cm_t35_ds2786_rsns_val = DS2786_RSNS;
+
+static struct i2c_board_info __initdata cm_t35_i2c3_boardinfo[] = {
+	{
+		I2C_BOARD_INFO("ds2786", 0x36),
+		.platform_data = &cm_t35_ds2786_rsns_val,
+	},
+};
+
 static void __init cm_t35_init_i2c(void)
 {
 	omap_register_i2c_bus(1, 2600, cm_t35_i2c_boardinfo,
 			      ARRAY_SIZE(cm_t35_i2c_boardinfo));
+	omap_register_i2c_bus(3, 400, cm_t35_i2c3_boardinfo,
+			      ARRAY_SIZE(cm_t35_i2c3_boardinfo));
 }
 
 static struct omap_board_config_kernel cm_t35_config[] __initdata = {