aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-arm/arch-at91rm9200/system.h
diff options
context:
space:
mode:
authorAndrew Victor <andrew@sanpeople.com>2006-06-19 18:16:46 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-06-19 18:16:46 +0100
commit82dc0772a892f8b430a2d567c981fe47a11489c3 (patch)
treedb9e2e86f91e817ae1ad8e4478d402f1316edc2a /include/asm-arm/arch-at91rm9200/system.h
parent067bbada4cc574eaa4fa577483ecae4012049477 (diff)
downloadkernel_samsung_tuna-82dc0772a892f8b430a2d567c981fe47a11489c3.zip
kernel_samsung_tuna-82dc0772a892f8b430a2d567c981fe47a11489c3.tar.gz
kernel_samsung_tuna-82dc0772a892f8b430a2d567c981fe47a11489c3.tar.bz2
[ARM] 3590/1: AT91RM9200 Platform devices support
Patch from Andrew Victor This patch includes the structures and exported functions required for the platform-device support (added in patch 3585/1). Also adds the arch_identify() function for run-time detection of which AT91 processor the code is running on. [Original patch from Ivan Kokshaysky] Signed-off-by: Andrew Victor <andrew@sanpeople.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-at91rm9200/system.h')
-rw-r--r--include/asm-arm/arch-at91rm9200/system.h8
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 29c4265..945e665 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)
at91_sys_write(AT91_ST_CR, AT91_ST_WDRST);
}
+#define ARCH_ID_AT91RM9200 0x09200080
+#define ARCH_ID_AT91SAM9261 0x019000a0
+
+static inline unsigned long arch_identify(void)
+{
+ return at91_sys_read(AT91_DBGU_CIDR) & (AT91_CIDR_EPROC | AT91_CIDR_ARCH);
+}
+
#endif