Title: [5368] trunk/include/asm-blackfin: Make sure misconfigured kernel's error out, and set things for 526/524/523
- Revision
- 5368
- Author
- rgetz
- Date
- 2008-10-01 11:31:41 -0500 (Wed, 01 Oct 2008)
Log Message
Make sure misconfigured kernel's error out, and set things for 526/524/523
Modified Paths
Diff
Modified: trunk/include/asm-blackfin/mach-bf527/bf527.h (5367 => 5368)
--- trunk/include/asm-blackfin/mach-bf527/bf527.h 2008-10-01 14:16:27 UTC (rev 5367)
+++ trunk/include/asm-blackfin/mach-bf527/bf527.h 2008-10-01 16:31:41 UTC (rev 5368)
@@ -112,17 +112,29 @@
#define CPU "BF527"
#define CPUID 0x27e4
#endif
+#ifdef CONFIG_BF526
+#define CPU "BF526"
+#define CPUID 0x27e4
+#endif
#ifdef CONFIG_BF525
#define CPU "BF525"
#define CPUID 0x27e4
#endif
+#ifdef CONFIG_BF524
+#define CPU "BF524"
+#define CPUID 0x27e4
+#endif
+#ifdef CONFIG_BF523
+#define CPU "BF523"
+#define CPUID 0x27e4
+#endif
#ifdef CONFIG_BF522
#define CPU "BF522"
#define CPUID 0x27e4
#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_BF527_H__ */
Modified: trunk/include/asm-blackfin/mach-bf533/bf533.h (5367 => 5368)
--- trunk/include/asm-blackfin/mach-bf533/bf533.h 2008-10-01 14:16:27 UTC (rev 5367)
+++ trunk/include/asm-blackfin/mach-bf533/bf533.h 2008-10-01 16:31:41 UTC (rev 5368)
@@ -151,9 +151,9 @@
#define CPU "BF531"
#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__ */
Modified: trunk/include/asm-blackfin/mach-bf537/bf537.h (5367 => 5368)
--- trunk/include/asm-blackfin/mach-bf537/bf537.h 2008-10-01 14:16:27 UTC (rev 5367)
+++ trunk/include/asm-blackfin/mach-bf537/bf537.h 2008-10-01 16:31:41 UTC (rev 5368)
@@ -131,9 +131,9 @@
#define CPU "BF534"
#define CPUID 0x27c6
#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_BF537_H__ */
Modified: trunk/include/asm-blackfin/mach-bf548/bf548.h (5367 => 5368)
--- trunk/include/asm-blackfin/mach-bf548/bf548.h 2008-10-01 14:16:27 UTC (rev 5367)
+++ trunk/include/asm-blackfin/mach-bf548/bf548.h 2008-10-01 16:31:41 UTC (rev 5368)
@@ -119,9 +119,10 @@
#elif defined(CONFIG_BF549)
# define CPU "BF549"
# define CPUID 0x27de
-#else
-# define CPU "UNKNOWN"
-# define CPUID 0x0
#endif
+#ifndef CPU
+#error Unknown CPU type - This kernel doesn't seem to be configured properly
+#endif
+
#endif /* __MACH_BF48_H__ */
Modified: trunk/include/asm-blackfin/mach-bf561/bf561.h (5367 => 5368)
--- trunk/include/asm-blackfin/mach-bf561/bf561.h 2008-10-01 14:16:27 UTC (rev 5367)
+++ trunk/include/asm-blackfin/mach-bf561/bf561.h 2008-10-01 16:31:41 UTC (rev 5368)
@@ -213,9 +213,9 @@
#define CPU "BF561"
#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__ */
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits