enabling EXT_WAKEUP interrupts on PXA3xx
Eric Miao
eric.y.miao at gmail.com
Tue Nov 10 02:34:01 EST 2009
On Tue, Nov 10, 2009 at 3:28 PM, Daniel Mack <daniel at caiaq.de> wrote:
> On Tue, Nov 10, 2009 at 09:22:00AM +0200, Mike Rapoport wrote:
>> We need to enable EXT_WAKEUP interrupts on PXA3xx and I wonder what would be the
>> best way to do it.
>> I see two possibilities:
>> 1) add 'if (irq == IRQ_WAKEUPx)' statements to pxa_{un}mask_irq functions in
>> arch/arm/mach-pxa/irq.c
>> 2) register additional irq_chip in arch/arm/mach-pxa/pxa3xx.c that will be
>> responsible for handling EXT_WAKEUP (and probably other pxa3xx specific) interrupts.
>>
>> What do you prefer?
>
> I'm just calling
>
> enable_irq_wake(IRQ_WAKEUP0);
>
> from my board support code, and it works fine - no need to change
> anything else.
>
Daniel,
I think Mike is talking about "interrupt" on EXT_WAKEUP0, which involves
register PECR.
My POV is the 2nd way to go, should be better and cleaner, but I'm always
wondering where to add these additional two interrupts, possibly before
the GPIO IRQs or after.
> Daniel
>
More information about the linux-arm-kernel
mailing list