]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: lantiq: irq: register the interrupt controllers with irqchip_init
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Sat, 9 Jan 2021 19:53:51 +0000 (20:53 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 13 Jan 2021 10:06:12 +0000 (11:06 +0100)
commit33c6c731e17b6450964c1d5ff56b5ef584e6e9b5
tree2336ed5f6f5061353f7bef141dc18e7c8e1605c4
parent0a48035a6a4db9299ad475a744f76da6f5fafe2e
MIPS: lantiq: irq: register the interrupt controllers with irqchip_init

Add support for more interrupt controllers by switching from
of_irq_init() to irqchip_init() in Lantiq's arch_init_irq(). This
requires switching the ICU interrupt controller to use
IRQCHIP_DECLARE(), like a real irqchip driver would do.

This is needed for future changes when new irqchip drivers are
implemented:
- a dedicated driver for the EIU interrupt controller
- a driver for the MSI PIC (Programmable Interrupt Controller) found on
  VRX200 and newer SoCs
- ..or any other driver which uses IRQCHIP_DECLARE

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/lantiq/irq.c