forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/arch/arm64/include/asm/cpu.h
....@@ -1,17 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2014 ARM Ltd.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
12
- *
13
- * You should have received a copy of the GNU General Public License
14
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
154 */
165 #ifndef __ASM_CPU_H
176 #define __ASM_CPU_H
....@@ -23,6 +12,31 @@
2312 /*
2413 * Records attributes of an individual CPU.
2514 */
15
+struct cpuinfo_32bit {
16
+ u32 reg_id_dfr0;
17
+ u32 reg_id_dfr1;
18
+ u32 reg_id_isar0;
19
+ u32 reg_id_isar1;
20
+ u32 reg_id_isar2;
21
+ u32 reg_id_isar3;
22
+ u32 reg_id_isar4;
23
+ u32 reg_id_isar5;
24
+ u32 reg_id_isar6;
25
+ u32 reg_id_mmfr0;
26
+ u32 reg_id_mmfr1;
27
+ u32 reg_id_mmfr2;
28
+ u32 reg_id_mmfr3;
29
+ u32 reg_id_mmfr4;
30
+ u32 reg_id_mmfr5;
31
+ u32 reg_id_pfr0;
32
+ u32 reg_id_pfr1;
33
+ u32 reg_id_pfr2;
34
+
35
+ u32 reg_mvfr0;
36
+ u32 reg_mvfr1;
37
+ u32 reg_mvfr2;
38
+};
39
+
2640 struct cpuinfo_arm64 {
2741 struct cpu cpu;
2842 struct kobject kobj;
....@@ -36,6 +50,7 @@
3650 u64 reg_id_aa64dfr1;
3751 u64 reg_id_aa64isar0;
3852 u64 reg_id_aa64isar1;
53
+ u64 reg_id_aa64isar2;
3954 u64 reg_id_aa64mmfr0;
4055 u64 reg_id_aa64mmfr1;
4156 u64 reg_id_aa64mmfr2;
....@@ -43,23 +58,7 @@
4358 u64 reg_id_aa64pfr1;
4459 u64 reg_id_aa64zfr0;
4560
46
- u32 reg_id_dfr0;
47
- u32 reg_id_isar0;
48
- u32 reg_id_isar1;
49
- u32 reg_id_isar2;
50
- u32 reg_id_isar3;
51
- u32 reg_id_isar4;
52
- u32 reg_id_isar5;
53
- u32 reg_id_mmfr0;
54
- u32 reg_id_mmfr1;
55
- u32 reg_id_mmfr2;
56
- u32 reg_id_mmfr3;
57
- u32 reg_id_pfr0;
58
- u32 reg_id_pfr1;
59
-
60
- u32 reg_mvfr0;
61
- u32 reg_mvfr1;
62
- u32 reg_mvfr2;
61
+ struct cpuinfo_32bit aarch32;
6362
6463 /* pseudo-ZCR for recording maximum ZCR_EL1 LEN value: */
6564 u64 reg_zcr;