aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brown <[email protected]>2022-05-10 17:12:02 +0100
committerCatalin Marinas <[email protected]>2022-05-16 19:50:20 +0100
commit9e2c0819ac853d94c927d5d2f59e2ca2b48500b4 (patch)
tree7b94899e8eb2f38e22a923cd4ebdfaffba2a1b06
parentec0067a63e5a37de74025d46095cfe7a7af3114a (diff)
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 <[email protected]> Acked-by: Mark Rutland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
-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)