From d942d778b1cc9a3b72f4c92ddf1e6312102a4ad4 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Mon, 9 Feb 2009 17:34:07 +0100 Subject: [PATCH] [ARM] pxa/magician: register pda_power IRQs as rising/falling edge so they can be shared with gpio_vbus. Signed-off-by: Philipp Zabel Signed-off-by: Eric Miao --- arch/arm/mach-pxa/magician.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-pxa/magician.c b/arch/arm/mach-pxa/magician.c index 7fd31235c26e..9ca16ec48f64 100644 --- a/arch/arm/mach-pxa/magician.c +++ b/arch/arm/mach-pxa/magician.c @@ -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, }, -- 2.39.5