Patchwork [U-Boot,7/9] mxc_i2c: Allow MX6Q I2C3 to work

login
register
mail settings
Submitter Fabio Estevam
Date May 31, 2012, 5:24 p.m.
Message ID <1338485043-21666-7-git-send-email-fabio.estevam@freescale.com>
Download mbox | patch
Permalink /patch/162205/
State Superseded
Delegated to: Stefano Babic
Headers show

Comments

Fabio Estevam - May 31, 2012, 5:24 p.m.
Allow MX6Q I2C3 to work.

Cc: Heiko Schocher <hs@denx.de>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/i2c/mxc_i2c.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index c88ac7c..d3c323e 100644
--- a/drivers/i2c/mxc_i2c.c
+++ b/drivers/i2c/mxc_i2c.c
@@ -78,6 +78,8 @@  struct mxc_i2c_regs {
 #define I2C_BASE	I2C2_BASE_ADDR
 #elif defined(CONFIG_SYS_I2C_MX35_PORT3)
 #define I2C_BASE	I2C3_BASE_ADDR
+#elif defined(CONFIG_SYS_I2C_MX6Q_PORT3)
+#define I2C_BASE	I2C3_BASE_ADDR
 #else
 #error "define CONFIG_SYS_I2C_MX<Processor>_PORTx to use the mx I2C driver"
 #endif