[U-Boot] core ticks/timer code

Mike Frysinger
2009-03-28T01:30:26Z

the Blackfin core tick/timer code has been around since the start of the
original port, but i'm not sure it's entirely correct. some common code that
uses timers seems to be misbehaving in that the timeout is pretty much
immediate. makes me think that we've spent time on making udelay() work, but
then just glossed over the rest.

unfortunately, there doesnt seem to be any docs on what exactly these
functions do so it's hard for me to verify/change any of it.

my understanding is that:
- get_ticks - return some notion of "cpu ticks"
- get_tbclk - return number of "cpu ticks" that elapse in one second
- timer_init - setup a core timer
- get_timer(x) - not really sure what this is supposed to represent, or how
"x" is used
- reset_timer - reset core timer to 0
- CONFIG_SYS_HZ - no idea how this relates to ticks/timer in U-Boot as in the
Linux world, this is the core timer (scheduler) frequency (how many times to
execute per second)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090327/29966392/attachment.pgp