All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] [PATCH] Board changes for tmp105 temperature sensor
@ 2010-06-15 14:57 ` Datta, Shubhrajyoti
  0 siblings, 0 replies; 9+ messages in thread
From: Datta, Shubhrajyoti @ 2010-06-15 14:45 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org; +Cc: LM Sensors

Adding board configuration for the tmp105
temperature sensor. The interface to the sensor
is I2C.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
---
 arch/arm/mach-omap2/board-4430sdp.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
 mode change 100644 => 100755 arch/arm/mach-omap2/board-4430sdp.c

diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c
old mode 100644
new mode 100755
index 4bb2c5d..3e3b222
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -353,6 +353,11 @@ static struct i2c_board_info __initdata sdp4430_i2c_boardinfo[] = {
 		.platform_data = &sdp4430_twldata,
 	},
 };
+static struct i2c_board_info __initdata sdp4430_i2c_3_boardinfo[] = {
+	{
+		I2C_BOARD_INFO("tmp105", 0x48),
+	},
+};
 static int __init omap4_i2c_init(void)
 {
 	/*
@@ -362,7 +367,8 @@ static int __init omap4_i2c_init(void)
 	omap_register_i2c_bus(1, 400, sdp4430_i2c_boardinfo,
 			ARRAY_SIZE(sdp4430_i2c_boardinfo));
 	omap_register_i2c_bus(2, 400, NULL, 0);
-	omap_register_i2c_bus(3, 400, NULL, 0);
+	omap_register_i2c_bus(3, 400, sdp4430_i2c_3_boardinfo,
+				ARRAY_SIZE(sdp4430_i2c_3_boardinfo));
 	omap_register_i2c_bus(4, 400, NULL, 0);
 	return 0;
 }
-- 
1.5.4.7


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [RFC] [PATCH] Board changes for tmp105 temperature sensor
  2010-06-15 14:57 ` [lm-sensors] [RFC] [PATCH] Board changes for tmp105 temperature Datta, Shubhrajyoti
@ 2010-07-01 13:06 ` Datta, Shubhrajyoti
  -1 siblings, 0 replies; 9+ messages in thread
From: Datta, Shubhrajyoti @ 2010-07-01 12:54 UTC (permalink / raw)
  To: linux-omap@vger.kernel.org; +Cc: LM Sensors, Tony Lindgren

Adding board configuration for the tmp105
temperature sensor. The interface to the sensor
is I2C.
-Removing unwanted file mode change

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
---
 arch/arm/mach-omap2/board-4430sdp.c |    8 +++++++-
 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 4bb2c5d..3e3b222 100644
--- a/arch/arm/mach-omap2/board-4430sdp.c
+++ b/arch/arm/mach-omap2/board-4430sdp.c
@@ -353,6 +353,11 @@ static struct i2c_board_info __initdata sdp4430_i2c_boardinfo[] = {
 		.platform_data = &sdp4430_twldata,
 	},
 };
+static struct i2c_board_info __initdata sdp4430_i2c_3_boardinfo[] = {
+	{
+		I2C_BOARD_INFO("tmp105", 0x48),
+	},
+};
 static int __init omap4_i2c_init(void)
 {
 	/*
@@ -362,7 +367,8 @@ static int __init omap4_i2c_init(void)
 	omap_register_i2c_bus(1, 400, sdp4430_i2c_boardinfo,
 			ARRAY_SIZE(sdp4430_i2c_boardinfo));
 	omap_register_i2c_bus(2, 400, NULL, 0);
-	omap_register_i2c_bus(3, 400, NULL, 0);
+	omap_register_i2c_bus(3, 400, sdp4430_i2c_3_boardinfo,
+				ARRAY_SIZE(sdp4430_i2c_3_boardinfo));
 	omap_register_i2c_bus(4, 400, NULL, 0);
 	return 0;
 }
-- 
1.5.4.7


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-07-05 10:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-15 14:45 [RFC] [PATCH] Board changes for tmp105 temperature sensor Datta, Shubhrajyoti
2010-06-15 14:57 ` [lm-sensors] [RFC] [PATCH] Board changes for tmp105 temperature Datta, Shubhrajyoti
2010-07-01 12:17 ` [RFC] [PATCH] Board changes for tmp105 temperature sensor Tony Lindgren
2010-07-01 12:17   ` [lm-sensors] [RFC] [PATCH] Board changes for tmp105 temperature Tony Lindgren
2010-07-01 12:32   ` [RFC] [PATCH] Board changes for tmp105 temperature sensor Datta, Shubhrajyoti
2010-07-01 12:44     ` [lm-sensors] [RFC] [PATCH] Board changes for tmp105 temperature Datta, Shubhrajyoti
  -- strict thread matches above, loose matches on Subject: below --
2010-07-01 12:54 [RFC] [PATCH] Board changes for tmp105 temperature sensor Datta, Shubhrajyoti
2010-07-01 13:06 ` [lm-sensors] [RFC] [PATCH] Board changes for tmp105 temperature Datta, Shubhrajyoti
2010-07-05 10:07 ` [APPLIED] [RFC] [PATCH] Board changes for tmp105 temperature sensor Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.