aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/i2c.c
diff options
context:
space:
mode:
authorCory Maccarrone <darkstar6262@gmail.com>2009-12-11 19:16:34 -0500
committerTony Lindgren <tony@atomide.com>2009-12-11 19:16:34 -0500
commitbf92a40762fb10a394281941a46f529463c49ffc (patch)
treef1c9e124e77c3ccdaebb89c644f9d8275fe5759f /arch/arm/mach-omap1/i2c.c
parent106997c1a4aa3a34d8e04fa0138ba332f7ceafef (diff)
omap1: I2C mux and clocks for omap7xx
This change adds MUX pin configuration and clocks for I2C support to OMAP 730 and 850-based devices. Signed-off-by: Cory Maccarrone <darkstar6262@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/i2c.c')
-rw-r--r--arch/arm/mach-omap1/i2c.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-omap1/i2c.c b/arch/arm/mach-omap1/i2c.c
index bc9d12bc1c61..1bf4735e27a6 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
25int __init omap_register_i2c_bus(int bus_id, u32 clkrate, 26int __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}