* Add support for IceCube board (with MGT5100 and MPC5200 CPUs)
[oweals/u-boot.git] / cpu / mpc8xx / i2c.c
index 9d5d9d265fc4426f8f887899525669daef2fa012..baa3552b078f5a0fee32006ae216b51ea6cefe95 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