From: Stefano Babic Date: Wed, 19 Jan 2011 22:46:26 +0000 (+0000) Subject: mxc_i2c: Add support for the i.MX35 processor X-Git-Tag: v2011.03-rc1~2^2~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=04220612f69a7148f7f6d045638c8046bd265b29;p=u-boot mxc_i2c: Add support for the i.MX35 processor Signed-off-by: Stefano Babic CC: Heiko Schocher Acked-by: Heiko Schocher --- diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 1ebec14642..7f669ff539 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -29,9 +29,8 @@ #if defined(CONFIG_MX31) #include #include -#endif - -#if defined(CONFIG_MX53) +#else +#include #include #endif @@ -66,8 +65,10 @@ #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_PORTx to use the mx I2C driver" #endif #ifdef DEBUG