From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] at91: change CONFIG_SYS_HZ to 1000
Date: Wed, 11 Mar 2009 15:44:30 +0100 [thread overview]
Message-ID: <20090311144430.GD12700@game.jcrosoft.org> (raw)
In-Reply-To: <1235527085-23900-1-git-send-email-dv@vollmann.ch>
On 02:58 Wed 25 Feb , Detlef Vollmann wrote:
> Change at91 CPUs based on arm926ejs to return milliseconds
> from get_timer and get_ticks. Also changes in the value of
> CONFIG_SYS_HZ to 1000 in all board configs using these CPUs.
> This will not compile on boards using these CPUs with a
> different value for CONFIG_SYS_HZ.
>
>
> Signed-off-by: Detlef Vollmann <dv@vollmann.ch>
> ---
> cpu/arm926ejs/at91/timer.c | 37 +++++++++++++++++++++++++++++++++----
> include/configs/afeb9260.h | 2 +-
> include/configs/at91cap9adk.h | 2 +-
> include/configs/at91sam9260ek.h | 2 +-
> include/configs/at91sam9261ek.h | 2 +-
> include/configs/at91sam9263ek.h | 2 +-
> include/configs/at91sam9rlek.h | 2 +-
> 7 files changed, 39 insertions(+), 10 deletions(-)
>
> diff --git a/cpu/arm926ejs/at91/timer.c b/cpu/arm926ejs/at91/timer.c
> index fec545b..0a38a4f 100644
> --- a/cpu/arm926ejs/at91/timer.c
> +++ b/cpu/arm926ejs/at91/timer.c
> @@ -30,6 +30,19 @@
> #include <asm/arch/io.h>
>
> /*
> + * This code essentially ignores the settings of AT91_MASTER_CLOCK
> + * and CONFIG_SYS_HZ, so we just bail out if they're not set to
> + * the canonical values.
> + */
> +#if (CONFIG_SYS_HZ != 1000)
> +#error "CONFIG_SYS_HZ must be set to 1000 for this CPU"
> +#endif
no need please remove
> +/* We leave some leeway for the master clock... */
> +#if (AT91_MASTER_CLOCK < 85000000) || (AT91_MASTER_CLOCK > 115000000)
> +#error "AT91_MASTER_CLOCK must be set to 100000000 for this CPU"
> +#endif
why?
Best Regards,
J.
next prev parent reply other threads:[~2009-03-11 14:44 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-25 1:58 [U-Boot] [PATCH v2] at91: change CONFIG_SYS_HZ to 1000 Detlef Vollmann
2009-03-11 14:44 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-03-12 21:07 ` Detlef Vollmann
2009-03-12 21:36 ` Wolfgang Denk
2009-03-13 15:38 ` Sergey Lapin
2009-04-02 19:11 ` Eric BENARD
2009-04-02 19:06 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-02 19:47 ` Eric BENARD
2009-04-03 13:15 ` Detlef Vollmann
2009-04-03 13:20 ` Eric BENARD
2009-04-03 13:21 ` Jean-Christophe PLAGNIOL-VILLARD
2009-04-03 14:12 ` Eric BENARD
2009-04-03 14:46 ` Detlef Vollmann
2009-04-03 14:44 ` Jean-Christophe PLAGNIOL-VILLARD
[not found] ` <49D6271A.1010205@free.fr>
2009-04-03 15:49 ` Detlef Vollmann
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=20090311144430.GD12700@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