public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Markus Klotzbücher" <mk@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] U-Boot wrong cpu frequency calculation when setting PLPRCR directly
Date: Sat, 20 Jan 2007 18:03:44 +0100	[thread overview]
Message-ID: <873b65eikv.fsf@denx.de> (raw)
In-Reply-To: <eoskgd$52a$1@sea.gmane.org> (Antonio Di Bacco's message of "Sat, 20 Jan 2007 09:45:00 +0100")

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

      reply	other threads:[~2007-01-20 17:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873b65eikv.fsf@denx.de \
    --to=mk@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox