]> git.ipfire.org Git - thirdparty/linux.git/commit
irqchip/sunxi-nmi: Support Allwinner A523 NMI controller
authorAndre Przywara <andre.przywara@arm.com>
Fri, 7 Mar 2025 00:57:03 +0000 (00:57 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 7 Mar 2025 07:39:03 +0000 (08:39 +0100)
commit922ac17c7b47fd0345690046a396f7e324dc733e
treeaa2c936f1fead424dd66f9f21eaaf6963e79f532
parentbe494a35683e1cbba58395eacb00d4b5cd4e23a3
irqchip/sunxi-nmi: Support Allwinner A523 NMI controller

The NMI controller in the Allwinner A523 is almost compatible to the
previous versions of this IP, but requires the extra bit 31 to be set in
the enable register to actually report the NMI.

Add a mask to allow such an enable bit to be specified, and add this to
the per-SoC data structure. As this struct was just for different register
offsets so far, it was consequently named "reg_offs", which is now no
longer applicable, so rename this to the more generic "data" on the way,
and move the existing offsets into a struct of its own.

Also add the respective Allwinner A523 compatible string, and set bit 31
in its enable mask, to add support for this SoC.

[ tglx: Mop up some coding style along with it ]

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250307005712.16828-7-andre.przywara@arm.com
drivers/irqchip/irq-sunxi-nmi.c