summaryrefslogtreecommitdiff
path: root/arch/arm/imx-common/i2c-mxv7.c
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2015-05-18 10:56:24 +0200
committerStefano Babic <sbabic@denx.de>2015-05-26 14:16:54 +0200
commit21a26940f9048e668f9a79f64b802406b2e8d18c (patch)
tree69ad60b6af602381609ecfc3760755757031dc20 /arch/arm/imx-common/i2c-mxv7.c
parentab87fc6bbd80f4e702e7dde102b1c74f0f4678b3 (diff)
downloadu-boot-imx-21a26940f9048e668f9a79f64b802406b2e8d18c.zip
u-boot-imx-21a26940f9048e668f9a79f64b802406b2e8d18c.tar.gz
u-boot-imx-21a26940f9048e668f9a79f64b802406b2e8d18c.tar.bz2
arm, imx6, i2c: add I2C4 for MX6DL
add I2C4 modul for MX6DL based boards. Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'arch/arm/imx-common/i2c-mxv7.c')
-rw-r--r--arch/arm/imx-common/i2c-mxv7.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/imx-common/i2c-mxv7.c b/arch/arm/imx-common/i2c-mxv7.c
index f3a5c3f..ff72b1a 100644
--- a/arch/arm/imx-common/i2c-mxv7.c
+++ b/arch/arm/imx-common/i2c-mxv7.c
@@ -67,9 +67,12 @@ static void * const i2c_bases[] = {
#ifdef I2C3_BASE_ADDR
(void *)I2C3_BASE_ADDR,
#endif
+#ifdef I2C4_BASE_ADDR
+ (void *)I2C4_BASE_ADDR,
+#endif
};
-/* i2c_index can be from 0 - 2 */
+/* i2c_index can be from 0 - 3 */
int setup_i2c(unsigned i2c_index, int speed, int slave_addr,
struct i2c_pads_info *p)
{