From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] flat tree clock setting
Date: Thu, 09 Nov 2006 17:15:38 -0600 [thread overview]
Message-ID: <4553B69A.4030409@freescale.com> (raw)
In-Reply-To: <4553652A.1040606@freescale.com>
Scott Wood wrote:
> Are there any boards on which OF_TBCLK is (properly) set to something
> other than what get_tbclk() returns (ignoring the difference in
> rounding)? I don't see any, nor can I think of a reason why such a
> difference should ever exist. Perhaps OF_TBCLK should just be removed?
Ok, I've done some more digging.
On PPC, bd->bi_busfreq is the same as gd->bus_clk. In fact, there are a bunch
of clocks in bd that are equal to similar values in gd. The bd_t contains
info that is passed to non-openfirmware versions of Linux, and the gd_t
contains just general globally-defined data.
My guess is that anything which isn't directly used to boot non-OF Linux
should use the gd structure. So get_tbclk() does the right thing (although
the rounding could be wrong), but OF_TBCLK should probably use gd->bus_clk.
--
Timur Tabi
Linux Kernel Developer @ Freescale
next prev parent reply other threads:[~2006-11-09 23:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-09 16:49 [U-Boot-Users] flat tree clock setting David Updegraff
2006-11-09 17:07 ` Timur Tabi
2006-11-09 17:28 ` Scott Wood
2006-11-09 21:23 ` Timur Tabi
2006-11-09 23:15 ` Timur Tabi [this message]
2006-11-09 17:08 ` Wolfgang Denk
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=4553B69A.4030409@freescale.com \
--to=timur@freescale.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 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.