ARM: ixp4xx: Convert to SPARSE_IRQ
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 29 Dec 2018 14:47:52 +0000 (15:47 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 19 Apr 2019 18:37:44 +0000 (20:37 +0200)
This localizes the <mach/irqs.h> header to the mach-ixp4xx
directory, removes NR_IRQS and switches IXP4xx over to using
SPARSE_IRQ.

This is a prerequisite for DT support.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
25 files changed:
arch/arm/Kconfig
arch/arm/mach-ixp4xx/avila-pci.c
arch/arm/mach-ixp4xx/avila-setup.c
arch/arm/mach-ixp4xx/common.c
arch/arm/mach-ixp4xx/coyote-pci.c
arch/arm/mach-ixp4xx/coyote-setup.c
arch/arm/mach-ixp4xx/dsmg600-pci.c
arch/arm/mach-ixp4xx/dsmg600-setup.c
arch/arm/mach-ixp4xx/fsg-pci.c
arch/arm/mach-ixp4xx/fsg-setup.c
arch/arm/mach-ixp4xx/gateway7001-pci.c
arch/arm/mach-ixp4xx/gateway7001-setup.c
arch/arm/mach-ixp4xx/gtwx5715-pci.c
arch/arm/mach-ixp4xx/gtwx5715-setup.c
arch/arm/mach-ixp4xx/irqs.h [moved from arch/arm/mach-ixp4xx/include/mach/irqs.h with 99% similarity]
arch/arm/mach-ixp4xx/ixdp425-pci.c
arch/arm/mach-ixp4xx/ixdp425-setup.c
arch/arm/mach-ixp4xx/ixdpg425-pci.c
arch/arm/mach-ixp4xx/ixp4xx_qmgr.c
arch/arm/mach-ixp4xx/nas100d-pci.c
arch/arm/mach-ixp4xx/nas100d-setup.c
arch/arm/mach-ixp4xx/nslu2-pci.c
arch/arm/mach-ixp4xx/nslu2-setup.c
arch/arm/mach-ixp4xx/wg302v2-pci.c
arch/arm/mach-ixp4xx/wg302v2-setup.c

index eb27554aa04f1c2e25aabd3a668fccb924f4e0a2..f5ec59a549e33b20dd63837ecd7df36d9e7fe280 100644 (file)
@@ -437,6 +437,7 @@ config ARCH_IXP4XX
        select GPIOLIB
        select HAVE_PCI
        select NEED_MACH_IO_H
+       select SPARSE_IRQ
        select USB_EHCI_BIG_ENDIAN_DESC
        select USB_EHCI_BIG_ENDIAN_MMIO
        help
index 548c7d43ade6791ad7ca13dbae8f8342b5fcb751..9c834f0f4231cd1f96a106385ab041803272d000 100644 (file)
@@ -27,6 +27,8 @@
 #include <mach/hardware.h>
 #include <asm/mach-types.h>
 
+#include "irqs.h"
+
 #define AVILA_MAX_DEV  4
 #define LOFT_MAX_DEV   6
 #define IRQ_LINES      4
index 44cbbce6bda6a85da36b895ef3b212bb0e036f2b..1981b33109cb3e5415bf98f95ba9e9a1666d15c8 100644 (file)
@@ -28,6 +28,8 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/flash.h>
 
+#include "irqs.h"
+
 #define AVILA_SDA_PIN  7
 #define AVILA_SCL_PIN  6
 
index 58a1b851425eb082e02f6aee6df85334baf073f8..aa8fd248c12578d1d777cc68c759f36627fd646a 100644 (file)
@@ -45,6 +45,8 @@
 #include <asm/mach/irq.h>
 #include <asm/mach/time.h>
 
+#include "irqs.h"
+
 #define IXP4XX_TIMER_FREQ 66666000
 
 /*
index 5d14ce2aee6d9c77a334ee171da39064502b42dc..a16c35d2bb96958be64d44fc4d8e208c49ff325f 100644 (file)
@@ -23,6 +23,8 @@
 #include <asm/irq.h>
 #include <asm/mach/pci.h>
 
+#include "irqs.h"
+
 #define SLOT0_DEVID    14
 #define SLOT1_DEVID    15
 
index 7e40fe70933bcf4190117aa29a8cbb6b9dbe138d..7ca43ca2816d73d6d3af01510dda4afe78ae041b 100644 (file)
@@ -25,6 +25,8 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/flash.h>
 
+#include "irqs.h"
+
 #define COYOTE_IDE_BASE_PHYS   IXP4XX_EXP_BUS_BASE(3)
 #define COYOTE_IDE_BASE_VIRT   0xFFFE1000
 #define COYOTE_IDE_REGION_SIZE 0x1000
index 8dca769377238f69a6757c84a9bedb18291587b6..6899023bd1b7b9337e73040e0552feea6a075a3d 100644 (file)
@@ -22,6 +22,8 @@
 #include <asm/mach/pci.h>
 #include <asm/mach-types.h>
 
+#include "irqs.h"
+
 #define MAX_DEV                4
 #define IRQ_LINES      3
 
index 397190f3a8da6cdbc87a3fac2296f793a497cf8f..0daaede8fb6dac012935d6d02e076881538a0def 100644 (file)
@@ -35,6 +35,8 @@
 #include <asm/mach/flash.h>
 #include <asm/mach/time.h>
 
+#include "irqs.h"
+
 #define DSMG600_SDA_PIN                5
 #define DSMG600_SCL_PIN                4
 
index fd4a8625b4ae7508eda6b100de10343687561c83..6c08bb9d980769dd24984614e934b5a9f5bbef6c 100644 (file)
@@ -22,6 +22,8 @@
 #include <asm/mach/pci.h>
 #include <asm/mach-types.h>
 
+#include "irqs.h"
+
 #define MAX_DEV                3
 #define IRQ_LINES      3
 
index f0a152e365b10cd63ad523667cf2c09f05f98522..648932d8d7a8fbec25211201469c302f725d7df6 100644 (file)
@@ -29,6 +29,8 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/flash.h>
 
+#include "irqs.h"
+
 #define FSG_SDA_PIN            12
 #define FSG_SCL_PIN            13
 
index d9d6cc0897070c60f76f0efe676879d42b73883a..903c75330b7611b247c1edca77f678cd95f4d9e0 100644 (file)
@@ -27,6 +27,8 @@
 
 #include <asm/mach/pci.h>
 
+#include "irqs.h"
+
 void __init gateway7001_pci_preinit(void)
 {
        irq_set_irq_type(IRQ_IXP4XX_GPIO10, IRQ_TYPE_LEVEL_LOW);
index 1be6faf6da9a3f69528c8196adefdef2df25ae38..678e7dfff0e5a403dd0b549c0c79b507158086f1 100644 (file)
@@ -28,6 +28,8 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/flash.h>
 
+#include "irqs.h"
+
 static struct flash_platform_data gateway7001_flash_data = {
        .map_name       = "cfi_probe",
        .width          = 2,
index 551d114c9e144a3fad9152c2ef9d99fc98ebb857..1223d160448f3b5f4a20460cd1ef2c42c032337f 100644 (file)
@@ -30,6 +30,8 @@
 #include <mach/hardware.h>
 #include <asm/mach/pci.h>
 
+#include "irqs.h"
+
 #define SLOT0_DEVID    0
 #define SLOT1_DEVID    1
 #define INTA           10 /* slot 1 has INTA and INTB crossed */
index 16a12994fb5378c8bc77a0b4b73d3e7da453bcee..5dbdde8e2338329692a6c709d7bc3ca09362bb9b 100644 (file)
@@ -36,6 +36,8 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/flash.h>
 
+#include "irqs.h"
+
 /* GPIO 5,6,7 and 12 are hard wired to the Kendin KS8995M Switch
    and operate as an SPI type interface.  The details of the interface
    are available on Kendin/Micrel's web site. */
similarity index 99%
rename from arch/arm/mach-ixp4xx/include/mach/irqs.h
rename to arch/arm/mach-ixp4xx/irqs.h
index dadcd4ddb0a9cc12c6546cdbe88d16ae3a942ed5..6b7f220cf9e0a849d1765f9306b2bfc480672e88 100644 (file)
@@ -63,8 +63,6 @@
 #define _IXP4XX_GPIO_IRQ(n)    (IRQ_IXP4XX_GPIO ## n)
 #define IXP4XX_GPIO_IRQ(n)     _IXP4XX_GPIO_IRQ(n)
 
-#define NR_IRQS 512
-
 #define        XSCALE_PMU_IRQ          (IRQ_IXP4XX_XSCALE_PMU)
 
 #endif
index 318424dd3c5095869469ca56f128799944d60552..c1340465b2eaebc951aa0648ae34c4259e80952a 100644 (file)
@@ -24,6 +24,8 @@
 #include <mach/hardware.h>
 #include <asm/mach-types.h>
 
+#include "irqs.h"
+
 #define MAX_DEV                4
 #define IRQ_LINES      4
 
index 57d7df79d8389b8373d1e0c24a3133f26ba70643..6f0f7ed18ea8b93e8164195da9496c028dac0cc2 100644 (file)
@@ -32,6 +32,8 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/flash.h>
 
+#include "irqs.h"
+
 #define IXDP425_SDA_PIN                7
 #define IXDP425_SCL_PIN                6
 
index 1f8717ba13dcf111211a64b3260a08e8e59d277d..ac0e9bc6eb4dbfdceb4031542c302324c937c87e 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <asm/mach/pci.h>
 
+#include "irqs.h"
+
 void __init ixdpg425_pci_preinit(void)
 {
        irq_set_irq_type(IRQ_IXP4XX_GPIO6, IRQ_TYPE_LEVEL_LOW);
index 9d1b6b7c394cfb5eb5ef2968065f97b5f2b875a7..4c7c960e1b4caa5d9f8d06accc5c71ea8e4640db 100644 (file)
@@ -14,6 +14,8 @@
 #include <linux/module.h>
 #include <mach/qmgr.h>
 
+#include "irqs.h"
+
 static struct qmgr_regs __iomem *qmgr_regs = IXP4XX_QMGR_BASE_VIRT;
 static struct resource *mem_res;
 static spinlock_t qmgr_lock;
index 8f0eba0a6800ab1d2122b076667f457c00c66d2e..925ef805f9667c6c0ad4cffd05794a63a7176e5e 100644 (file)
@@ -21,6 +21,8 @@
 #include <asm/mach/pci.h>
 #include <asm/mach-types.h>
 
+#include "irqs.h"
+
 #define MAX_DEV                3
 #define IRQ_LINES      3
 
index 4138d6aa4c52e6f4ab61a31af908eecdceb1e0ce..9d67f8de0772bbdefca17f6661a7ba95f9405549 100644 (file)
@@ -34,6 +34,8 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/flash.h>
 
+#include "irqs.h"
+
 #define NAS100D_SDA_PIN                5
 #define NAS100D_SCL_PIN                6
 
index 032defe111aa99d1b274649b3d4cb8d10573fe49..d69ee4066d20cf83f737979a0871a6663cba93e5 100644 (file)
@@ -21,6 +21,8 @@
 #include <asm/mach/pci.h>
 #include <asm/mach-types.h>
 
+#include "irqs.h"
+
 #define MAX_DEV                3
 #define IRQ_LINES      3
 
index 7c2b6604187e398612c76ac9ae8a51d3556bdb16..ee1877fcfafea40671eb344d61c75452740f1ee9 100644 (file)
@@ -32,6 +32,8 @@
 #include <asm/mach/flash.h>
 #include <asm/mach/time.h>
 
+#include "irqs.h"
+
 #define NSLU2_SDA_PIN          7
 #define NSLU2_SCL_PIN          6
 
index c92e5b82af3686c47fab014cb13d9c6b01da7f0a..cf83f7e24179051f74a128e42cf3d917feb3ff4b 100644 (file)
@@ -27,6 +27,8 @@
 
 #include <asm/mach/pci.h>
 
+#include "irqs.h"
+
 void __init wg302v2_pci_preinit(void)
 {
        irq_set_irq_type(IRQ_IXP4XX_GPIO8, IRQ_TYPE_LEVEL_LOW);
index 90b3c604e8b6108d1c8882e3bef0567c18cb8576..8711e299229b2350abc0cdfae51a9b9f0b3e8f84 100644 (file)
@@ -29,6 +29,8 @@
 #include <asm/mach/arch.h>
 #include <asm/mach/flash.h>
 
+#include "irqs.h"
+
 static struct flash_platform_data wg302v2_flash_data = {
        .map_name       = "cfi_probe",
        .width          = 2,