aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorLennert Buytenhek <buytenh@wantstofly.org>2008-08-26 10:04:05 -0400
committerNicolas Pitre <nico@cam.org>2008-09-25 16:26:44 -0400
commit144f814a439ff0b8ad62c51d74e56b490e651ded (patch)
treef7d8870cf757469767829bba32fbf587ec2ecfcc /arch/arm
parenteeff6d8600afa69fa06ef69a6ffe427b1189cef4 (diff)
[ARM] Kirkwood: wire up ethernet error interrupt
Wire up the ethernet port's error interrupt so that the mv643xx_eth driver can sleep for SMI event completion instead of having to busy-wait for it. Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-kirkwood/common.c7
-rw-r--r--arch/arm/mach-kirkwood/include/mach/irqs.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c
index 189f16f3619d..435fb35a4845 100644
--- a/arch/arm/mach-kirkwood/common.c
+++ b/arch/arm/mach-kirkwood/common.c
@@ -108,6 +108,11 @@ static struct resource kirkwood_ge00_shared_resources[] = {
108 .start = GE00_PHYS_BASE + 0x2000, 108 .start = GE00_PHYS_BASE + 0x2000,
109 .end = GE00_PHYS_BASE + 0x3fff, 109 .end = GE00_PHYS_BASE + 0x3fff,
110 .flags = IORESOURCE_MEM, 110 .flags = IORESOURCE_MEM,
111 }, {
112 .name = "ge00 err irq",
113 .start = IRQ_KIRKWOOD_GE00_ERR,
114 .end = IRQ_KIRKWOOD_GE00_ERR,
115 .flags = IORESOURCE_IRQ,
111 }, 116 },
112}; 117};
113 118
@@ -117,7 +122,7 @@ static struct platform_device kirkwood_ge00_shared = {
117 .dev = { 122 .dev = {
118 .platform_data = &kirkwood_ge00_shared_data, 123 .platform_data = &kirkwood_ge00_shared_data,
119 }, 124 },
120 .num_resources = 1, 125 .num_resources = ARRAY_SIZE(kirkwood_ge00_shared_resources),
121 .resource = kirkwood_ge00_shared_resources, 126 .resource = kirkwood_ge00_shared_resources,
122}; 127};
123 128
diff --git a/arch/arm/mach-kirkwood/include/mach/irqs.h b/arch/arm/mach-kirkwood/include/mach/irqs.h
index 6fd05838c72d..ffab89f21c11 100644
--- a/arch/arm/mach-kirkwood/include/mach/irqs.h
+++ b/arch/arm/mach-kirkwood/include/mach/irqs.h
@@ -50,6 +50,7 @@
50#define IRQ_KIRKWOOD_GPIO_HIGH_0_7 39 50#define IRQ_KIRKWOOD_GPIO_HIGH_0_7 39
51#define IRQ_KIRKWOOD_GPIO_HIGH_8_15 40 51#define IRQ_KIRKWOOD_GPIO_HIGH_8_15 40
52#define IRQ_KIRKWOOD_GPIO_HIGH_16_23 41 52#define IRQ_KIRKWOOD_GPIO_HIGH_16_23 41
53#define IRQ_KIRKWOOD_GE00_ERR 46
53 54
54/* 55/*
55 * KIRKWOOD General Purpose Pins 56 * KIRKWOOD General Purpose Pins