[U-Boot] Odd value for I2C_TIMEOUT in fsl_i2c.c

Scott Wood scottwood at freescale.com
Fri Sep 4 20:36:45 CEST 2009


On Fri, Sep 04, 2009 at 10:31:00AM +0200, Wolfgang Denk wrote:
> > CONFIG_HZ is 1000, so I2C_TIMEOUT is equal to 250.  However, the way
> > it's used, 250 isn't the number of ticks per second, it's used as
> > number of microseconds.  If CONFIG_HZ is changed to 100, does that
> > mean that we want to call usec2ticks(25)?
> 
> CONFIG_SYS_HZ is a constant of 1000. We do not change constants.

We shouldn't call them CONFIGurable, then. :-)

Out of curiosity, what is the reason why CONFIG_SYS_HZ must be 1000?

-Scott


More information about the U-Boot mailing list