mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
CRIS v32: increase NR_IRQS
Increase NR_IQRS so we can fit in GPIO interrupts. Signed-off-by: Rabin Vincent <rabin@rab.in> Signed-off-by: Jesper Nilsson <jespern@axis.com>
This commit is contained in:
parent
c33fe44443
commit
df90c33808
2 changed files with 3 additions and 3 deletions
|
@ -464,14 +464,14 @@ init_IRQ(void)
|
||||||
etrax_irv->v[i] = weird_irq;
|
etrax_irv->v[i] = weird_irq;
|
||||||
|
|
||||||
np = of_find_compatible_node(NULL, NULL, "axis,crisv32-intc");
|
np = of_find_compatible_node(NULL, NULL, "axis,crisv32-intc");
|
||||||
domain = irq_domain_add_legacy(np, NR_IRQS - FIRST_IRQ,
|
domain = irq_domain_add_legacy(np, NBR_INTR_VECT - FIRST_IRQ,
|
||||||
FIRST_IRQ, FIRST_IRQ,
|
FIRST_IRQ, FIRST_IRQ,
|
||||||
&crisv32_irq_ops, NULL);
|
&crisv32_irq_ops, NULL);
|
||||||
BUG_ON(!domain);
|
BUG_ON(!domain);
|
||||||
irq_set_default_host(domain);
|
irq_set_default_host(domain);
|
||||||
of_node_put(np);
|
of_node_put(np);
|
||||||
|
|
||||||
for (i = FIRST_IRQ, j = 0; j < NR_IRQS; i++, j++) {
|
for (i = FIRST_IRQ, j = 0; j < NBR_INTR_VECT; i++, j++) {
|
||||||
set_exception_vector(i, interrupt[j]);
|
set_exception_vector(i, interrupt[j]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include <hwregs/intr_vect.h>
|
#include <hwregs/intr_vect.h>
|
||||||
|
|
||||||
/* Number of non-cpu interrupts. */
|
/* Number of non-cpu interrupts. */
|
||||||
#define NR_IRQS NBR_INTR_VECT /* Exceptions + IRQs */
|
#define NR_IRQS (NBR_INTR_VECT + 256) /* Exceptions + IRQs */
|
||||||
#define FIRST_IRQ 0x31 /* Exception number for first IRQ */
|
#define FIRST_IRQ 0x31 /* Exception number for first IRQ */
|
||||||
#define NR_REAL_IRQS (NBR_INTR_VECT - FIRST_IRQ) /* IRQs */
|
#define NR_REAL_IRQS (NBR_INTR_VECT - FIRST_IRQ) /* IRQs */
|
||||||
#if NR_REAL_IRQS > 32
|
#if NR_REAL_IRQS > 32
|
||||||
|
|
Loading…
Reference in a new issue