aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf561/include/mach/bf561.h
diff options
context:
space:
mode:
authorRobin Getz <rgetz@blackfin.uclinux.org>2008-10-10 18:21:45 +0800
committerBryan Wu <cooloney@kernel.org>2008-10-10 18:21:45 +0800
commite482cad241c0b7108cbc94959307a73d19ba17d5 (patch)
tree7cde7e1af828d74d55ec059d1955c5129b89a892 /arch/blackfin/mach-bf561/include/mach/bf561.h
parentBlackfin arch: remove non-bf54x ifdef logic since this file is only compiled on bf54x parts (diff)
downloadlinux-dev-e482cad241c0b7108cbc94959307a73d19ba17d5.tar.xz
linux-dev-e482cad241c0b7108cbc94959307a73d19ba17d5.zip
Blackfin arch: print out error/warning if you are running on the incorrect CPU type
Signed-off-by: Robin Getz <rgetz@blackfin.uclinux.org> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to '')
-rw-r--r--arch/blackfin/mach-bf561/include/mach/bf561.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/blackfin/mach-bf561/include/mach/bf561.h b/arch/blackfin/mach-bf561/include/mach/bf561.h
index 7787caad3555..18b1b3a223ab 100644
--- a/arch/blackfin/mach-bf561/include/mach/bf561.h
+++ b/arch/blackfin/mach-bf561/include/mach/bf561.h
@@ -211,11 +211,11 @@
#ifdef CONFIG_BF561
#define CPU "BF561"
-#define CPUID 0x027bb000
+#define CPUID 0x27bb
#endif
+
#ifndef CPU
-#define CPU "UNKNOWN"
-#define CPUID 0x0
+#error Unknown CPU type - This kernel doesn't seem to be configured properly
#endif
#endif /* __MACH_BF561_H__ */