From: Domen Puncer <domen.puncer@telargo.com>
To: u-boot-users@lists.sourceforge.net
Cc: linuxppc-embedded@ozlabs.org
Subject: [RFC PATCH] icecube/lite5200b: fix OF_TBCLK (timebase-frequency) calculation
Date: Wed, 7 Mar 2007 08:02:58 +0100 [thread overview]
Message-ID: <20070307070258.GA4397@moe.telargo.com> (raw)
I tracked jiffies (on Linux) incrementing twice as fast on
lite5200b to this ("timebase-frequency" property).
G2 core reference manual says decrementer and time base
are decreasing/increasing once every 4 bus clock cycles.
Was there a reason this was busfreq/8?
Domen
---
include/configs/IceCube.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: u-boot.git/include/configs/IceCube.h
===================================================================
--- u-boot.git.orig/include/configs/IceCube.h
+++ u-boot.git/include/configs/IceCube.h
@@ -182,7 +182,7 @@
#define OF_CPU "PowerPC,5200@0"
#define OF_SOC "soc5200@f0000000"
-#define OF_TBCLK (bd->bi_busfreq / 8)
+#define OF_TBCLK (bd->bi_busfreq / 4)
#define OF_STDOUT_PATH "/soc5200@f0000000/serial@2000"
/*
WARNING: multiple messages have this Message-ID (diff)
From: Domen Puncer <domen.puncer@telargo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [RFC PATCH] icecube/lite5200b: fix OF_TBCLK (timebase-frequency) calculation
Date: Wed, 7 Mar 2007 08:02:58 +0100 [thread overview]
Message-ID: <20070307070258.GA4397@moe.telargo.com> (raw)
(sorry if you receive this twice, MTA issues)
I tracked jiffies (on Linux) incrementing twice as fast on
lite5200b to this ("timebase-frequency" property).
G2 core reference manual says decrementer and time base
are decreasing/increasing once every 4 bus clock cycles.
Was there a reason this was busfreq/8?
Domen
---
include/configs/IceCube.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: u-boot.git/include/configs/IceCube.h
===================================================================
--- u-boot.git.orig/include/configs/IceCube.h
+++ u-boot.git/include/configs/IceCube.h
@@ -182,7 +182,7 @@
#define OF_CPU "PowerPC,5200 at 0"
#define OF_SOC "soc5200 at f0000000"
-#define OF_TBCLK (bd->bi_busfreq / 8)
+#define OF_TBCLK (bd->bi_busfreq / 4)
#define OF_STDOUT_PATH "/soc5200 at f0000000/serial at 2000"
/*
next reply other threads:[~2007-03-07 7:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-07 7:02 Domen Puncer [this message]
2007-03-07 7:02 ` [U-Boot-Users] [RFC PATCH] icecube/lite5200b: fix OF_TBCLK (timebase-frequency) calculation Domen Puncer
2007-03-07 16:25 ` Grant Likely
2007-03-07 16:25 ` [U-Boot-Users] " Grant Likely
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=20070307070258.GA4397@moe.telargo.com \
--to=domen.puncer@telargo.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=u-boot-users@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.