summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-08-08 00:57:35 +0000
committerHeiko Schocher <hs@denx.de>2012-09-06 06:01:09 +0200
commita532278074f1d1fa7d46b144e0d4b824ae7d3335 (patch)
treeacd05ba11c5929d221c7d77cff36320402852c3d /drivers
parenta6f0c4faa4c65a7b7048b12c9d180d7e1aad1721 (diff)
downloadu-boot-imx-a532278074f1d1fa7d46b144e0d4b824ae7d3335.zip
u-boot-imx-a532278074f1d1fa7d46b144e0d4b824ae7d3335.tar.gz
u-boot-imx-a532278074f1d1fa7d46b144e0d4b824ae7d3335.tar.bz2
omap4 i2c: add support for i2c bus 4
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/omap24xx_i2c.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c
index 978507b..094305f 100644
--- a/drivers/i2c/omap24xx_i2c.c
+++ b/drivers/i2c/omap24xx_i2c.c
@@ -442,6 +442,14 @@ int i2c_set_bus_num(unsigned int bus)
return -1;
}
+#if I2C_BUS_MAX == 4
+ if (bus == 3)
+ i2c_base = (struct i2c *)I2C_BASE4;
+ else
+ if (bus == 2)
+ i2c_base = (struct i2c *)I2C_BASE3;
+ else
+#endif
#if I2C_BUS_MAX == 3
if (bus == 2)
i2c_base = (struct i2c *)I2C_BASE3;