[PATCH v1 06/12] arm64/sysreg: Support generation of RAZ fields
Mark Brown
broonie at kernel.org
Tue May 10 09:12:02 PDT 2022
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 at kernel.org>
---
arch/arm64/tools/gen-sysreg.awk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/arch/arm64/tools/gen-sysreg.awk b/arch/arm64/tools/gen-sysreg.awk
index 3ffd77cbb499..b3f2bc072151 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)
--
2.30.2
More information about the linux-arm-kernel
mailing list