public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] i2c_init - is this a bug?
@ 2006-12-20  8:46 Michael
  2006-12-20 16:36 ` Timur Tabi
  0 siblings, 1 reply; 2+ messages in thread
From: Michael @ 2006-12-20  8:46 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-20 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-20  8:46 [U-Boot-Users] i2c_init - is this a bug? Michael
2006-12-20 16:36 ` Timur Tabi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox