From patchwork Thu Jan 20 08:46:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,V2,03/11] mxc_i2c: Add support for the i.MX35 processor From: Stefano Babic X-Patchwork-Id: 79650 Message-Id: <1295513194-16158-4-git-send-email-sbabic@denx.de> To: u-boot@lists.denx.de Cc: Heiko Schocher Date: Thu, 20 Jan 2011 09:46:26 +0100 Signed-off-by: Stefano Babic CC: Heiko Schocher Acked-by: Heiko Schocher --- Changes: Wolfgang Denk: - Do not use XXX in defines because are blocked by SPAM filters drivers/i2c/mxc_i2c.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 1ebec14..7f669ff 100755 --- 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