X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=cpu%2Fppc4xx%2Fi2c.c;h=7d8db9bf437980858cc91960188f69d9c44d206e;hp=68af057d1ef50206d8e6778d01b6f0ed08193b6d;hb=47cd00fa707af9de76408b69d3e911717dbbfab1;hpb=db2f721ffcf9693086a7e5c6c7015f2019e7f52e diff --git a/cpu/ppc4xx/i2c.c b/cpu/ppc4xx/i2c.c index 68af057d1e..7d8db9bf43 100644 --- a/cpu/ppc4xx/i2c.c +++ b/cpu/ppc4xx/i2c.c @@ -85,7 +85,15 @@ void i2c_init (int speed, int slaveadd) unsigned long freqOPB; int val, divisor; +#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 + /* Handle possible failed I2C state */ + /* FIXME: put this into i2c_init_board()? */ _i2c_bus_reset (); /* clear lo master address */