[ARM] pxa/magician: register pda_power IRQs as rising/falling edge
authorPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 9 Feb 2009 16:34:07 +0000 (17:34 +0100)
committerEric Miao <eric.miao@marvell.com>
Mon, 9 Mar 2009 13:22:35 +0000 (21:22 +0800)
so they can be shared with gpio_vbus.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-pxa/magician.c

index 7fd31235c26e131efb3a4629aebc8b4c0e853938..9ca16ec48f64b368787cff46e703ffc646ee8a95 100644 (file)
@@ -626,13 +626,15 @@ static struct pda_power_pdata power_supply_info = {
 static struct resource power_supply_resources[] = {
        [0] = {
                .name  = "ac",
-               .flags = IORESOURCE_IRQ,
+               .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE |
+                        IORESOURCE_IRQ_LOWEDGE,
                .start = IRQ_MAGICIAN_VBUS,
                .end   = IRQ_MAGICIAN_VBUS,
        },
        [1] = {
                .name  = "usb",
-               .flags = IORESOURCE_IRQ,
+               .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE |
+                        IORESOURCE_IRQ_LOWEDGE,
                .start = IRQ_MAGICIAN_VBUS,
                .end   = IRQ_MAGICIAN_VBUS,
        },