Skip to content

Commit c0c5a8e

Browse files
jgoulywilldeacon
authored andcommitted
arm64/sysreg: add system register POR_EL{0,1}
Add POR_EL{0,1} according to DDI0601 2023-03. Signed-off-by: Joey Gouly <joey.gouly@arm.com> Reviewed-by: Mark Brown <broonie@kernel.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20231209-b4-arm64-sysreg-additions-v1-3-45284e538474@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
1 parent 41bb68f commit c0c5a8e

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

arch/arm64/include/asm/sysreg.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,19 @@
10391039

10401040
#define PIRx_ELx_PERM(idx, perm) ((perm) << ((idx) * 4))
10411041

1042+
/*
1043+
* Permission Overlay Extension (POE) permission encodings.
1044+
*/
1045+
#define POE_NONE UL(0x0)
1046+
#define POE_R UL(0x1)
1047+
#define POE_X UL(0x2)
1048+
#define POE_RX UL(0x3)
1049+
#define POE_W UL(0x4)
1050+
#define POE_RW UL(0x5)
1051+
#define POE_XW UL(0x6)
1052+
#define POE_RXW UL(0x7)
1053+
#define POE_MASK UL(0xf)
1054+
10421055
#define ARM64_FEATURE_FIELD_BITS 4
10431056

10441057
/* Defined for compatibility only, do not add new users. */

arch/arm64/tools/sysreg

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,6 +2555,18 @@ Sysreg PIR_EL2 3 4 10 2 3
25552555
Fields PIRx_ELx
25562556
EndSysreg
25572557

2558+
Sysreg POR_EL0 3 3 10 2 4
2559+
Fields PIRx_ELx
2560+
EndSysreg
2561+
2562+
Sysreg POR_EL1 3 0 10 2 4
2563+
Fields PIRx_ELx
2564+
EndSysreg
2565+
2566+
Sysreg POR_EL12 3 5 10 2 4
2567+
Fields PIRx_ELx
2568+
EndSysreg
2569+
25582570
Sysreg LORSA_EL1 3 0 10 4 0
25592571
Res0 63:52
25602572
Field 51:16 SA

0 commit comments

Comments
 (0)