public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] core ticks/timer code
@ 2009-03-28  1:30 Mike Frysinger
  2009-03-28  7:07 ` Dirk Behme
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Mike Frysinger @ 2009-03-28  1:30 UTC (permalink / raw)
  To: u-boot

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 

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

end of thread, other threads:[~2009-04-06 19:43 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-28  1:30 [U-Boot] core ticks/timer code Mike Frysinger
2009-03-28  7:07 ` Dirk Behme
2009-03-31  1:10   ` Mike Frysinger
2009-03-31 11:41     ` Scott McNutt
2009-03-31 15:48       ` Wolfgang Denk
2009-03-31 21:25         ` Scott Wood
2009-03-31 21:27           ` Wolfgang Denk
2009-04-02 12:38             ` Detlev Zundel
2009-04-02 13:09               ` Scott McNutt
2009-03-31 20:46   ` Wolfgang Denk
2009-03-31  8:17 ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-31  9:13   ` Mike Frysinger
2009-03-31 10:28     ` Wolfgang Denk
2009-03-31 11:25       ` Mike Frysinger
2009-03-31 11:41         ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-31 15:55           ` Dirk Behme
2009-04-02 19:16             ` Ladislav Michl
2009-04-02 21:18               ` Graeme Russ
2009-04-04 21:35                 ` Wolfgang Denk
2009-03-31 15:46         ` Wolfgang Denk
2009-03-31 11:39       ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-31 15:49         ` Wolfgang Denk
2009-03-31 21:32           ` Scott Wood
2009-04-04 21:14             ` Wolfgang Denk
2009-04-06 19:12               ` Scott Wood
2009-04-06 19:43                 ` Wolfgang Denk
2009-03-31 20:43 ` Wolfgang Denk

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