]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/mpc8xx/i2c.c
* Patches by Robert Schwebel, 06 Mar 2003:
[karo-tx-uboot.git] / cpu / mpc8xx / i2c.c
index 9d5d9d265fc4426f8f887899525669daef2fa012..9e8b8c7e760b7c6f3d63e871ac18c9f3266f03db 100644 (file)
@@ -215,6 +215,13 @@ i2c_init(int speed, int slaveaddr)
        volatile I2C_BD *rxbd, *txbd;
        uint dpaddr;
 
+#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 CFG_I2C_UCODE_PATCH
        iip = (iic_t *)&cp->cp_dpmem[iip->iic_rpbase];
 #else