]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/mpc824x/drivers/i2c/i2c1.c
* Patches by Robert Schwebel, 06 Mar 2003:
[karo-tx-uboot.git] / cpu / mpc824x / drivers / i2c / i2c1.c
index be6ec60a1491a746ae946726eef01612e2d2265b..7a2eb666569cd999c11f9f1f26b483ea54354105 100644 (file)
@@ -1128,6 +1128,15 @@ static void I2C_Set_Stat (unsigned int eumbbar, I2C_STAT stat)
 
 void i2c_init (int speed, int slaveadd)
 {
+#ifdef CFG_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
+
 #ifdef DEBUG
        I2C_Initialize (0x7f, 0, (void *) printf);
 #else