diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-12-20 18:31:54 +0300 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-08-31 17:31:42 +0300 |
commit | 3d63cb53e221d8ab347e94aeac0b5511857beb7f (patch) | |
tree | ea949ba362aafee85b909651c1a94b6973fed24c /drivers/irqchip/irq-gic-v4.c | |
parent | 7954907bedafd0f8e81633803945cb304793b29d (diff) | |
download | linux-3d63cb53e221d8ab347e94aeac0b5511857beb7f.tar.xz |
irqchip/gic-v4: Enable low-level GICv4 operations
Get the show on the road...
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip/irq-gic-v4.c')
-rw-r--r-- | drivers/irqchip/irq-gic-v4.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-gic-v4.c b/drivers/irqchip/irq-gic-v4.c index 8eb2ad39322e..2370e6d9e603 100644 --- a/drivers/irqchip/irq-gic-v4.c +++ b/drivers/irqchip/irq-gic-v4.c @@ -210,3 +210,16 @@ int its_prop_update_vlpi(int irq, u8 config, bool inv) return irq_set_vcpu_affinity(irq, &info); } + +int its_init_v4(struct irq_domain *domain, const struct irq_domain_ops *ops) +{ + if (domain) { + pr_info("ITS: Enabling GICv4 support\n"); + gic_domain = domain; + vpe_domain_ops = ops; + return 0; + } + + pr_err("ITS: No GICv4 VPE domain allocated\n"); + return -ENODEV; +} |