summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-orion5x/include
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-12-02 22:27:05 +0100
committerGregory CLEMENT <gregory.clement@free-electrons.com>2015-12-07 18:17:07 +0100
commit5cdbe5d23a8a0d7274d628bb9d5ff018d25075ca (patch)
tree6d75ee537457ca1af87ec5652775f8d32ca69f10 /arch/arm/mach-orion5x/include
parentb8cd337c8e0330f4a29b3d1f69b7c73b324b1f8d (diff)
downloadop-kernel-dev-5cdbe5d23a8a0d7274d628bb9d5ff018d25075ca.zip
op-kernel-dev-5cdbe5d23a8a0d7274d628bb9d5ff018d25075ca.tar.gz
ARM: orion: use SPARSE_IRQ everywhere
As a preparation for multiplatform support, this moves all the code using plat-orion over to use sparse irq support, which is enabled implicitly for multiplatform. In particular, the hardcoded NR_IRQS macro gets replaced with a machine specific one that is set in the machine descriptor in order to set up a static mapping for all legacy interrupts. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-orion5x/include')
-rw-r--r--arch/arm/mach-orion5x/include/mach/irqs.h2
-rw-r--r--arch/arm/mach-orion5x/include/mach/orion5x.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-orion5x/include/mach/irqs.h b/arch/arm/mach-orion5x/include/mach/irqs.h
index 2431d99..4b8703c 100644
--- a/arch/arm/mach-orion5x/include/mach/irqs.h
+++ b/arch/arm/mach-orion5x/include/mach/irqs.h
@@ -54,7 +54,7 @@
#define IRQ_ORION5X_GPIO_START 33
#define NR_GPIO_IRQS 32
-#define NR_IRQS (IRQ_ORION5X_GPIO_START + NR_GPIO_IRQS)
+#define ORION5X_NR_IRQS (IRQ_ORION5X_GPIO_START + NR_GPIO_IRQS)
#endif
diff --git a/arch/arm/mach-orion5x/include/mach/orion5x.h b/arch/arm/mach-orion5x/include/mach/orion5x.h
index b78ff32..7be7c2e 100644
--- a/arch/arm/mach-orion5x/include/mach/orion5x.h
+++ b/arch/arm/mach-orion5x/include/mach/orion5x.h
@@ -14,6 +14,8 @@
#ifndef __ASM_ARCH_ORION5X_H
#define __ASM_ARCH_ORION5X_H
+#include <mach/irqs.h>
+
/*****************************************************************************
* Orion Address Maps
*
OpenPOWER on IntegriCloud