I2C: added I2C-2 and I2C-3 to MX35
authorStefano Babic <sbabic@denx.de>
Fri, 5 Aug 2011 10:19:08 +0000 (12:19 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 3 Nov 2011 21:56:18 +0000 (22:56 +0100)
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Heiko Schocher <hs@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
drivers/i2c/mxc_i2c.c

index 2869d7cec3d70466ab75347decf3ff277430f2af..bf3ad956c1bcda2218d7cc5bb92572a22aa56fb0 100644 (file)
@@ -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