public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] PPC440 interval timer off by factor of 10?
@ 2005-01-04 17:31 Andrew Wozniak
  2005-01-04 18:07 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Wozniak @ 2005-01-04 17:31 UTC (permalink / raw)
  To: u-boot

Hello,

I'm porting the OCOTEA u-boot package to a customer PPC440 board.  In
the process of debugging (non-CFI) Flash timeout functions, it appears
that get_timer() is returning a value which increments every 10msec
instead of 1 msec:

Further code examinations shows that interrupt_init_cpu() is indeed
setting up a 10msec interval.

#if defined(CONFIG_440)
	val = mfspr( tcr );
	...
	val = gd->bd->bi_intfreq/100;	/* 10 msec */
         ...
Is this a real BUG? I can fix the flash related function which use the
timer but what about all the other modules which use get_timer() - some
are network related.

Thank you.

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

end of thread, other threads:[~2005-01-04 20:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-04 17:31 [U-Boot-Users] PPC440 interval timer off by factor of 10? Andrew Wozniak
2005-01-04 18:07 ` Wolfgang Denk
2005-01-04 20:11   ` Andrew Wozniak

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