ARM: 5754/1: ep93xx: update i2c support
authorHartley Sweeten <hartleys@visionengravers.com>
Wed, 7 Oct 2009 23:45:00 +0000 (00:45 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 10 Oct 2009 11:45:13 +0000 (12:45 +0100)
commit6531a991f95f2f34fc00cf0a030b1cdd5e19dc02
tree729b67962bfb16811e96e9f483e463dd6dadbd5f
parent03d38418a5a3361a757336cd87d64b35c1c7d658
ARM: 5754/1: ep93xx: update i2c support

Update the ep93xx i2c support:

  1) The platform init code passes the configuration data for the
     i2c-gpio driver.  This allows any gpio pin do be used for the
     sda and scl pins.  It also allows the platform to specify the
     udelay and timeout.
  2) Program the gpio configuration register to enable/disable the
     open drain drivers.  Note that this really only works if the
     sda and scl pins are set to EP93XX_GPIO_LINE_EEDAT and
     EP93XX_GPIO_LINE_EECLK.
  3) Update the edb93xx.c platform init to use the new support.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Ryan Mallon <ryan@bluewatersys.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ep93xx/core.c
arch/arm/mach-ep93xx/edb93xx.c
arch/arm/mach-ep93xx/include/mach/ep93xx-regs.h
arch/arm/mach-ep93xx/include/mach/platform.h