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

Scott Wood
2009-09-04T19:28:01Z

Wolfgang Denk wrote:
> Dear Scott Wood,
>
> In message <20090904183437.GA20066@b07421-ec1.am.freescale.net> you wrote:
>>> milliseconds, i. e. a time. "(CONFIG_SYS_HZ / 4)" is a frequency,
>>> i. e. not a time, but the inverse of it.
>>>
>>> It is plain wront to write "250 per second" when you mean "250 milliseconds"
>> It is not a frequency, it is a number of ticks. This is a very common
>> idiom.
>
> CONFIG_SYS_HZ _is_ a frequenzy. It is the number of ticks _per_
> _second_. That is the _inverse_ of a time unit, not a time unit.

Yes, CONFIG_SYS_HZ is a frequency. And when you multiply a _frequency_,
which is _ticks_ per _second_, by a number _seconds_ (in this case, 1/4
sec), you get a number of _ticks_.

-Scott