From 47cd00fa707af9de76408b69d3e911717dbbfab1 Mon Sep 17 00:00:00 2001 From: wdenk Date: Thu, 6 Mar 2003 13:39:27 +0000 Subject: * Patches by Robert Schwebel, 06 Mar 2003: - fix bug in BOOTP code (must use NetCopyIP) - update of CSB226 port - clear BSS segment on XScale - added support for i2c_init_board() function - update to the Innokom plattform * Extend support for redundand environments for configurations where environment size < sector size --- cpu/mpc824x/drivers/i2c/i2c1.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpu/mpc824x') diff --git a/cpu/mpc824x/drivers/i2c/i2c1.c b/cpu/mpc824x/drivers/i2c/i2c1.c index be6ec60a1..7a2eb6665 100644 --- a/cpu/mpc824x/drivers/i2c/i2c1.c +++ b/cpu/mpc824x/drivers/i2c/i2c1.c @@ -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 -- cgit v1.2.3