summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91reg.h
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2012-04-14 11:29:32 +0000
committermarius <marius@FreeBSD.org>2012-04-14 11:29:32 +0000
commit66d2871df69a621930bf7f4f1e1ef7b3c0783fbd (patch)
tree4908977fa8141011dcfebe56b3f63f47b9601c1b /sys/arm/at91/at91reg.h
parent6f1427f0e6858c5b6314fd26478c3a8b3572c0a1 (diff)
downloadFreeBSD-src-66d2871df69a621930bf7f4f1e1ef7b3c0783fbd.zip
FreeBSD-src-66d2871df69a621930bf7f4f1e1ef7b3c0783fbd.tar.gz
- Try to bring these files closer to style(9).
- Use DEVMETHOD_END. - Use NULL instead of 0 for pointers.
Diffstat (limited to 'sys/arm/at91/at91reg.h')
-rw-r--r--sys/arm/at91/at91reg.h45
1 files changed, 23 insertions, 22 deletions
diff --git a/sys/arm/at91/at91reg.h b/sys/arm/at91/at91reg.h
index 03e31cb..9c652f5 100644
--- a/sys/arm/at91/at91reg.h
+++ b/sys/arm/at91/at91reg.h
@@ -28,43 +28,44 @@
*/
#ifndef _AT91REG_H_
-#define _AT91REG_H_
+#define _AT91REG_H_
#include "opt_at91.h"
/* Where builtin peripherals start in KVM */
-#define AT91_BASE 0xd0000000
+#define AT91_BASE 0xd0000000
/* A few things that we count on being the same
* throught the whole family of SOCs */
/* SYSC System Controler */
/* System Registers */
-#define AT91_SYS_BASE 0xffff000
-#define AT91_SYS_SIZE 0x1000
+#define AT91_SYS_BASE 0xffff000
+#define AT91_SYS_SIZE 0x1000
#if defined(AT91SAM9G45) || defined(AT91SAM9263)
-#define AT91_DBGU_BASE 0xfffee00
+#define AT91_DBGU_BASE 0xfffee00
#else
-#define AT91_DBGU_BASE 0xffff200
+#define AT91_DBGU_BASE 0xffff200
#endif
-#define AT91_DBGU_SIZE 0x200
-#define DBGU_C1R (64) /* Chip ID1 Register */
-#define DBGU_C2R (68) /* Chip ID2 Register */
-#define DBGU_FNTR (72) /* Force NTRST Register */
+#define AT91_DBGU_SIZE 0x200
+#define DBGU_C1R (64) /* Chip ID1 Register */
+#define DBGU_C2R (68) /* Chip ID2 Register */
+#define DBGU_FNTR (72) /* Force NTRST Register */
-#define AT91_CPU_VERSION_MASK 0x0000001f
-#define AT91_CPU_RM9200 0x09290780
-#define AT91_CPU_SAM9260 0x019803a0
-#define AT91_CPU_SAM9261 0x019703a0
-#define AT91_CPU_SAM9263 0x019607a0
-#define AT91_CPU_SAM9G10 0x819903a0
-#define AT91_CPU_SAM9G20 0x019905a0
-#define AT91_CPU_SAM9G45 0x819b05a0
+#define AT91_CPU_VERSION_MASK 0x0000001f
+#define AT91_CPU_RM9200 0x09290780
+#define AT91_CPU_SAM9260 0x019803a0
+#define AT91_CPU_SAM9261 0x019703a0
+#define AT91_CPU_SAM9263 0x019607a0
+#define AT91_CPU_SAM9G10 0x819903a0
+#define AT91_CPU_SAM9G20 0x019905a0
+#define AT91_CPU_SAM9G45 0x819b05a0
-#define AT91_ARCH(chipid) ((chipid >> 20) & 0xff)
-#define AT91_CPU(chipid) (chipid & ~AT91_CPU_VERSION_MASK)
-#define AT91_ARCH_SAM9 (0x19)
-#define AT91_ARCH_RM92 (0x92)
+#define AT91_ARCH(chipid) ((chipid >> 20) & 0xff)
+#define AT91_CPU(chipid) (chipid & ~AT91_CPU_VERSION_MASK)
+#define AT91_ARCH_SAM9 (0x19)
+#define AT91_ARCH_SAM9XE (0x29)
+#define AT91_ARCH_RM92 (0x92)
#endif /* _AT91REG_H_ */
OpenPOWER on IntegriCloud