338-MIPS-BCM63XX-increase-number-of-IRQs.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 6f5658c845cf1f79213b1d20423a04967259fdaa Mon Sep 17 00:00:00 2001
  2. From: Jonas Gorski <jogo@openwrt.org>
  3. Date: Sun, 15 Dec 2013 20:46:26 +0100
  4. Subject: [PATCH 48/53] MIPS: BCM63XX: increase number of IRQs
  5. Newer SoCs have 128 bit wide irq registers, thus 128 available internal
  6. interupts.
  7. ---
  8. arch/mips/include/asm/mach-bcm63xx/bcm63xx_irq.h | 4 +++-
  9. arch/mips/include/asm/mach-bcm63xx/irq.h | 2 +-
  10. 2 files changed, 4 insertions(+), 2 deletions(-)
  11. --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_irq.h
  12. +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_irq.h
  13. @@ -1,10 +1,12 @@
  14. #ifndef BCM63XX_IRQ_H_
  15. #define BCM63XX_IRQ_H_
  16. +#include <irq.h>
  17. #include <bcm63xx_cpu.h>
  18. #define IRQ_INTERNAL_BASE 8
  19. -#define IRQ_EXTERNAL_BASE 100
  20. +#define NR_INTERNAL_IRQS 128
  21. +#define IRQ_EXTERNAL_BASE (IRQ_INTERNAL_BASE + NR_INTERNAL_IRQS)
  22. #define IRQ_EXT_0 (IRQ_EXTERNAL_BASE + 0)
  23. #define IRQ_EXT_1 (IRQ_EXTERNAL_BASE + 1)
  24. #define IRQ_EXT_2 (IRQ_EXTERNAL_BASE + 2)
  25. --- a/arch/mips/include/asm/mach-bcm63xx/irq.h
  26. +++ b/arch/mips/include/asm/mach-bcm63xx/irq.h
  27. @@ -1,7 +1,7 @@
  28. #ifndef __ASM_MACH_BCM63XX_IRQ_H
  29. #define __ASM_MACH_BCM63XX_IRQ_H
  30. -#define NR_IRQS 128
  31. +#define NR_IRQS 256
  32. #define MIPS_CPU_IRQ_BASE 0
  33. #endif