Skip to contentSkip to conversation

omap3: pandora: add missing i2c3 board_info

PATCH New Grazvydas Ignotas 2 participants 2 messages Mar 10, 2010 – Mar 11, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap3: pandora: add missing i2c3 board_info

This will allow BQ27500 fuel gauge to function.

---

BQ27500 support got in during this merge window, so would be nice to see this in some -rc.

 arch/arm/mach-omap2/board-omap3pandora.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/board-omap3pandora.c +9 -1
index 4827f46..9d79153 100644
@@ -459,12 +459,20 @@ static struct i2c_board_info __initdata omap3pandora_i2c_boardinfo[] = {
 	},
 };
 
+static struct i2c_board_info __initdata omap3pandora_i2c3_boardinfo[] = {
+	{
+		I2C_BOARD_INFO("bq27500", 0x55),
+		.flags = I2C_CLIENT_WAKE,
+	},
+};
+
 static int __init omap3pandora_i2c_init(void)
 {
 	omap_register_i2c_bus(1, 2600, omap3pandora_i2c_boardinfo,
 			ARRAY_SIZE(omap3pandora_i2c_boardinfo));
 	/* i2c2 pins are not connected */
-	omap_register_i2c_bus(3, 100, NULL, 0);
+	omap_register_i2c_bus(3, 100, omap3pandora_i2c3_boardinfo,
+			ARRAY_SIZE(omap3pandora_i2c3_boardinfo));
 	return 0;
 }
 
Signature · 1 line
1.6.3.3
maintainer
#1 lore raw

PATCH 1/1 omap3: pandora: add missing i2c3 board_info

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Branch in linux-omap: omap-fixes

Initial commit ID (Likely to change): d47a0b100c5386f12bcdef9071bbd5b3f653e755

PatchWorks
http://patchwork.kernel.org/patch/84535/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=d47a0b100c5386f12bcdef9071bbd5b3f653e755