diff options
author | Hong Xu <hong.xu@atmel.com> | 2012-04-17 02:26:30 -0400 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-04-27 13:39:43 -0400 |
commit | 02059684271079f96e2a7a4bdc7912f029997866 (patch) | |
tree | fdef124dd855b43a39cbca91647d81936511e5ed /arch/arm/mach-at91/include/mach/cpu.h | |
parent | 26690863e2c1fa4fee5f6137b219f4b8a1a02287 (diff) |
ARM: at91: Add machine header file for AT91SAM9N12 SoC
Signed-off-by: Hong Xu <hong.xu@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'arch/arm/mach-at91/include/mach/cpu.h')
-rw-r--r-- | arch/arm/mach-at91/include/mach/cpu.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/cpu.h b/arch/arm/mach-at91/include/mach/cpu.h index 73d2fd209ce4..b6504c19d55c 100644 --- a/arch/arm/mach-at91/include/mach/cpu.h +++ b/arch/arm/mach-at91/include/mach/cpu.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #define ARCH_ID_AT91SAM9G45MRL 0x819b05a2 /* aka 9G45-ES2 & non ES lots */ | 25 | #define ARCH_ID_AT91SAM9G45MRL 0x819b05a2 /* aka 9G45-ES2 & non ES lots */ |
26 | #define ARCH_ID_AT91SAM9G45ES 0x819b05a1 /* 9G45-ES (Engineering Sample) */ | 26 | #define ARCH_ID_AT91SAM9G45ES 0x819b05a1 /* 9G45-ES (Engineering Sample) */ |
27 | #define ARCH_ID_AT91SAM9X5 0x819a05a0 | 27 | #define ARCH_ID_AT91SAM9X5 0x819a05a0 |
28 | #define ARCH_ID_AT91SAM9N12 0x819a07a0 | ||
28 | 29 | ||
29 | #define ARCH_ID_AT91SAM9XE128 0x329973a0 | 30 | #define ARCH_ID_AT91SAM9XE128 0x329973a0 |
30 | #define ARCH_ID_AT91SAM9XE256 0x329a93a0 | 31 | #define ARCH_ID_AT91SAM9XE256 0x329a93a0 |
@@ -71,6 +72,9 @@ enum at91_soc_type { | |||
71 | /* SAM9X5 */ | 72 | /* SAM9X5 */ |
72 | AT91_SOC_SAM9X5, | 73 | AT91_SOC_SAM9X5, |
73 | 74 | ||
75 | /* SAM9N12 */ | ||
76 | AT91_SOC_SAM9N12, | ||
77 | |||
74 | /* Unknown type */ | 78 | /* Unknown type */ |
75 | AT91_SOC_NONE | 79 | AT91_SOC_NONE |
76 | }; | 80 | }; |
@@ -177,6 +181,12 @@ static inline int at91_soc_is_detected(void) | |||
177 | #define cpu_is_at91sam9x25() (0) | 181 | #define cpu_is_at91sam9x25() (0) |
178 | #endif | 182 | #endif |
179 | 183 | ||
184 | #ifdef CONFIG_SOC_AT91SAM9N12 | ||
185 | #define cpu_is_at91sam9n12() (at91_soc_initdata.type == AT91_SOC_SAM9N12) | ||
186 | #else | ||
187 | #define cpu_is_at91sam9n12() (0) | ||
188 | #endif | ||
189 | |||
180 | /* | 190 | /* |
181 | * Since this is ARM, we will never run on any AVR32 CPU. But these | 191 | * Since this is ARM, we will never run on any AVR32 CPU. But these |
182 | * definitions may reduce clutter in common drivers. | 192 | * definitions may reduce clutter in common drivers. |