[U-Boot] [PATCH 6/8] I2C: added I2C-2 and I2C-3 to MX35

Stefano Babic sbabic at denx.de
Fri Sep 16 11:46:21 CEST 2011


Signed-off-by: Stefano Babic <sbabic at denx.de>
CC: Heiko Schocher <hs at denx.de>
---
 drivers/i2c/mxc_i2c.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c
index ebde3c5..25c33eb 100644
--- a/drivers/i2c/mxc_i2c.c
+++ b/drivers/i2c/mxc_i2c.c
@@ -63,6 +63,10 @@
 #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
-- 
1.7.1



More information about the U-Boot mailing list