[PATCH v1 06/12] arm64/sysreg: Support generation of RAZ fields

Mark Rutland mark.rutland at arm.com
Fri May 13 07:18:41 PDT 2022


On Tue, May 10, 2022 at 05:12:02PM +0100, Mark Brown wrote:
> 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>

Makes sense to me:

Acked-by: Mark Rutland <mark.rutland at arm.com>

Mark.

> ---
>  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