summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf533/include/mach
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-bf533/include/mach
parent6d0b8c993dc0a26fe7a9ee8b839d1964bd0debd4 (diff)
downloadblackbird-obmc-linux-e482cad241c0b7108cbc94959307a73d19ba17d5.tar.gz
blackbird-obmc-linux-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 'arch/blackfin/mach-bf533/include/mach')
-rw-r--r--arch/blackfin/mach-bf533/include/mach/bf533.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/blackfin/mach-bf533/include/mach/bf533.h b/arch/blackfin/mach-bf533/include/mach/bf533.h
index 949801112303..dfc8c1ad2d7a 100644
--- a/arch/blackfin/mach-bf533/include/mach/bf533.h
+++ b/arch/blackfin/mach-bf533/include/mach/bf533.h
@@ -141,19 +141,19 @@
#ifdef CONFIG_BF533
#define CPU "BF533"
-#define CPUID 0x027a5000
+#define CPUID 0x27a5
#endif
#ifdef CONFIG_BF532
#define CPU "BF532"
-#define CPUID 0x0275A000
+#define CPUID 0x275A
#endif
#ifdef CONFIG_BF531
#define CPU "BF531"
-#define CPUID 0x027a5000
+#define CPUID 0x27a5
#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_BF533_H__ */
OpenPOWER on IntegriCloud