aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irqchip
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2016-06-07 11:12:32 -0400
committerMarc Zyngier <marc.zyngier@arm.com>2016-06-13 06:53:52 -0400
commitcdbb813db6925f9dcd352841d8ba28f2edd83ff8 (patch)
treea13e0fea29fae0874d6d49305620da394f8ec6ef /include/linux/irqchip
parentfaea645585de88303a74171321a9188fd3dd7df5 (diff)
irqchip/gic: Prepare for adding platform driver
To support GICs that require runtime power management, it is necessary to add a platform driver, so that the probing of the chip can be deferred if resources, such as a power-domain, is not yet available. To prepare for adding a platform driver: 1. Drop the __init section from the gic_dist_config() so this can be re-used by the platform driver. 2. Add prototypes for functions required by the platform driver to the GIC header file so they can be re-used. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/linux/irqchip')
-rw-r--r--include/linux/irqchip/arm-gic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/irqchip/arm-gic.h b/include/linux/irqchip/arm-gic.h
index fd051855539b..ffcbd8b9a4ff 100644
--- a/include/linux/irqchip/arm-gic.h
+++ b/include/linux/irqchip/arm-gic.h
@@ -101,9 +101,14 @@
101#include <linux/irqdomain.h> 101#include <linux/irqdomain.h>
102 102
103struct device_node; 103struct device_node;
104struct gic_chip_data;
104 105
105void gic_cascade_irq(unsigned int gic_nr, unsigned int irq); 106void gic_cascade_irq(unsigned int gic_nr, unsigned int irq);
106int gic_cpu_if_down(unsigned int gic_nr); 107int gic_cpu_if_down(unsigned int gic_nr);
108void gic_cpu_save(struct gic_chip_data *gic);
109void gic_cpu_restore(struct gic_chip_data *gic);
110void gic_dist_save(struct gic_chip_data *gic);
111void gic_dist_restore(struct gic_chip_data *gic);
107 112
108/* 113/*
109 * Subdrivers that need some preparatory work can initialize their 114 * Subdrivers that need some preparatory work can initialize their