* [U-Boot-Users] U-Boot wrong cpu frequency calculation when setting PLPRCR directly
@ 2007-01-20 8:45 Antonio Di Bacco
2007-01-20 17:03 ` Markus Klotzbücher
0 siblings, 1 reply; 2+ messages in thread
From: Antonio Di Bacco @ 2007-01-20 8:45 UTC (permalink / raw)
To: u-boot
Hi all,
I setup the cpu frequency of a Freescale MPC880 directly providing a value
for the PLPRCR register. When the u-boot (1.2.0 and previous) starts, in
file speed.c it makes a calculation to display the CPU frequency based on
fields in PLPRCR. Working with integers it makes an approximation that
leads to a wrong cpu frequency in my case 130 Mhz instead of 132 Mhz). As a
consequence my clock was wrong gaining 20 minutes per day. It is easy to
patch the problem. If someone is interested I'll give him the patch.
Bye,
Antonio.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] U-Boot wrong cpu frequency calculation when setting PLPRCR directly
2007-01-20 8:45 [U-Boot-Users] U-Boot wrong cpu frequency calculation when setting PLPRCR directly Antonio Di Bacco
@ 2007-01-20 17:03 ` Markus Klotzbücher
0 siblings, 0 replies; 2+ messages in thread
From: Markus Klotzbücher @ 2007-01-20 17:03 UTC (permalink / raw)
To: u-boot
Dear Antonio,
Antonio Di Bacco <dibacco@libero.it> writes:
> I setup the cpu frequency of a Freescale MPC880 directly providing a value
> for the PLPRCR register. When the u-boot (1.2.0 and previous) starts, in
> file speed.c it makes a calculation to display the CPU frequency based on
> fields in PLPRCR. Working with integers it makes an approximation that
> leads to a wrong cpu frequency in my case 130 Mhz instead of 132 Mhz). As a
> consequence my clock was wrong gaining 20 minutes per day. It is easy to
> patch the problem. If someone is interested I'll give him the patch.
Please post the patch so at least it can be found in the archives later.
Regards
Markus Klotzbuecher
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-20 17:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-20 8:45 [U-Boot-Users] U-Boot wrong cpu frequency calculation when setting PLPRCR directly Antonio Di Bacco
2007-01-20 17:03 ` Markus Klotzbücher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox