From 88ae4c453ba53c5920a381a5d9c23d3815413271 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Tue, 5 May 2015 14:34:11 +0800 Subject: MLK-10812-1 imx:mx6 add i2c4 support I2C4 support for i.MX Signed-off-by: Peng Fan --- drivers/i2c/mxc_i2c.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'drivers/i2c/mxc_i2c.c') diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 2bf4e01..7bc6d07 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -435,7 +435,10 @@ static void * const i2c_bases[] = { defined(CONFIG_MX6) || defined(CONFIG_LS102XA) (void *)I2C1_BASE_ADDR, (void *)I2C2_BASE_ADDR, - (void *)I2C3_BASE_ADDR + (void *)I2C3_BASE_ADDR, +#if defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL) + (void *)I2C4_BASE_ADDR +#endif #elif defined(CONFIG_MX7) (void *)I2C1_BASE_ADDR, (void *)I2C2_BASE_ADDR, @@ -579,7 +582,7 @@ U_BOOT_I2C_ADAP_COMPLETE(mxc2, mxc_i2c_init, mxc_i2c_probe, CONFIG_SYS_MXC_I2C3_SLAVE, 2) #endif -#if defined(CONFIG_MX7) +#if defined(CONFIG_MX7) || defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL) U_BOOT_I2C_ADAP_COMPLETE(mxc3, mxc_i2c_init, mxc_i2c_probe, mxc_i2c_read, mxc_i2c_write, mxc_i2c_set_bus_speed, -- cgit v1.1