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-bf548 | |
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-bf548')
-rw-r--r-- | arch/blackfin/mach-bf548/include/mach/bf548.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/arch/blackfin/mach-bf548/include/mach/bf548.h b/arch/blackfin/mach-bf548/include/mach/bf548.h index 14f8a7b84544..49f9b403d458 100644 --- a/arch/blackfin/mach-bf548/include/mach/bf548.h +++ b/arch/blackfin/mach-bf548/include/mach/bf548.h | |||
@@ -106,20 +106,23 @@ | |||
106 | 106 | ||
107 | #if defined(CONFIG_BF542) | 107 | #if defined(CONFIG_BF542) |
108 | # define CPU "BF542" | 108 | # define CPU "BF542" |
109 | # define CPUID 0x027c8000 | 109 | # define CPUID 0x27de |
110 | #elif defined(CONFIG_BF544) | 110 | #elif defined(CONFIG_BF544) |
111 | # define CPU "BF544" | 111 | # define CPU "BF544" |
112 | # define CPUID 0x027c8000 | 112 | # define CPUID 0x27de |
113 | #elif defined(CONFIG_BF547) | 113 | #elif defined(CONFIG_BF547) |
114 | # define CPU "BF547" | 114 | # define CPU "BF547" |
115 | # define CPUID 0x27de | ||
115 | #elif defined(CONFIG_BF548) | 116 | #elif defined(CONFIG_BF548) |
116 | # define CPU "BF548" | 117 | # define CPU "BF548" |
117 | # define CPUID 0x027c6000 | 118 | # define CPUID 0x27de |
118 | #elif defined(CONFIG_BF549) | 119 | #elif defined(CONFIG_BF549) |
119 | # define CPU "BF549" | 120 | # define CPU "BF549" |
120 | #else | 121 | # define CPUID 0x27de |
121 | # define CPU "UNKNOWN" | 122 | #endif |
122 | # define CPUID 0x0 | 123 | |
124 | #ifndef CPU | ||
125 | #error Unknown CPU type - This kernel doesn't seem to be configured properly | ||
123 | #endif | 126 | #endif |
124 | 127 | ||
125 | #endif /* __MACH_BF48_H__ */ | 128 | #endif /* __MACH_BF48_H__ */ |