Skip to content

Commit a37cdac

Browse files
Christian Ruppertvineetgarc
authored andcommitted
ARC: Prepare interrupt code for external controllers
This patch adds some room for CPU-external interrupt controllers in the Linux interrupt space. Until now, only the 32 CPU internal interrupt lines were supported which does not allow for external interrupt controllers such as GPIO modules etc. Signed-off-by: Christian Ruppert <christian.ruppert@abilis.com> Signed-off-by: Pierrick Hascoet <pierrick.hascoet@abilis.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent c93d8b8 commit a37cdac

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎arch/arc/include/asm/irq.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
#ifndef __ASM_ARC_IRQ_H
1010
#define __ASM_ARC_IRQ_H
1111

12-
#define NR_IRQS 32
12+
#define NR_CPU_IRQS 32 /* number of interrupt lines of ARC770 CPU */
13+
#define NR_IRQS 128 /* allow some CPU external IRQ handling */
1314

1415
/* Platform Independent IRQs */
1516
#define TIMER0_IRQ 3

‎arch/arc/kernel/irq.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ init_onchip_IRQ(struct device_node *intc, struct device_node *parent)
105105
if (parent)
106106
panic("DeviceTree incore intc not a root irq controller\n");
107107

108-
root_domain = irq_domain_add_legacy(intc, NR_IRQS, 0, 0,
108+
root_domain = irq_domain_add_legacy(intc, NR_CPU_IRQS, 0, 0,
109109
&arc_intc_domain_ops, NULL);
110110

111111
if (!root_domain)

0 commit comments

Comments
 (0)