summaryrefslogtreecommitdiff
path: root/arch/sparc/include/asm/spitfire.h
diff options
context:
space:
mode:
authorAllen Pais <allen.pais@oracle.com>2017-07-24 11:44:17 +0530
committerDavid S. Miller <davem@davemloft.net>2017-08-04 11:08:52 -0700
commit9e48cd4a77d5170433a2e611eeda7accdf96604d (patch)
treed2bc70db3b215bb24eea65a2e500119a6a286a7b /arch/sparc/include/asm/spitfire.h
parent0a23ea65ce9f10ec2ea392571006b781b150327f (diff)
sparc64: properly name the cpu constants
Acked-by: Sam Ravnborg <sam@ravnborg.org> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Allen Pais <allen.pais@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/spitfire.h')
-rw-r--r--arch/sparc/include/asm/spitfire.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/spitfire.h b/arch/sparc/include/asm/spitfire.h
index 1d8321c827a8..9cc2afe10ef0 100644
--- a/arch/sparc/include/asm/spitfire.h
+++ b/arch/sparc/include/asm/spitfire.h
@@ -51,6 +51,20 @@
#define SUN4V_CHIP_SPARC_SN 0x8b
#define SUN4V_CHIP_UNKNOWN 0xff
+/*
+ * The following CPU_ID_xxx constants are used
+ * to identify the CPU type in the setup phase
+ * (see head_64.S)
+ */
+#define CPU_ID_NIAGARA1 ('1')
+#define CPU_ID_NIAGARA2 ('2')
+#define CPU_ID_NIAGARA3 ('3')
+#define CPU_ID_NIAGARA4 ('4')
+#define CPU_ID_NIAGARA5 ('5')
+#define CPU_ID_M6 ('6')
+#define CPU_ID_M7 ('7')
+#define CPU_ID_SONOMA1 ('N')
+
#ifndef __ASSEMBLY__
enum ultra_tlb_layout {