diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-04-23 23:40:22 -0400 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-05-25 11:04:35 -0400 |
commit | e57556e3b6dcbf9b459cd503b061457b6ed1758f (patch) | |
tree | 460d002f98a81a3c53983c3129f7455d011afdc8 /arch/arm/mach-at91/include | |
parent | 3d51f259e819b49b3f88b594afcb044d1ffcda8a (diff) |
at91rm9200: introduce at91rm9200_set_type to specficy cpu package
as we can not detect it
by defaut the type will be bga
introduce cpu_is_at91rm9200_bga and cpu_is_at91rm9200_pqfp
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/include')
-rw-r--r-- | arch/arm/mach-at91/include/mach/cpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/cpu.h b/arch/arm/mach-at91/include/mach/cpu.h index 0700f2125305..ab00372ca045 100644 --- a/arch/arm/mach-at91/include/mach/cpu.h +++ b/arch/arm/mach-at91/include/mach/cpu.h | |||
@@ -90,9 +90,16 @@ static inline unsigned long at91cap9_rev_identify(void) | |||
90 | #endif | 90 | #endif |
91 | 91 | ||
92 | #ifdef CONFIG_ARCH_AT91RM9200 | 92 | #ifdef CONFIG_ARCH_AT91RM9200 |
93 | extern int rm9200_type; | ||
94 | #define ARCH_REVISON_9200_BGA (0 << 0) | ||
95 | #define ARCH_REVISON_9200_PQFP (1 << 0) | ||
93 | #define cpu_is_at91rm9200() (at91_cpu_identify() == ARCH_ID_AT91RM9200) | 96 | #define cpu_is_at91rm9200() (at91_cpu_identify() == ARCH_ID_AT91RM9200) |
97 | #define cpu_is_at91rm9200_bga() (!cpu_is_at91rm9200_pqfp()) | ||
98 | #define cpu_is_at91rm9200_pqfp() (cpu_is_at91rm9200() && rm9200_type & ARCH_REVISON_9200_PQFP) | ||
94 | #else | 99 | #else |
95 | #define cpu_is_at91rm9200() (0) | 100 | #define cpu_is_at91rm9200() (0) |
101 | #define cpu_is_at91rm9200_bga() (0) | ||
102 | #define cpu_is_at91rm9200_pqfp() (0) | ||
96 | #endif | 103 | #endif |
97 | 104 | ||
98 | #ifdef CONFIG_ARCH_AT91SAM9260 | 105 | #ifdef CONFIG_ARCH_AT91SAM9260 |