xtensa: support s6000 gpio irqs and alternate function selection
authorDaniel Glöckner <dg@emlix.com>
Tue, 5 May 2009 15:03:22 +0000 (15:03 +0000)
committerChris Zankel <chris@zankel.net>
Mon, 22 Jun 2009 09:37:26 +0000 (02:37 -0700)
commit0b3eb21b2f2222c4c1e3e21fc3cd427404d3991a
tree1bb4cd18ec2a18c22378bb5458d9dd7763108104
parentf24e552c2dc3221dc7bd2296fd8a705283c4b2d7
xtensa: support s6000 gpio irqs and alternate function selection

Implement an irq chip to handle interrupts via gpio.  The GPIO chip
initialization function now takes a bitmask denoting pins that should
be configured for their alternate function.

changes compared to v1:
- fixed bug on edge interrupt configuration
- accommodated to function name change
- moved definition of VARIANT_NR_IRQS to this patch
- renamed __XTENSA_S6000_IRQ_H to _XTENSA_S6000_IRQ_H as requested

Signed-off-by: Daniel Glöckner <dg@emlix.com>
Signed-off-by: Johannes Weiner <jw@emlix.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/include/asm/gpio.h
arch/xtensa/platforms/s6105/setup.c
arch/xtensa/variants/s6000/gpio.c
arch/xtensa/variants/s6000/include/variant/gpio.h
arch/xtensa/variants/s6000/include/variant/irq.h