-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Daniel Glöckner
authored and
Chris Zankel
committed
Jun 22, 2009
1 parent
f24e552
commit 0b3eb21
Showing
5 changed files
with
171 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#ifndef _XTENSA_VARIANT_S6000_GPIO_H | ||
#define _XTENSA_VARIANT_S6000_GPIO_H | ||
|
||
extern int s6_gpio_init(void); | ||
extern int s6_gpio_init(u32 afsel); | ||
|
||
#endif /* _XTENSA_VARIANT_S6000_GPIO_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#ifndef __XTENSA_S6000_IRQ_H | ||
#define __XTENSA_S6000_IRQ_H | ||
#ifndef _XTENSA_S6000_IRQ_H | ||
#define _XTENSA_S6000_IRQ_H | ||
|
||
#define NO_IRQ (-1) | ||
#define VARIANT_NR_IRQS 8 /* GPIO interrupts */ | ||
|
||
extern void variant_irq_enable(unsigned int irq); | ||
extern void variant_irq_disable(unsigned int irq); | ||
|
||
#endif /* __XTENSA_S6000_IRQ_H */ |