public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] To enable I2C-2 for 2430 SDP
@ 2006-11-21  6:01 Syed Mohammed, Khasim
  2006-11-27 19:36 ` Nishanth Menon
  0 siblings, 1 reply; 5+ messages in thread
From: Syed Mohammed, Khasim @ 2006-11-21  6:01 UTC (permalink / raw)
  To: linux-omap-open-source

[-- Attachment #1: Type: text/plain, Size: 210 bytes --]

Hi,

The attached patch enables I2C-2 support for 2430 SDP. On 2430SDP
Triton-2 is connected through I2C bus-2.

Please do let me know if you find any issues with the same.

Thanks & Regards,
Khasim


[-- Attachment #2: 2430I2C2_mach-omap2.patch --]
[-- Type: application/octet-stream, Size: 1016 bytes --]

This patch enables I2C-2 support for 2430 SDP.

Signed-off-by: Syed Mohammed Khasim  <x0khasim@ti.com>

Files Changed:
 devices.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

=============================================================================
diff -purN linux-omap/arch/arm/mach-omap2/devices.c my_linux_devpt/arch/arm/mach-omap2/devices.c
--- linux-omap/arch/arm/mach-omap2/devices.c	2006-11-20 21:54:01.000000000 -0600
+++ my_linux_devpt/arch/arm/mach-omap2/devices.c	2006-11-20 23:11:56.000000000 -0600
@@ -52,11 +52,13 @@ static struct platform_device omap_i2c_d
 static void omap_init_i2c(void)
 {
 	/* REVISIT: Second I2C not in use on H4? */
-	if (machine_is_omap_h4() || machine_is_omap_2430sdp())
+	if (machine_is_omap_h4())
 		return;
-
-	omap_cfg_reg(J15_24XX_I2C2_SCL);
-	omap_cfg_reg(H19_24XX_I2C2_SDA);
+	
+	if (!cpu_is_omap2430()){
+		omap_cfg_reg(J15_24XX_I2C2_SCL);
+		omap_cfg_reg(H19_24XX_I2C2_SDA);
+	}
 	(void) platform_device_register(&omap_i2c_device2);
 }
 

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2006-11-28  4:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-21  6:01 [PATCH] To enable I2C-2 for 2430 SDP Syed Mohammed, Khasim
2006-11-27 19:36 ` Nishanth Menon
2006-11-27 20:08   ` Syed Mohammed, Khasim
2006-11-28  2:23     ` Tony Lindgren
2006-11-28  4:11       ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox