From: "Robert Deliën" <robert.delien@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] MIPS time.c fix
Date: Mon, 11 Dec 2006 11:03:27 +0100 [thread overview]
Message-ID: <000001c71d0b$9a845cc0$dfdd9182@code1.emi.philips.com> (raw)
> The above is not true for all MIPS. A lot (almost all) of older MIPS
> parts run the cpu CP0 counter at half the core clock rate.
Thanks for your feedback; I wasn't aware of this. I've encountered a couple
of /2 constructions in some configurations, but I though that was just a
quick fix that degrades the granularity of the timer by half in order to
prevent overflows in net.c.
> I would suggest changing CPU_CLOCK_RATE to CPU_CP0_COUNT_RATE since
> they are not always the same.
I have changed it to CFG_CP0_COUNT_RATE, if you don't mind. The IncaIP and
Purple platform seem to have cores with half-speed COUNT registers so those
have been fixed too. Behold the new patch ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mips_timer2.diff
Type: application/octet-stream
Size: 6651 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20061211/8d42666e/attachment.obj
next reply other threads:[~2006-12-11 10:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-11 10:03 Robert Deliën [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-12-08 14:05 [U-Boot-Users] [PATCH] MIPS time.c fix Robert Deliën
2006-12-08 15:38 ` Andrew Dyer
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='000001c71d0b$9a845cc0$dfdd9182@code1.emi.philips.com' \
--to=robert.delien@nxp.com \
--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