mxc_i2c: Add support for the i.MX35 processor
authorStefano Babic <sbabic@denx.de>
Wed, 19 Jan 2011 22:46:26 +0000 (22:46 +0000)
committerAlbert Aribaud <albert.aribaud@free.fr>
Tue, 1 Feb 2011 23:54:42 +0000 (00:54 +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 1ebec1464212ce75cc51efffa555b2fff4c872da..7f669ff53992b38e9daff4e65edeefbf4e33b97f 100644 (file)
@@ -29,9 +29,8 @@
 #if defined(CONFIG_MX31)
 #include <asm/arch/mx31.h>
 #include <asm/arch/mx31-regs.h>
-#endif
-
-#if defined(CONFIG_MX53)
+#else
+#include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
 #endif
 
 #define I2C_BASE        I2C1_BASE_ADDR
 #elif defined(CONFIG_SYS_I2C_MX53_PORT2)
 #define I2C_BASE        I2C2_BASE_ADDR
+#elif defined(CONFIG_SYS_I2C_MX35_PORT1)
+#define I2C_BASE       I2C_BASE_ADDR
 #else
-#error "define CONFIG_SYS_I2C_MXxx_PORTx to use the I2C driver"
+#error "define CONFIG_SYS_I2C_MX<Processor>_PORTx to use the mx I2C driver"
 #endif
 
 #ifdef DEBUG