summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/include/mach/common.h
diff options
context:
space:
mode:
authorBartosz Golaszewski2019-02-14 15:52:02 +0100
committerSekhar Nori2019-02-19 15:11:07 +0100
commite87addec387f1ed7e6c4609e66ededc43a434c17 (patch)
treea41b6f55bfc33a7b7450adecad35baf4054c59b3 /arch/arm/mach-davinci/include/mach/common.h
parentARM: davinci: wrap HW interrupt numbers with a macro (diff)
downloadkernel-qcow2-linux-e87addec387f1ed7e6c4609e66ededc43a434c17.tar.gz
kernel-qcow2-linux-e87addec387f1ed7e6c4609e66ededc43a434c17.tar.xz
kernel-qcow2-linux-e87addec387f1ed7e6c4609e66ededc43a434c17.zip
ARM: davinci: select SPARSE_IRQ
Everything is in place now for SPARSE_IRQ. Select it and set DAVINCI_INTC_START to NR_IRQS. We now need to include mach/irqs.h in a couple places as it is no longer indirectly included after selecting SPARSE_IRQ. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by: David Lechner <david@lechnology.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/common.h')
-rw-r--r--arch/arm/mach-davinci/include/mach/common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/include/mach/common.h b/arch/arm/mach-davinci/include/mach/common.h
index d840023eaaac..1ceed0345988 100644
--- a/arch/arm/mach-davinci/include/mach/common.h
+++ b/arch/arm/mach-davinci/include/mach/common.h
@@ -17,7 +17,9 @@
#include <linux/types.h>
#include <linux/reboot.h>
-#define DAVINCI_INTC_START 0
+#include <asm/irq.h>
+
+#define DAVINCI_INTC_START NR_IRQS
#define DAVINCI_INTC_IRQ(_irqnum) (DAVINCI_INTC_START + (_irqnum))
void davinci_timer_init(struct clk *clk);