ARM: cns3xxx: enable sparse IRQ support
authorArnd Bergmann <arnd@arndb.de>
Thu, 14 Mar 2013 16:30:53 +0000 (17:30 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 14 Mar 2013 16:34:56 +0000 (17:34 +0100)
This trivially enables sparse IRQ on cns3xxx by moving the
nr_irqs definition from mach/irqs.h into the machine
descriptor. These interrupts will still get statically
assigned, so nothing changes here.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/Kconfig
arch/arm/mach-cns3xxx/cns3420vb.c
arch/arm/mach-cns3xxx/include/mach/irqs.h [deleted file]

index 5b714695b01bb9db0455ad2f5c959a714aa00064..8bad33e4f2bd74aa4a08928179a5dc448ebe5fbc 100644 (file)
@@ -390,6 +390,7 @@ config ARCH_CNS3XXX
        select MIGHT_HAVE_CACHE_L2X0
        select MIGHT_HAVE_PCI
        select PCI_DOMAINS if PCI
+       select SPARSE_IRQ
        help
          Support for Cavium Networks CNS3XXX platform.
 
index d863d8729edc54c9744cfd4137748727b57673f6..ce096d678aa410d68ab1915e500b7c8bdf7a2242 100644 (file)
@@ -246,6 +246,7 @@ static void __init cns3420_map_io(void)
 
 MACHINE_START(CNS3420VB, "Cavium Networks CNS3420 Validation Board")
        .atag_offset    = 0x100,
+       .nr_irqs        = NR_IRQS_CNS3XXX,
        .map_io         = cns3420_map_io,
        .init_irq       = cns3xxx_init_irq,
        .init_time      = cns3xxx_timer_init,
diff --git a/arch/arm/mach-cns3xxx/include/mach/irqs.h b/arch/arm/mach-cns3xxx/include/mach/irqs.h
deleted file mode 100644 (file)
index 2ab96f8..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright 2000 Deep Blue Solutions Ltd.
- * Copyright 2003 ARM Limited
- * Copyright 2008 Cavium Networks
- *
- * This file is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License, Version 2, as
- * published by the Free Software Foundation.
- */
-
-#ifndef __MACH_IRQS_H
-#define __MACH_IRQS_H
-
-#define IRQ_LOCALTIMER         29
-#define IRQ_LOCALWDOG          30
-#define IRQ_TC11MP_GIC_START   32
-
-#include <mach/cns3xxx.h>
-
-#ifndef NR_IRQS
-#error "NR_IRQS not defined by the board-specific files"
-#endif
-
-#endif
This page took 0.027172 seconds and 5 git commands to generate.