diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-03-30 20:56:45 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-04-02 06:42:26 -0400 |
commit | 40587701924aa0afc86b3840421b4cc6de42c748 (patch) | |
tree | 3b725858cc2ef5f73f5ee50694f576182a257fd4 /include | |
parent | f4032d2eec9d71a59c6c724671e577f67a76839b (diff) | |
download | bootable_bootloader_goldelico_gta04-40587701924aa0afc86b3840421b4cc6de42c748.zip bootable_bootloader_goldelico_gta04-40587701924aa0afc86b3840421b4cc6de42c748.tar.gz bootable_bootloader_goldelico_gta04-40587701924aa0afc86b3840421b4cc6de42c748.tar.bz2 |
Blackfin: force all boards to HZ of 1000
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>
Diffstat (limited to 'include')
-rw-r--r-- | 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 #endif +#define CONFIG_SYS_HZ 1000 #ifndef CONFIG_SYS_BAUDRATE_TABLE # define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } #endif |