public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3] arm nomadik: use 1000 as HZ value and rewrite timer code
Date: Mon, 29 Jun 2009 22:25:21 +0200	[thread overview]
Message-ID: <20090629202521.GA22980@game.jcrosoft.org> (raw)
In-Reply-To: <20090629105237.GA11969@mail.gnudd.com>

On 12:52 Mon 29 Jun     , Alessandro Rubini wrote:
> From: Alessandro Rubini <rubini@unipv.it>
> 
> This sets CONFIG_SYS_HZ to 1000 as required, and completely rewrites
> timer code, which is now both correct and much smaller.  Unused
> functions like udelay_masked() have been removed as no driver uses
> them, even the ones that are not currently active for this board.
> mtu.h is copied literally from the kernel sources.
> 
> Signed-off-by: Alessandro Rubini <rubini@unipv.it>
> Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
> ---
> 
> I've used mtu.h from kernel sources and done the other changes as requested
> (the extra variable just to return it was a mishap from an earlier printf
> I needed to find a misconfig).
> 
> > for the record what is its precision now?
> 
> it counts at 2.4MHz, so the 1000HZ tick has no approximation and udelay
> is correct with sub-microsecond error. I'll use in soft_i2c, needed to
> turn on the LCD light.
> 
>  cpu/arm926ejs/nomadik/mtu.h   |   45 +++++++++++
if it's ok with I'll move it to include/asm-arm/arch-nomadik/

Best Regards,
J.

  reply	other threads:[~2009-06-29 20:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-22  9:18 [U-Boot] [PATCH 0/4 v2] Clean up the Nomadik board and add OneNand Alessandro Rubini
2009-06-22  9:18 ` [U-Boot] [PATCH 1/4 v2] arm nomadik: rename board to nhk8815 Alessandro Rubini
2009-06-22  9:18 ` [U-Boot] [PATCH 2/4 v2] arm nomadik: cleanup reset Alessandro Rubini
2009-06-22  9:18 ` [U-Boot] [PATCH 3/4 v2] arm nomadik: allow Nand and OneNand to coexists Alessandro Rubini
2009-06-22  9:19 ` [U-Boot] [PATCH 4/4 v2] arm nomadik: use 1000 as HZ value and rewrite timer code Alessandro Rubini
2009-06-25 21:46 ` [U-Boot] [PATCH 0/4 v2] Clean up the Nomadik board and add OneNand Jean-Christophe PLAGNIOL-VILLARD
     [not found] ` <6a60aa4cc4e40f72a235dd845d4d4a3f06f373b7.1245661681.git.rubini@unipv.it>
2009-06-27 22:02   ` [U-Boot] [PATCH 4/4 v2] arm nomadik: use 1000 as HZ value and rewrite timer code Jean-Christophe PLAGNIOL-VILLARD
2009-06-29 10:52     ` [U-Boot] [PATCH v3] " Alessandro Rubini
2009-06-29 20:25       ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-07-02 21:16 ` [U-Boot] [PATCH 0/4 v2] Clean up the Nomadik board and add OneNand Jean-Christophe PLAGNIOL-VILLARD

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=20090629202521.GA22980@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.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