[U-Boot-Users] PPC440 interval timer off by factor of 10?

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.

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

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
participants (2)
-
Andrew Wozniak
-
Wolfgang Denk