diff options
Diffstat (limited to 'arch/arm/mach-at91/include/mach/cpu.h')
-rw-r--r-- | arch/arm/mach-at91/include/mach/cpu.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/arm/mach-at91/include/mach/cpu.h b/arch/arm/mach-at91/include/mach/cpu.h index 0700f2125305..df966c2bc2d4 100644 --- a/arch/arm/mach-at91/include/mach/cpu.h +++ b/arch/arm/mach-at91/include/mach/cpu.h | |||
@@ -34,8 +34,6 @@ | |||
34 | #define ARCH_ID_AT91SAM9XE256 0x329a93a0 | 34 | #define ARCH_ID_AT91SAM9XE256 0x329a93a0 |
35 | #define ARCH_ID_AT91SAM9XE512 0x329aa3a0 | 35 | #define ARCH_ID_AT91SAM9XE512 0x329aa3a0 |
36 | 36 | ||
37 | #define ARCH_ID_AT572D940HF 0x0e0303e0 | ||
38 | |||
39 | #define ARCH_ID_AT91M40800 0x14080044 | 37 | #define ARCH_ID_AT91M40800 0x14080044 |
40 | #define ARCH_ID_AT91R40807 0x44080746 | 38 | #define ARCH_ID_AT91R40807 0x44080746 |
41 | #define ARCH_ID_AT91M40807 0x14080745 | 39 | #define ARCH_ID_AT91M40807 0x14080745 |
@@ -90,9 +88,16 @@ static inline unsigned long at91cap9_rev_identify(void) | |||
90 | #endif | 88 | #endif |
91 | 89 | ||
92 | #ifdef CONFIG_ARCH_AT91RM9200 | 90 | #ifdef CONFIG_ARCH_AT91RM9200 |
91 | extern int rm9200_type; | ||
92 | #define ARCH_REVISON_9200_BGA (0 << 0) | ||
93 | #define ARCH_REVISON_9200_PQFP (1 << 0) | ||
93 | #define cpu_is_at91rm9200() (at91_cpu_identify() == ARCH_ID_AT91RM9200) | 94 | #define cpu_is_at91rm9200() (at91_cpu_identify() == ARCH_ID_AT91RM9200) |
95 | #define cpu_is_at91rm9200_bga() (!cpu_is_at91rm9200_pqfp()) | ||
96 | #define cpu_is_at91rm9200_pqfp() (cpu_is_at91rm9200() && rm9200_type & ARCH_REVISON_9200_PQFP) | ||
94 | #else | 97 | #else |
95 | #define cpu_is_at91rm9200() (0) | 98 | #define cpu_is_at91rm9200() (0) |
99 | #define cpu_is_at91rm9200_bga() (0) | ||
100 | #define cpu_is_at91rm9200_pqfp() (0) | ||
96 | #endif | 101 | #endif |
97 | 102 | ||
98 | #ifdef CONFIG_ARCH_AT91SAM9260 | 103 | #ifdef CONFIG_ARCH_AT91SAM9260 |
@@ -181,12 +186,6 @@ static inline unsigned long at91cap9_rev_identify(void) | |||
181 | #define cpu_is_at91cap9_revC() (0) | 186 | #define cpu_is_at91cap9_revC() (0) |
182 | #endif | 187 | #endif |
183 | 188 | ||
184 | #ifdef CONFIG_ARCH_AT572D940HF | ||
185 | #define cpu_is_at572d940hf() (at91_cpu_identify() == ARCH_ID_AT572D940HF) | ||
186 | #else | ||
187 | #define cpu_is_at572d940hf() (0) | ||
188 | #endif | ||
189 | |||
190 | /* | 189 | /* |
191 | * Since this is ARM, we will never run on any AVR32 CPU. But these | 190 | * Since this is ARM, we will never run on any AVR32 CPU. But these |
192 | * definitions may reduce clutter in common drivers. | 191 | * definitions may reduce clutter in common drivers. |