Blackfin: force all boards to HZ of 1000
authorMike Frysinger <vapier@gentoo.org>
Tue, 31 Mar 2009 00:56:45 +0000 (20:56 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 2 Apr 2009 10:42:26 +0000 (06:42 -0400)
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 <vapier@gentoo.org>
include/asm-blackfin/blackfin-config-post.h

index fea4737..623fdc7 100644 (file)
 #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
 #endif
+#define CONFIG_SYS_HZ 1000
 #ifndef CONFIG_SYS_BAUDRATE_TABLE
 # define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
 #endif