ar71xx: merge AR71XX_IRQ_CPU_{PCI,WMAC} into AR71XX_IRQ_CPU_IP2
authorGabor Juhos <juhosg@openwrt.org>
Thu, 18 Mar 2010 19:18:46 +0000 (19:18 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 18 Mar 2010 19:18:46 +0000 (19:18 +0000)
SVN-Revision: 20279

target/linux/ar71xx/files/arch/mips/ar71xx/dev-ar913x-wmac.c
target/linux/ar71xx/files/arch/mips/ar71xx/irq.c
target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h

index 67eaa833b8dbdb4423e7f3803a33cf345a9d2bda..024d29044bed3b49489c315c888ed02a96e6e65e 100644 (file)
@@ -31,8 +31,8 @@ static struct resource ar913x_wmac_resources[] = {
                .end    = AR91XX_WMAC_BASE + AR91XX_WMAC_SIZE - 1,
                .flags  = IORESOURCE_MEM,
        }, {
-               .start  = AR71XX_CPU_IRQ_WMAC,
-               .end    = AR71XX_CPU_IRQ_WMAC,
+               .start  = AR71XX_CPU_IRQ_IP2,
+               .end    = AR71XX_CPU_IRQ_IP2,
                .flags  = IORESOURCE_IRQ,
        },
 };
index 3a91e00aad69d7ccd4a17a2dd0b2be09a335e70a..25d643d035543c1df5057a4218d54131a8a6173f 100644 (file)
@@ -95,7 +95,7 @@ static void __init ar71xx_pci_irq_init(void)
                                         handle_level_irq);
        }
 
-       setup_irq(AR71XX_CPU_IRQ_PCI, &ar71xx_pci_irqaction);
+       setup_irq(AR71XX_CPU_IRQ_IP2, &ar71xx_pci_irqaction);
 }
 
 static void ar724x_pci_irq_dispatch(void)
@@ -179,7 +179,7 @@ static void __init ar724x_pci_irq_init(void)
                                         handle_level_irq);
        }
 
-       setup_irq(AR71XX_CPU_IRQ_PCI, &ar724x_pci_irqaction);
+       setup_irq(AR71XX_CPU_IRQ_IP2, &ar724x_pci_irqaction);
 }
 #else
 static inline void ar71xx_pci_irq_init(void) {};
@@ -368,7 +368,7 @@ static void __init ar71xx_misc_irq_init(void)
 
 static void ar913x_wmac_irq_dispatch(void)
 {
-       do_IRQ(AR71XX_CPU_IRQ_WMAC);
+       do_IRQ(AR71XX_CPU_IRQ_IP2);
 }
 
 asmlinkage void plat_irq_dispatch(void)
index 1a1ec4ba1a68b44a4f784d66bb84b30dcb5df658..8ac5598ce3b3b015fe93e1546f18433ba5e2a463 100644 (file)
@@ -79,8 +79,7 @@
 #define AR71XX_PCI_IRQ_BASE     48
 #define AR71XX_PCI_IRQ_COUNT   8
 
-#define AR71XX_CPU_IRQ_PCI     (AR71XX_CPU_IRQ_BASE + 2)
-#define AR71XX_CPU_IRQ_WMAC    (AR71XX_CPU_IRQ_BASE + 2)
+#define AR71XX_CPU_IRQ_IP2     (AR71XX_CPU_IRQ_BASE + 2)
 #define AR71XX_CPU_IRQ_USB     (AR71XX_CPU_IRQ_BASE + 3)
 #define AR71XX_CPU_IRQ_GE0     (AR71XX_CPU_IRQ_BASE + 4)
 #define AR71XX_CPU_IRQ_GE1     (AR71XX_CPU_IRQ_BASE + 5)