summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/devices.c
diff options
context:
space:
mode:
authorSyed Mohammed Khasim2006-12-07 02:14:05 +0100
committerTony Lindgren2007-09-20 18:59:20 +0200
commit72d0f1c3cdc7c456e1e357359ec6f566d0a5f264 (patch)
tree1cebb2edf9fa1be79d991e7a61fa196d284d9a17 /arch/arm/mach-omap2/devices.c
parentARM: OMAP: abstract debug card setup (smc, leds) (diff)
downloadkernel-qcow2-linux-72d0f1c3cdc7c456e1e357359ec6f566d0a5f264.tar.gz
kernel-qcow2-linux-72d0f1c3cdc7c456e1e357359ec6f566d0a5f264.tar.xz
kernel-qcow2-linux-72d0f1c3cdc7c456e1e357359ec6f566d0a5f264.zip
ARM: OMAP: Add minimal OMAP2430 support
This patch adds minimal OMAP2430 support to get the kernel booting on 2430SDP. Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r--arch/arm/mach-omap2/devices.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index 52ec2f2d6360..b603bc5f8e5b 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -55,8 +55,10 @@ static void omap_init_i2c(void)
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);
}