diff options
author | Robin Getz <rgetz@blackfin.uclinux.org> | 2008-10-10 06:21:45 -0400 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2008-10-10 06:21:45 -0400 |
commit | e482cad241c0b7108cbc94959307a73d19ba17d5 (patch) | |
tree | 7cde7e1af828d74d55ec059d1955c5129b89a892 /arch/blackfin/mach-bf533 | |
parent | 6d0b8c993dc0a26fe7a9ee8b839d1964bd0debd4 (diff) |
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')
-rw-r--r-- | arch/blackfin/mach-bf533/include/mach/bf533.h | 10 |
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 @@ | |||
141 | 141 | ||
142 | #ifdef CONFIG_BF533 | 142 | #ifdef CONFIG_BF533 |
143 | #define CPU "BF533" | 143 | #define CPU "BF533" |
144 | #define CPUID 0x027a5000 | 144 | #define CPUID 0x27a5 |
145 | #endif | 145 | #endif |
146 | #ifdef CONFIG_BF532 | 146 | #ifdef CONFIG_BF532 |
147 | #define CPU "BF532" | 147 | #define CPU "BF532" |
148 | #define CPUID 0x0275A000 | 148 | #define CPUID 0x275A |
149 | #endif | 149 | #endif |
150 | #ifdef CONFIG_BF531 | 150 | #ifdef CONFIG_BF531 |
151 | #define CPU "BF531" | 151 | #define CPU "BF531" |
152 | #define CPUID 0x027a5000 | 152 | #define CPUID 0x27a5 |
153 | #endif | 153 | #endif |
154 | |||
154 | #ifndef CPU | 155 | #ifndef CPU |
155 | #define CPU "UNKNOWN" | 156 | #error Unknown CPU type - This kernel doesn't seem to be configured properly |
156 | #define CPUID 0x0 | ||
157 | #endif | 157 | #endif |
158 | 158 | ||
159 | #endif /* __MACH_BF533_H__ */ | 159 | #endif /* __MACH_BF533_H__ */ |