summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2009-07-22 22:57:18 (GMT)
committerWolfgang Denk <wd@denx.de>2009-07-22 22:57:18 (GMT)
commit49a7720b215aa3da24bb13266c4c194012f499a6 (patch)
treeca38f71b98cb6ae8baaf4097e6a09297e0753a21 /drivers
parent5a625149dbe14d381df454c459c6aaf27d59af20 (diff)
parent39df00d9aecfb465b9eec9af593f9b763fb5209a (diff)
downloadu-boot-fsl-qoriq-49a7720b215aa3da24bb13266c4c194012f499a6.tar.xz
Merge branch 'master' of git://git.denx.de/u-boot-i2c
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/fsl_i2c.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c
index 6ab7d3d..ce0f301 100644
--- a/drivers/i2c/fsl_i2c.c
+++ b/drivers/i2c/fsl_i2c.c
@@ -178,6 +178,12 @@ i2c_init(int speed, int slaveadd)
struct fsl_i2c *dev;
unsigned int temp;
+#ifdef CONFIG_SYS_I2C_INIT_BOARD
+ /* call board specific i2c bus reset routine before accessing the */
+ /* environment, which might be in a chip on that bus. For details */
+ /* about this problem see doc/I2C_Edge_Conditions. */
+ i2c_init_board();
+#endif
dev = (struct fsl_i2c *) (CONFIG_SYS_IMMR + CONFIG_SYS_I2C_OFFSET);
writeb(0, &dev->cr); /* stop I2C controller */