5698c50d9d
Meta core internal interrupts (from HWSTATMETA and friends) are vectored onto the TR1 core trigger for the current thread. This is demultiplexed in irq-metag.c to individual Linux IRQs for each internal interrupt. External SoC interrupts (from HWSTATEXT and friends) are vectored onto the TR2 core trigger for the current thread. This is demultiplexed in irq-metag-ext.c to individual Linux IRQs for each external SoC interrupt. The external irqchip has devicetree bindings for configuring the number of irq banks and the type of masking available. Signed-off-by: James Hogan <james.hogan@imgtec.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Grant Likely <grant.likely@secretlab.ca> Cc: Rob Herring <rob.herring@calxeda.com> Cc: Rob Landley <rob@landley.net> Cc: Dom Cobley <popcornmix@gmail.com> Cc: Simon Arlott <simon@fire.lp0.eu> Cc: Viresh Kumar <viresh.kumar@linaro.org> Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Cc: devicetree-discuss@lists.ozlabs.org Cc: linux-doc@vger.kernel.org
25 lines
446 B
C
25 lines
446 B
C
/*
|
|
* Copyright (C) 2011 Imagination Technologies
|
|
*/
|
|
|
|
#ifndef _LINUX_IRQCHIP_METAG_H_
|
|
#define _LINUX_IRQCHIP_METAG_H_
|
|
|
|
#include <linux/errno.h>
|
|
|
|
#ifdef CONFIG_METAG_PERFCOUNTER_IRQS
|
|
extern int init_internal_IRQ(void);
|
|
extern int internal_irq_map(unsigned int hw);
|
|
#else
|
|
static inline int init_internal_IRQ(void)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int internal_irq_map(unsigned int hw)
|
|
{
|
|
return -EINVAL;
|
|
}
|
|
#endif
|
|
|
|
#endif /* _LINUX_IRQCHIP_METAG_H_ */
|