Skip to content

Commit 9e2c081

Browse files
brooniectmarinas
authored andcommitted
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]>
1 parent ec0067a commit 9e2c081

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/arm64/tools/gen-sysreg.awk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ END {
226226
next
227227
}
228228

229+
/^Raz/ && (block == "Sysreg" || block == "SysregFields") {
230+
expect_fields(2)
231+
parse_bitdef(reg, field, $2)
232+
233+
next
234+
}
235+
229236
/^Enum/ {
230237
change_block("Enum", "Sysreg", "Enum")
231238
expect_fields(3)

0 commit comments

Comments
 (0)