[Gta04-owner] [PATCH] Add hmc5883 to gta04 board file.

Marek Belisko marek.belisko at open-nandra.com
Wed Jun 20 21:48:32 CEST 2012


From: Marek Belisko <marek.belisko at streamunlimited.com>

Signed-off-by: Marek Belisko <marek.belisko at streamunlimited.com>
---
 arch/arm/mach-omap2/board-omap3gta04.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/board-omap3gta04.c b/arch/arm/mach-omap2/board-omap3gta04.c
index 96b0b6d..9f86234 100644
--- a/arch/arm/mach-omap2/board-omap3gta04.c
+++ b/arch/arm/mach-omap2/board-omap3gta04.c
@@ -1034,7 +1034,14 @@ static struct i2c_board_info __initdata gta04_i2c2_boardinfo[] = {
 	.type		= "bma150",
 },
 #endif
-	/* FIXME: add other drivers for HMC5883, BMA180, Si472x, Camera */
+#ifdef CONFIG_SENSORS_HMC5843
+{
+	I2C_BOARD_INFO("hmc5843", 0x1e),
+	.type		= "hmc5883",
+},
+#endif
+
+	/* FIXME: add other drivers for BMA180, Si472x, Camera */
 };
 
 static int __init gta04_i2c_init(void)
-- 
1.7.9.5



More information about the Gta04-owner mailing list