summaryrefslogtreecommitdiffstats
path: root/arch/arm64/tools/gen-sysreg.awk
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-05-10 18:12:02 +0200
committerCatalin Marinas <catalin.marinas@arm.com>2022-05-16 20:50:20 +0200
commit9e2c0819ac853d94c927d5d2f59e2ca2b48500b4 (patch)
tree7b94899e8eb2f38e22a923cd4ebdfaffba2a1b06 /arch/arm64/tools/gen-sysreg.awk
parentarm64/sme: Remove _EL0 from name of SVCR - FIXME sysreg.h (diff)
downloadlinux-9e2c0819ac853d94c927d5d2f59e2ca2b48500b4.tar.xz
linux-9e2c0819ac853d94c927d5d2f59e2ca2b48500b4.zip
arm64/sysreg: Support generation of RAZ fields
Add a statement for RAZ bitfields to the automatic register generation script. Nothing is emitted to the header for these fields. Signed-off-by: Mark Brown <broonie@kernel.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/20220510161208.631259-7-broonie@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/tools/gen-sysreg.awk')
-rwxr-xr-xarch/arm64/tools/gen-sysreg.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm64/tools/gen-sysreg.awk b/arch/arm64/tools/gen-sysreg.awk
index 4aa7ff8ce707..89bfb74e28de 100755
--- a/arch/arm64/tools/gen-sysreg.awk
+++ b/arch/arm64/tools/gen-sysreg.awk
@@ -226,6 +226,13 @@ END {
next
}
+/^Raz/ && (block == "Sysreg" || block == "SysregFields") {
+ expect_fields(2)
+ parse_bitdef(reg, field, $2)
+
+ next
+}
+
/^Enum/ {
change_block("Enum", "Sysreg", "Enum")
expect_fields(3)