irqchip/irq-mvebu-icu: Add new driver for Marvell ICU
The Marvell ICU unit is found in the CP110 block of the Marvell Armada 7K and 8K SoCs. It collects the wired interrupts of the devices located in the CP110 and turns them into SPI interrupts in the GIC located in the AP806 side of the SoC, by using a memory transaction. Until now, the ICU was configured in a static fashion by the firmware, and Linux was relying on this static configuration. By having Linux configure the ICU, we are more flexible, and we can allocate dynamically the GIC SPI interrupts only for devices that are actually in use. The driver was initially written by Hanna Hawa <hannah@marvell.com>. Reviewed-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
This commit is contained in:

committed by
Marc Zyngier

parent
a68a63cb4d
commit
e0de91a977
15
include/dt-bindings/interrupt-controller/mvebu-icu.h
Normal file
15
include/dt-bindings/interrupt-controller/mvebu-icu.h
Normal file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* This header provides constants for the MVEBU ICU driver.
|
||||
*/
|
||||
|
||||
#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_MVEBU_ICU_H
|
||||
#define _DT_BINDINGS_INTERRUPT_CONTROLLER_MVEBU_ICU_H
|
||||
|
||||
/* interrupt specifier cell 0 */
|
||||
|
||||
#define ICU_GRP_NSR 0x0
|
||||
#define ICU_GRP_SR 0x1
|
||||
#define ICU_GRP_SEI 0x4
|
||||
#define ICU_GRP_REI 0x5
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user