From 0ef9a886d3d8bd468800ee3d6aadac2231359501 Mon Sep 17 00:00:00 2001
From: root <root@openeuleropenstack.dev01>
Date: Thu, 4 Feb 2021 17:35:46 +0800
Subject: [PATCH] add phytium 2000plus and s2500 support on arm architecture
 for capability

---
 src/cpu_map/Makefile.inc.am       | 2 ++
 src/cpu_map/arm_FT-2000plus.xml   | 6 ++++++
 src/cpu_map/arm_Tengyun-S2500.xml | 6 ++++++
 src/cpu_map/arm_vendors.xml       | 1 +
 src/cpu_map/index.xml             | 4 ++++
 5 files changed, 19 insertions(+)
 create mode 100644 src/cpu_map/arm_FT-2000plus.xml
 create mode 100644 src/cpu_map/arm_Tengyun-S2500.xml

diff --git a/src/cpu_map/Makefile.inc.am b/src/cpu_map/Makefile.inc.am
index 8663877b97..ab5268d94f 100644
--- a/src/cpu_map/Makefile.inc.am
+++ b/src/cpu_map/Makefile.inc.am
@@ -72,6 +72,8 @@ cpumap_DATA = \
 	cpu_map/arm_cortex-a57.xml \
 	cpu_map/arm_cortex-a72.xml \
 	cpu_map/arm_Kunpeng-920.xml \
+	cpu_map/arm_FT-2000plus.xml \
+	cpu_map/arm_Tengyun-S2500.xml \
 	$(NULL)
 
 EXTRA_DIST += $(cpumap_DATA)
diff --git a/src/cpu_map/arm_FT-2000plus.xml b/src/cpu_map/arm_FT-2000plus.xml
new file mode 100644
index 0000000000..b532f65f68
--- /dev/null
+++ b/src/cpu_map/arm_FT-2000plus.xml
@@ -0,0 +1,6 @@
+<cpus>
+  <model name='FT-2000+'>
+    <vendor name='Phytium'/>
+    <pvr value='0x662'/>
+  </model>
+</cpus>
diff --git a/src/cpu_map/arm_Tengyun-S2500.xml b/src/cpu_map/arm_Tengyun-S2500.xml
new file mode 100644
index 0000000000..22b865e368
--- /dev/null
+++ b/src/cpu_map/arm_Tengyun-S2500.xml
@@ -0,0 +1,6 @@
+<cpus>
+  <model name='Tengyun-S2500'>
+    <vendor name='Phytium'/>
+    <pvr value='0x663'/>
+  </model>
+</cpus>
diff --git a/src/cpu_map/arm_vendors.xml b/src/cpu_map/arm_vendors.xml
index 840bf9a2f8..05175495a0 100644
--- a/src/cpu_map/arm_vendors.xml
+++ b/src/cpu_map/arm_vendors.xml
@@ -11,4 +11,5 @@
   <vendor name="Qualcomm" value="0x51"/>
   <vendor name="Marvell" value="0x56"/>
   <vendor name="Intel" value="0x69"/>
+  <vendor name='Phytium' value='0x70'/>
 </cpus>
diff --git a/src/cpu_map/index.xml b/src/cpu_map/index.xml
index 985af86ba2..672d0a3c92 100644
--- a/src/cpu_map/index.xml
+++ b/src/cpu_map/index.xml
@@ -95,5 +95,9 @@
 
     <!-- Hisilicon-based CPU models -->
     <include filename="arm_Kunpeng-920.xml"/>
+
+    <!-- Phytium-based CPU models -->
+    <include filename='arm_FT-2000plus.xml'/>
+    <include filename='arm_Tengyun-S2500.xml'/>
   </arch>
 </cpus>
-- 
2.27.0

