aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorShubhrajyoti Datta <shubhrajyoti@ti.com>2010-08-02 06:18:04 -0400
committerTony Lindgren <tony@atomide.com>2010-08-02 06:18:04 -0400
commit83078f9bdcc3218e769849921ee67820ea125cf4 (patch)
tree203624750d20f53c8bdad56135033f3a8507538a /arch/arm/mach-omap2
parent5026391c2ade39cdce93f6d6817ae5782f63a702 (diff)
omap4: Board changes for 4430sdp tmp105 temperature sensor
Adding board configuration for the tmp105 temperature sensor. The interface to the sensor is I2C. Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/board-4430sdp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
index 216870b44484..eb1775e381d8 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -357,6 +357,11 @@ static struct i2c_board_info __initdata sdp4430_i2c_boardinfo[] = {
357 .platform_data = &sdp4430_twldata, 357 .platform_data = &sdp4430_twldata,
358 }, 358 },
359}; 359};
360static struct i2c_board_info __initdata sdp4430_i2c_3_boardinfo[] = {
361 {
362 I2C_BOARD_INFO("tmp105", 0x48),
363 },
364};
360static int __init omap4_i2c_init(void) 365static int __init omap4_i2c_init(void)
361{ 366{
362 /* 367 /*
@@ -366,7 +371,8 @@ static int __init omap4_i2c_init(void)
366 omap_register_i2c_bus(1, 400, sdp4430_i2c_boardinfo, 371 omap_register_i2c_bus(1, 400, sdp4430_i2c_boardinfo,
367 ARRAY_SIZE(sdp4430_i2c_boardinfo)); 372 ARRAY_SIZE(sdp4430_i2c_boardinfo));
368 omap_register_i2c_bus(2, 400, NULL, 0); 373 omap_register_i2c_bus(2, 400, NULL, 0);
369 omap_register_i2c_bus(3, 400, NULL, 0); 374 omap_register_i2c_bus(3, 400, sdp4430_i2c_3_boardinfo,
375 ARRAY_SIZE(sdp4430_i2c_3_boardinfo));
370 omap_register_i2c_bus(4, 400, NULL, 0); 376 omap_register_i2c_bus(4, 400, NULL, 0);
371 return 0; 377 return 0;
372} 378}