All of lore.kernel.org
 help / color / mirror / Atom feed
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 11:07:41 -0600	[thread overview]
Message-ID: <4553605D.5070205@freescale.com> (raw)
In-Reply-To: <eivm63$njd$1@sea.gmane.org>

David Updegraff wrote:
> Hi.
> 
> Might it be nice if FT could use the calculated -- more likely to be
> correct timebase value?

Wouldn't it be better to change get_tbclk() to look like this?

unsigned long get_tbclk(void)
{
#ifdef OF_TBCLK
	return OF_TBCLK
#else
	ulong tbclk;

	tbclk = (gd->bus_clk + 3L) / 4L;

	return tbclk;
#endif
}

And then change the ft_build.c code to always call get_tbclk()?

I haven't tried compiling the above code, but I think you all get the idea.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

  reply	other threads:[~2006-11-09 17:07 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 [this message]
2006-11-09 17:28   ` Scott Wood
2006-11-09 21:23     ` Timur Tabi
2006-11-09 23:15     ` Timur Tabi
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=4553605D.5070205@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.