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

* [U-Boot-Users] PPC440 interval timer off by factor of 10?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2005-01-04 18:07 UTC (permalink / raw)
  To: u-boot

In message <41DAD30E.1010404@mc.com> you wrote:
> 
> 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:
...
> Is this a real BUG? I can fix the flash related function which use the

Looks like a bug to me.


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Make it right before you make it faster.

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

* [U-Boot-Users] PPC440 interval timer off by factor of 10?
  2005-01-04 18:07 ` Wolfgang Denk
@ 2005-01-04 20:11   ` Andrew Wozniak
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Wozniak @ 2005-01-04 20:11 UTC (permalink / raw)
  To: u-boot

Ok, I will investigate if the fix has any bad side affects.

If no problems show up, I'll post a patch.

-Andy

Wolfgang Denk wrote:
> In message <41DAD30E.1010404@mc.com> you wrote:
> 
>>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:
> 
> ...
> 
>>Is this a real BUG? I can fix the flash related function which use the
> 
> 
> Looks like a bug to me.
> 
> 
> Best regards,
> 
> Wolfgang Denk
> 

^ 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