diff options
author | Jayachandran C <jchandra@broadcom.com> | 2012-10-31 12:01:40 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-11-09 11:37:20 +0100 |
commit | bb1e4bc5cdc9dce7680317a4ebf87a12fc8c6a13 (patch) | |
tree | a02d2d4960ea76db3a2411b2383efde69cf83bef /arch/mips/include/asm/mach-netlogic/irq.h | |
parent | 77ae798f5b736dfdc692b86b393d9699052ac77a (diff) | |
download | op-kernel-dev-bb1e4bc5cdc9dce7680317a4ebf87a12fc8c6a13.zip op-kernel-dev-bb1e4bc5cdc9dce7680317a4ebf87a12fc8c6a13.tar.gz |
MIPS: Netlogic: Make number of nodes configurable
There can be 1, 2 or 4 SoCs(nodes) in a multi-chip XLP board. Add an
option for multi-chip boards in case of XLP, and make the number of
nodes configurable.
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/4470
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/include/asm/mach-netlogic/irq.h')
-rw-r--r-- | arch/mips/include/asm/mach-netlogic/irq.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/include/asm/mach-netlogic/irq.h b/arch/mips/include/asm/mach-netlogic/irq.h index b590245..868ed8a 100644 --- a/arch/mips/include/asm/mach-netlogic/irq.h +++ b/arch/mips/include/asm/mach-netlogic/irq.h @@ -8,7 +8,9 @@ #ifndef __ASM_NETLOGIC_IRQ_H #define __ASM_NETLOGIC_IRQ_H -#define NR_IRQS 64 +#include <asm/mach-netlogic/multi-node.h> +#define NR_IRQS (64 * NLM_NR_NODES) + #define MIPS_CPU_IRQ_BASE 0 #endif /* __ASM_NETLOGIC_IRQ_H */ |