[U-Boot-Users] i2c_init - is this a bug?

Michael michaelzwrk at gmail.com
Wed Dec 20 09:46:15 CET 2006

Hi, guys.
Here is something suspicious about i2c_init(int speed, int slaveadd),
in i2c.c and fsl_i2c.c -
the speed parameter passed to it is never used, instead the value is hard-coded.

/* set clock */
writeb(0x3f, &I2C->fdr);

Sets the speed.
Shouldn't it be writeb(speed, &I2C->fdr); , with speed being the divider value?


More information about the U-Boot mailing list