public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/9] openrisc: Add cpu files
Date: Tue, 22 Nov 2011 14:29:09 -0600	[thread overview]
Message-ID: <4ECC0615.6060104@freescale.com> (raw)
In-Reply-To: <201111221507.32945.marek.vasut@gmail.com>

On 11/22/2011 08:07 AM, Marek Vasut wrote:
>> On Tue, Nov 22, 2011 at 05:46:41AM +0100, Marek Vasut wrote:
>>>> On Mon, Nov 21, 2011 at 11:50:17PM +0100, Marek Vasut wrote:
>>>>>> +	printf("CPU:   OpenRISC-%x00 (rev %d) @ %d MHz\n",
>>>>>> +		ver, rev, (CONFIG_SYS_CLK_FREQ / 1000000));
>>>>>
>>>>> The CPU won't tell you it's speed ?
>>>>
>>>> Nope.
>>>
>>> That's weird, how do you calibrate delay then, using static setup ?
>>
>> You mean in Linux? CPU freq is passed in via the device tree.
> 
> I mean in u-boot, it seems weird for the CPU to be unable to tell you how fast 
> it runs.

You need some fixed reference, whether it be the crystal that is used to
generate the CPU clock, or some other clock on the board that you
measure the CPU clock against.  The CPU might be able to tell you what
multiplier it's using, or which of several input pins it's taking the
clock from, but not the base input frequency.

Look in include/config, you'll find lots of hardcoded CONFIG_SYS_CLK_FREQ.

-Scott

  reply	other threads:[~2011-11-22 20:29 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-19  5:21 [U-Boot] [PATCH 0/9] Add support for the OpenRISC architecture Stefan Kristiansson
2011-11-19  5:21 ` [U-Boot] [PATCH 1/9] openrisc: Add architecture header files Stefan Kristiansson
2011-11-19  6:06   ` Mike Frysinger
2011-11-19  5:21 ` [U-Boot] [PATCH 2/9] openrisc: Add architecture image support Stefan Kristiansson
2011-11-21 22:45   ` Marek Vasut
2011-11-22  9:43     ` [U-Boot] [PATCH] Fix clash between IH_ARCH_NDS32 and IH_ARCH_SANDBOX Stefan Kristiansson
2011-11-22 11:03       ` [U-Boot] 回覆: " macpaul at andestech.com
2011-11-22 14:15         ` Marek Vasut
2011-11-23  6:10         ` Macpaul Lin
2011-11-19  5:21 ` [U-Boot] [PATCH 3/9] openrisc: Add cpu files Stefan Kristiansson
2011-11-19  5:59   ` Mike Frysinger
2011-11-20  4:27     ` Stefan Kristiansson
2011-11-20  5:27       ` Mike Frysinger
2011-11-21 22:50   ` Marek Vasut
2011-11-22  3:51     ` Stefan Kristiansson
2011-11-22  4:46       ` Marek Vasut
2011-11-22  7:17         ` Stefan Kristiansson
2011-11-22 14:07           ` Marek Vasut
2011-11-22 20:29             ` Scott Wood [this message]
2011-11-22 20:54         ` Mike Frysinger
2011-11-19  5:21 ` [U-Boot] [PATCH 4/9] openrisc: Add library functions Stefan Kristiansson
2011-11-19  6:04   ` Mike Frysinger
2011-11-21 22:52   ` Marek Vasut
2011-11-22  4:19     ` Stefan Kristiansson
2011-11-22  4:48       ` Marek Vasut
2011-11-22  6:00         ` Stefan Kristiansson
2011-11-22 14:10           ` Marek Vasut
2011-11-19  5:21 ` [U-Boot] [PATCH 5/9] openrisc: Add board info printout to cmd_bdinfo Stefan Kristiansson
2011-11-21 22:53   ` Marek Vasut
2011-11-22  4:30     ` Stefan Kristiansson
2011-11-22  4:49       ` Marek Vasut
2011-11-19  5:21 ` [U-Boot] [PATCH 6/9] openrisc: Add support for standalone programs Stefan Kristiansson
2011-11-19  5:21 ` [U-Boot] [PATCH 7/9] openrisc: Add openrisc-generic example board Stefan Kristiansson
2011-11-19  5:21 ` [U-Boot] [PATCH 8/9] openrisc: Add architecture to MAKEALL Stefan Kristiansson
2011-11-19  5:21 ` [U-Boot] [PATCH 9/9] openrisc: Add MAINTAINERS entry Stefan Kristiansson
2011-11-21 22:54   ` Marek Vasut
2011-11-22  4:32     ` Stefan Kristiansson
2011-11-19  6:07 ` [U-Boot] [PATCH 0/9] Add support for the OpenRISC architecture Mike Frysinger
2011-11-19  7:23   ` Stefan Kristiansson

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=4ECC0615.6060104@freescale.com \
    --to=scottwood@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox