]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: picoxcell: don't reserve irq_descs
authorJamie Iles <jamie@jamieiles.com>
Mon, 12 Dec 2011 20:17:37 +0000 (20:17 +0000)
committerJamie Iles <jamie@jamieiles.com>
Sun, 18 Dec 2011 10:48:19 +0000 (10:48 +0000)
All irq_desc's are now dynamically allocated so we don't need to
statically reserve them.

v2: - select SPARSE_IRQ and set .nr_irqs to NR_IRQS_LEGACY to skip
ISA and IRQ 0.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
arch/arm/Kconfig
arch/arm/mach-picoxcell/common.c
arch/arm/mach-picoxcell/include/mach/irqs.h

index abba5b8c9d74cde9eff567d12ba1d7701ea3e8a2..0d961cb7be9a096b4f8a64150117b78d39b8f06d 100644 (file)
@@ -650,6 +650,7 @@ config ARCH_PICOXCELL
        select HAVE_SCHED_CLOCK
        select HAVE_TCM
        select NO_IOPORT
+       select SPARSE_IRQ
        select USE_OF
        help
          This enables support for systems based on the Picochip picoXcell
index ad871bd7b1abe1754e05eeadaa099cac6e189091..d34b3335801e5d9302b37c561b139a3eef780217 100644 (file)
@@ -45,7 +45,7 @@ static void __init picoxcell_init_irq(void)
 
 DT_MACHINE_START(PICOXCELL, "Picochip picoXcell")
        .map_io         = picoxcell_map_io,
-       .nr_irqs        = ARCH_NR_IRQS,
+       .nr_irqs        = NR_IRQS_LEGACY,
        .init_irq       = picoxcell_init_irq,
        .handle_irq     = vic_handle_irq,
        .timer          = &picoxcell_timer,
index 4d13ed970919169d846ab147307b639507f3bf3c..59eac1ee28205594f071f78df3a97f6eec3f45fc 100644 (file)
@@ -1,8 +1,6 @@
 /*
  * Copyright (c) 2011 Picochip Ltd., Jamie Iles
  *
- * This file contains the hardware definitions of the picoXcell SoC devices.
- *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
 #ifndef __MACH_IRQS_H
 #define __MACH_IRQS_H
 
-#define ARCH_NR_IRQS                   64
-#define NR_IRQS                                (128 + ARCH_NR_IRQS)
-
-#define IRQ_VIC0_BASE                  0
-#define IRQ_VIC1_BASE                  32
+/* We dynamically allocate our irq_desc's. */
+#define NR_IRQS                                0
 
 #endif /* __MACH_IRQS_H */