Skip to content

Commit 1224308

Browse files
James Morsewilldeacon
authored andcommitted
arm64/sysreg: Convert ID_PFR1_EL1 to automatic generation
Convert ID_PFR1_EL1 to be automatically generated as per DDI0487I.a, no functional changes. Reviewed-by: Mark Brown <[email protected]> Signed-off-by: James Morse <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent fb0b8d1 commit 1224308

File tree

2 files changed

+40
-10
lines changed

2 files changed

+40
-10
lines changed

arch/arm64/include/asm/sysreg.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@
165165
#define SYS_MPIDR_EL1 sys_reg(3, 0, 0, 0, 5)
166166
#define SYS_REVIDR_EL1 sys_reg(3, 0, 0, 0, 6)
167167

168-
#define SYS_ID_PFR1_EL1 sys_reg(3, 0, 0, 1, 1)
169168
#define SYS_ID_PFR2_EL1 sys_reg(3, 0, 0, 3, 4)
170169
#define SYS_ID_DFR0_EL1 sys_reg(3, 0, 0, 1, 2)
171170
#define SYS_ID_DFR1_EL1 sys_reg(3, 0, 0, 3, 5)
@@ -716,15 +715,6 @@
716715
#define MVFR1_EL1_FPDNaN_SHIFT 4
717716
#define MVFR1_EL1_FPFtZ_SHIFT 0
718717

719-
#define ID_PFR1_EL1_GIC_SHIFT 28
720-
#define ID_PFR1_EL1_Virt_frac_SHIFT 24
721-
#define ID_PFR1_EL1_Sec_frac_SHIFT 20
722-
#define ID_PFR1_EL1_GenTimer_SHIFT 16
723-
#define ID_PFR1_EL1_Virtualization_SHIFT 12
724-
#define ID_PFR1_EL1_MProgMod_SHIFT 8
725-
#define ID_PFR1_EL1_Security_SHIFT 4
726-
#define ID_PFR1_EL1_ProgMod_SHIFT 0
727-
728718
#if defined(CONFIG_ARM64_4K_PAGES)
729719
#define ID_AA64MMFR0_EL1_TGRAN_SHIFT ID_AA64MMFR0_EL1_TGRAN4_SHIFT
730720
#define ID_AA64MMFR0_EL1_TGRAN_SUPPORTED_MIN ID_AA64MMFR0_EL1_TGRAN4_SUPPORTED_MIN

arch/arm64/tools/sysreg

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,46 @@ Enum 3:0 State0
8787
EndEnum
8888
EndSysreg
8989

90+
Sysreg ID_PFR1_EL1 3 0 0 1 1
91+
Res0 63:32
92+
Enum 31:28 GIC
93+
0b0000 NI
94+
0b0001 GICv3
95+
0b0010 GICv4p1
96+
EndEnum
97+
Enum 27:24 Virt_frac
98+
0b0000 NI
99+
0b0001 IMP
100+
EndEnum
101+
Enum 23:20 Sec_frac
102+
0b0000 NI
103+
0b0001 WALK_DISABLE
104+
0b0010 SECURE_MEMORY
105+
EndEnum
106+
Enum 19:16 GenTimer
107+
0b0000 NI
108+
0b0001 IMP
109+
0b0010 ECV
110+
EndEnum
111+
Enum 15:12 Virtualization
112+
0b0000 NI
113+
0b0001 IMP
114+
EndEnum
115+
Enum 11:8 MProgMod
116+
0b0000 NI
117+
0b0001 IMP
118+
EndEnum
119+
Enum 7:4 Security
120+
0b0000 NI
121+
0b0001 EL3
122+
0b0001 NSACR_RFR
123+
EndEnum
124+
Enum 3:0 ProgMod
125+
0b0000 NI
126+
0b0001 IMP
127+
EndEnum
128+
EndSysreg
129+
90130
Sysreg ID_MMFR0_EL1 3 0 0 1 4
91131
Res0 63:32
92132
Enum 31:28 InnerShr

0 commit comments

Comments
 (0)