|
@@ -52,6 +52,7 @@ static inline unsigned long at91_cpu_fully_identify(void)
|
|
|
|
|
|
#define ARCH_EXID_AT91SAM9M11 0x00000001
|
|
|
#define ARCH_EXID_AT91SAM9M10 0x00000002
|
|
|
+#define ARCH_EXID_AT91SAM9G46 0x00000003
|
|
|
#define ARCH_EXID_AT91SAM9G45 0x00000004
|
|
|
|
|
|
static inline unsigned long at91_exid_identify(void)
|
|
@@ -128,9 +129,18 @@ static inline unsigned long at91cap9_rev_identify(void)
|
|
|
#ifdef CONFIG_ARCH_AT91SAM9G45
|
|
|
#define cpu_is_at91sam9g45() (at91_cpu_identify() == ARCH_ID_AT91SAM9G45)
|
|
|
#define cpu_is_at91sam9g45es() (at91_cpu_fully_identify() == ARCH_ID_AT91SAM9G45ES)
|
|
|
+#define cpu_is_at91sam9m10() (cpu_is_at91sam9g45() && \
|
|
|
+ (at91_exid_identify() == ARCH_EXID_AT91SAM9M10))
|
|
|
+#define cpu_is_at91sam9m46() (cpu_is_at91sam9g45() && \
|
|
|
+ (at91_exid_identify() == ARCH_EXID_AT91SAM9G46))
|
|
|
+#define cpu_is_at91sam9m11() (cpu_is_at91sam9g45() && \
|
|
|
+ (at91_exid_identify() == ARCH_EXID_AT91SAM9M11))
|
|
|
#else
|
|
|
#define cpu_is_at91sam9g45() (0)
|
|
|
#define cpu_is_at91sam9g45es() (0)
|
|
|
+#define cpu_is_at91sam9m10() (0)
|
|
|
+#define cpu_is_at91sam9g46() (0)
|
|
|
+#define cpu_is_at91sam9m11() (0)
|
|
|
#endif
|
|
|
|
|
|
#ifdef CONFIG_ARCH_AT91CAP9
|