From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 2 Apr 2009 12:57:03 +0200 Subject: [U-Boot] [PATCH 13/13] Blackfin: force all boards to HZ of 1000 In-Reply-To: <1238669138-5338-14-git-send-email-vapier@gentoo.org> References: <1238669138-5338-1-git-send-email-vapier@gentoo.org> <1238669138-5338-14-git-send-email-vapier@gentoo.org> Message-ID: <20090402105703.GF889@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06:45 Thu 02 Apr , Mike Frysinger wrote: > Since the Blackfin timer code requires HZ to be 1000, barf on any board > that tries to use a different value. > > Signed-off-by: Mike Frysinger > --- > include/asm-blackfin/blackfin-config-post.h | 8 ++++++-- > 1 files changed, 6 insertions(+), 2 deletions(-) > > diff --git a/include/asm-blackfin/blackfin-config-post.h b/include/asm-blackfin/blackfin-config-post.h > index fea4737..623fdc7 100644 > --- a/include/asm-blackfin/blackfin-config-post.h > +++ b/include/asm-blackfin/blackfin-config-post.h > @@ -135,9 +135,13 @@ > #ifndef CONFIG_SYS_MAXARGS > # define CONFIG_SYS_MAXARGS 16 > #endif > -#ifndef CONFIG_SYS_HZ > -# define CONFIG_SYS_HZ 1000 > +#if defined(CONFIG_SYS_HZ) > +# if (CONFIG_SYS_HZ != 1000) > +# warning "CONFIG_SYS_HZ must always be 1000" > +# endif > +# undef CONFIG_SYS_HZ does this is really necessary? > #endif > +#define CONFIG_SYS_HZ 1000 why not asm-blackfin/config.h? Best Regards, J.