From: Khasim Syed Mohammed Date: Tue, 28 Nov 2006 02:21:25 +0000 (+0000) Subject: To enable I2C-2 for 2430 SDP X-Git-Tag: v2.6.19-omap1~37 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c80767864bb19f5647e6655c0c0eb6b32187067d;p=linux-2.6-omap-h63xx.git To enable I2C-2 for 2430 SDP ARM: OMAP: This patch enables I2C-2 support for 2430 SDP This patch enables I2C-2 support for 2430 SDP. Signed-off-by: Syed Mohammed Khasim Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 488f4a8e2ee..b603bc5f8e5 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c @@ -52,11 +52,13 @@ static struct platform_device omap_i2c_device2 = { 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); }