From: Stefan Althoefer <stefan.althoefer@web.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] IXP425: Fixing timer code Part 1/1
Date: Tue, 16 Dec 2008 22:50:23 +0100 [thread overview]
Message-ID: <gi97oi$i57$1@ger.gmane.org> (raw)
In-Reply-To: <20081215232625.2BBDC832E8A1@gemini.denx.de>
Wolfgang Denk schrieb:
> Dear Stefan Althoefer,
>
> In message <49384728.LMggwd1oTzMugOAp%stefan.althoefer@web.de> you wrote:
>> With this patch, this is nonsense. Instead you should use:
>>
>> #ifdef CONFIG_USE_IRQ
>> /* Interrupt driven timer wants system tick here */
>> #define CONFIG_SYS_HZ 1000
>> #else
>> /* The code in cpu/ixp/timer.c needs timer clock tick in HZ */
>> #define CONFIG_SYS_HZ 66666666
>> #endif
>
> No, this is wrong. CONFIG_SYS_HZ should always be 1000, without
> exceptions.
>
> Best regards,
>
> Wolfgang Denk
>
Should I then hide the 66666666 in the code, or define something like
"#define CONFIG_SYS_CLK_FREQ 66666666" ?
In /cpu/ixp/interrupts.c "#define FREQ 66666666" is used privately,
but I don't like this. However, this frequency is the same for all
IXP clock speeds so it does not really need to be in the config file.
-- Stefan
next prev parent reply other threads:[~2008-12-16 21:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-04 21:10 [U-Boot] [PATCH] IXP425: Fixing timer code Part 1/1 Stefan Althoefer
2008-12-15 23:26 ` Wolfgang Denk
2008-12-16 21:50 ` Stefan Althoefer [this message]
2008-12-21 19:08 ` Stefan Althoefer
2009-01-04 7:40 ` 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='gi97oi$i57$1@ger.gmane.org' \
--to=stefan.althoefer@web.de \
--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