diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/ath79/dev-common.c | 6 | ||||
-rw-r--r-- | arch/mips/ath79/dev-usb.c | 2 | ||||
-rw-r--r-- | arch/mips/ath79/irq.c | 2 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-ath79/irq.h | 13 |
4 files changed, 5 insertions, 18 deletions
diff --git a/arch/mips/ath79/dev-common.c b/arch/mips/ath79/dev-common.c index 45efc63b08b6..480f5eb9d300 100644 --- a/arch/mips/ath79/dev-common.c +++ b/arch/mips/ath79/dev-common.c | |||
@@ -36,7 +36,7 @@ static struct resource ath79_uart_resources[] = { | |||
36 | static struct plat_serial8250_port ath79_uart_data[] = { | 36 | static struct plat_serial8250_port ath79_uart_data[] = { |
37 | { | 37 | { |
38 | .mapbase = AR71XX_UART_BASE, | 38 | .mapbase = AR71XX_UART_BASE, |
39 | .irq = ATH79_MISC_IRQ_UART, | 39 | .irq = ATH79_MISC_IRQ(3), |
40 | .flags = AR71XX_UART_FLAGS, | 40 | .flags = AR71XX_UART_FLAGS, |
41 | .iotype = UPIO_MEM32, | 41 | .iotype = UPIO_MEM32, |
42 | .regshift = 2, | 42 | .regshift = 2, |
@@ -62,8 +62,8 @@ static struct resource ar933x_uart_resources[] = { | |||
62 | .flags = IORESOURCE_MEM, | 62 | .flags = IORESOURCE_MEM, |
63 | }, | 63 | }, |
64 | { | 64 | { |
65 | .start = ATH79_MISC_IRQ_UART, | 65 | .start = ATH79_MISC_IRQ(3), |
66 | .end = ATH79_MISC_IRQ_UART, | 66 | .end = ATH79_MISC_IRQ(3), |
67 | .flags = IORESOURCE_IRQ, | 67 | .flags = IORESOURCE_IRQ, |
68 | }, | 68 | }, |
69 | }; | 69 | }; |
diff --git a/arch/mips/ath79/dev-usb.c b/arch/mips/ath79/dev-usb.c index 2e041977c854..bcb165b17cae 100644 --- a/arch/mips/ath79/dev-usb.c +++ b/arch/mips/ath79/dev-usb.c | |||
@@ -107,7 +107,7 @@ static void __init ath79_usb_setup(void) | |||
107 | mdelay(900); | 107 | mdelay(900); |
108 | 108 | ||
109 | ath79_usb_init_resource(ath79_ohci_resources, AR71XX_OHCI_BASE, | 109 | ath79_usb_init_resource(ath79_ohci_resources, AR71XX_OHCI_BASE, |
110 | AR71XX_OHCI_SIZE, ATH79_MISC_IRQ_OHCI); | 110 | AR71XX_OHCI_SIZE, ATH79_MISC_IRQ(6)); |
111 | platform_device_register(&ath79_ohci_device); | 111 | platform_device_register(&ath79_ohci_device); |
112 | 112 | ||
113 | ath79_usb_init_resource(ath79_ehci_resources, AR71XX_EHCI_BASE, | 113 | ath79_usb_init_resource(ath79_ehci_resources, AR71XX_EHCI_BASE, |
diff --git a/arch/mips/ath79/irq.c b/arch/mips/ath79/irq.c index 29348956d15d..df88d49bcb05 100644 --- a/arch/mips/ath79/irq.c +++ b/arch/mips/ath79/irq.c | |||
@@ -265,7 +265,7 @@ void __init arch_init_irq(void) | |||
265 | BUG(); | 265 | BUG(); |
266 | } | 266 | } |
267 | 267 | ||
268 | cp0_perfcount_irq = ATH79_MISC_IRQ_PERFC; | 268 | cp0_perfcount_irq = ATH79_MISC_IRQ(5); |
269 | mips_cpu_irq_init(); | 269 | mips_cpu_irq_init(); |
270 | ath79_misc_irq_init(); | 270 | ath79_misc_irq_init(); |
271 | 271 | ||
diff --git a/arch/mips/include/asm/mach-ath79/irq.h b/arch/mips/include/asm/mach-ath79/irq.h index 3dda4c24571d..23e2bba42482 100644 --- a/arch/mips/include/asm/mach-ath79/irq.h +++ b/arch/mips/include/asm/mach-ath79/irq.h | |||
@@ -26,19 +26,6 @@ | |||
26 | #define ATH79_IP2_IRQ_COUNT 2 | 26 | #define ATH79_IP2_IRQ_COUNT 2 |
27 | #define ATH79_IP2_IRQ(_x) (ATH79_IP2_IRQ_BASE + (_x)) | 27 | #define ATH79_IP2_IRQ(_x) (ATH79_IP2_IRQ_BASE + (_x)) |
28 | 28 | ||
29 | #define ATH79_MISC_IRQ_TIMER (ATH79_MISC_IRQ_BASE + 0) | ||
30 | #define ATH79_MISC_IRQ_ERROR (ATH79_MISC_IRQ_BASE + 1) | ||
31 | #define ATH79_MISC_IRQ_GPIO (ATH79_MISC_IRQ_BASE + 2) | ||
32 | #define ATH79_MISC_IRQ_UART (ATH79_MISC_IRQ_BASE + 3) | ||
33 | #define ATH79_MISC_IRQ_WDOG (ATH79_MISC_IRQ_BASE + 4) | ||
34 | #define ATH79_MISC_IRQ_PERFC (ATH79_MISC_IRQ_BASE + 5) | ||
35 | #define ATH79_MISC_IRQ_OHCI (ATH79_MISC_IRQ_BASE + 6) | ||
36 | #define ATH79_MISC_IRQ_DMA (ATH79_MISC_IRQ_BASE + 7) | ||
37 | #define ATH79_MISC_IRQ_TIMER2 (ATH79_MISC_IRQ_BASE + 8) | ||
38 | #define ATH79_MISC_IRQ_TIMER3 (ATH79_MISC_IRQ_BASE + 9) | ||
39 | #define ATH79_MISC_IRQ_TIMER4 (ATH79_MISC_IRQ_BASE + 10) | ||
40 | #define ATH79_MISC_IRQ_ETHSW (ATH79_MISC_IRQ_BASE + 12) | ||
41 | |||
42 | #include_next <irq.h> | 29 | #include_next <irq.h> |
43 | 30 | ||
44 | #endif /* __ASM_MACH_ATH79_IRQ_H */ | 31 | #endif /* __ASM_MACH_ATH79_IRQ_H */ |