Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include Add Armada XP specific IDs and registers.



details:   https://anonhg.NetBSD.org/src/rev/bf4037008928
branches:  trunk
changeset: 786556:bf4037008928
user:      rkujawa <rkujawa%NetBSD.org@localhost>
date:      Wed May 01 12:51:27 2013 +0000

description:
Add Armada XP specific IDs and registers.

Obtained from Marvell, Semihalf.

diffstat:

 sys/arch/arm/include/armreg.h |  17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (38 lines):

diff -r 8852aa307aa3 -r bf4037008928 sys/arch/arm/include/armreg.h
--- a/sys/arch/arm/include/armreg.h     Wed May 01 12:45:31 2013 +0000
+++ b/sys/arch/arm/include/armreg.h     Wed May 01 12:51:27 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: armreg.h,v 1.75 2013/04/28 11:51:41 kiyohara Exp $     */
+/*     $NetBSD: armreg.h,v 1.76 2013/05/01 12:51:27 rkujawa Exp $      */
 
 /*
  * Copyright (c) 1998, 2001 Ben Harris
@@ -244,6 +244,18 @@
 #define        CPU_ID_IXP425_533       0x690541c0
 #define        CPU_ID_IXP425_400       0x690541d0
 #define        CPU_ID_IXP425_266       0x690541f0
+#define CPU_ID_MV88SV58XX_P(n) ((n & 0xff0fff00) == 0x560f5800)
+#define CPU_ID_MV88SV581X_V6   0x560f5810 /* Marvell Sheeva 88SV581x v6 Core */
+#define CPU_ID_MV88SV581X_V7   0x561f5810 /* Marvell Sheeva 88SV581x v7 Core */
+#define CPU_ID_MV88SV584X_V6   0x561f5840 /* Marvell Sheeva 88SV584x v6 Core */
+#define CPU_ID_MV88SV584X_V7   0x562f5840 /* Marvell Sheeva 88SV584x v7 Core */
+/* Marvell's CPUIDs with ARM ID in implementor field */
+#define CPU_ID_ARM_88SV581X_V6 0x410fb760 /* Marvell Sheeva 88SV581x v6 Core */
+#define CPU_ID_ARM_88SV581X_V7 0x413fc080 /* Marvell Sheeva 88SV581x v7 Core */
+#define CPU_ID_ARM_88SV584X_V6 0x410fb020 /* Marvell Sheeva 88SV584x v6 Core */
+
+/* CPUID registers */
+#define ARM_PFR0_THUMBEE_MASK  0x0000f000
 
 /* ARM3-specific coprocessor 15 registers */
 #define ARM3_CP15_FLUSH                1
@@ -381,6 +393,9 @@
 #define        MPCORE_AUXCTL_EX        0x00000010 /* exclusive L1/L2 cache */
 #define        MPCORE_AUXCTL_SA        0x00000020 /* SMP/AMP */
 
+/* Marvell PJ4B Auxillary Control Register */
+#define PJ4B_AUXCTL_SMPNAMP    0x00000040 /* SMP/AMP */
+
 /* Cortex-A9 Auxiliary Control Register (CP15 register 1, opcode 1) */
 #define        CORTEXA9_AUXCTL_FW      0x00000001 /* Cache and TLB updates broadcast */
 #define        CORTEXA9_AUXCTL_L2_PLD  0x00000002 /* Prefetch hint enable */



Home | Main Index | Thread Index | Old Index