diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-06-20 14:48:18 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-06-20 14:48:18 -0400 |
commit | 695a9d236a6fd5a60557a02eff612880c37fe731 (patch) | |
tree | 0ca809031f5f7139568914fe73ab5e244532aaf8 /include/asm-arm/arch-at91rm9200/system.h | |
parent | c322e24b40b83bbdfa7c269bc0105e76a39e627f (diff) | |
parent | 55c20c0af7fe7d5d09af4addfafcfe3bdc500f5d (diff) |
Merge AT91 branch
Diffstat (limited to 'include/asm-arm/arch-at91rm9200/system.h')
-rw-r--r-- | include/asm-arm/arch-at91rm9200/system.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-arm/arch-at91rm9200/system.h b/include/asm-arm/arch-at91rm9200/system.h index 29c42655f05c..945e66507a78 100644 --- a/include/asm-arm/arch-at91rm9200/system.h +++ b/include/asm-arm/arch-at91rm9200/system.h | |||
@@ -48,4 +48,12 @@ static inline void arch_reset(char mode) | |||
48 | at91_sys_write(AT91_ST_CR, AT91_ST_WDRST); | 48 | at91_sys_write(AT91_ST_CR, AT91_ST_WDRST); |
49 | } | 49 | } |
50 | 50 | ||
51 | #define ARCH_ID_AT91RM9200 0x09200080 | ||
52 | #define ARCH_ID_AT91SAM9261 0x019000a0 | ||
53 | |||
54 | static inline unsigned long arch_identify(void) | ||
55 | { | ||
56 | return at91_sys_read(AT91_DBGU_CIDR) & (AT91_CIDR_EPROC | AT91_CIDR_ARCH); | ||
57 | } | ||
58 | |||
51 | #endif | 59 | #endif |