diff options
Diffstat (limited to 'arch/arm/mach-omap1/i2c.c')
-rw-r--r-- | arch/arm/mach-omap1/i2c.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-omap1/i2c.c b/arch/arm/mach-omap1/i2c.c index bc9d12bc1c6..1bf4735e27a 100644 --- a/arch/arm/mach-omap1/i2c.c +++ b/arch/arm/mach-omap1/i2c.c | |||
@@ -21,13 +21,19 @@ | |||
21 | 21 | ||
22 | #include <plat/i2c.h> | 22 | #include <plat/i2c.h> |
23 | #include <plat/mux.h> | 23 | #include <plat/mux.h> |
24 | #include <plat/cpu.h> | ||
24 | 25 | ||
25 | int __init omap_register_i2c_bus(int bus_id, u32 clkrate, | 26 | int __init omap_register_i2c_bus(int bus_id, u32 clkrate, |
26 | struct i2c_board_info const *info, | 27 | struct i2c_board_info const *info, |
27 | unsigned len) | 28 | unsigned len) |
28 | { | 29 | { |
29 | omap_cfg_reg(I2C_SDA); | 30 | if (cpu_is_omap7xx()) { |
30 | omap_cfg_reg(I2C_SCL); | 31 | omap_cfg_reg(I2C_7XX_SDA); |
32 | omap_cfg_reg(I2C_7XX_SCL); | ||
33 | } else { | ||
34 | omap_cfg_reg(I2C_SDA); | ||
35 | omap_cfg_reg(I2C_SCL); | ||
36 | } | ||
31 | 37 | ||
32 | return omap_plat_register_i2c_bus(bus_id, clkrate, info, len); | 38 | return omap_plat_register_i2c_bus(bus_id, clkrate, info, len); |
33 | } | 39 | } |