From: Michael Date: Wed, 20 Dec 2006 10:46:15 +0200 Subject: [U-Boot-Users] i2c_init - is this a bug? Message-ID: <1ea6be8e0612200046m2a3bd7cfnef9c6047053630a0@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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? Regards, Mic