summaryrefslogtreecommitdiff
path: root/drivers/i2c/mxc_i2c.c
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2011-08-05 12:19:08 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-11-03 22:56:18 +0100
commita1c662965dcdc6f0986691db2ddfcbc963e82194 (patch)
treeeca7cf898a9e0381cde422192b9adfca172d7359 /drivers/i2c/mxc_i2c.c
parent324a131e7cfbcc6a65cf6d7f5a455e47ff613b0c (diff)
downloadu-boot-imx-a1c662965dcdc6f0986691db2ddfcbc963e82194.zip
u-boot-imx-a1c662965dcdc6f0986691db2ddfcbc963e82194.tar.gz
u-boot-imx-a1c662965dcdc6f0986691db2ddfcbc963e82194.tar.bz2
I2C: added I2C-2 and I2C-3 to MX35
Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Heiko Schocher <hs@denx.de> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/i2c/mxc_i2c.c')
-rw-r--r--drivers/i2c/mxc_i2c.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index 2869d7c..bf3ad95 100644
--- a/drivers/i2c/mxc_i2c.c
+++ b/drivers/i2c/mxc_i2c.c
@@ -73,6 +73,10 @@ struct mxc_i2c_regs {
#define I2C_BASE I2C2_BASE_ADDR
#elif defined(CONFIG_SYS_I2C_MX35_PORT1)
#define I2C_BASE I2C_BASE_ADDR
+#elif defined(CONFIG_SYS_I2C_MX35_PORT2)
+#define I2C_BASE I2C2_BASE_ADDR
+#elif defined(CONFIG_SYS_I2C_MX35_PORT3)
+#define I2C_BASE I2C3_BASE_ADDR
#else
#error "define CONFIG_SYS_I2C_MX<Processor>_PORTx to use the mx I2C driver"
#endif