diff options
author | Andres Salomon <dilinger@queued.net> | 2011-01-12 20:00:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 11:03:13 -0500 |
commit | 1b912c1bca5c162e611384fe7d39c916e081701a (patch) | |
tree | ae3a1c48954cec0a7f9d0b16207e9bfe6c4d22e6 /include/linux/cs5535.h | |
parent | 5f003feba2a8761d2ee7b367df5a0fe6b729dc8f (diff) |
drivers/gpio/cs5535-gpio.c: add some additional cs5535-specific GPIO functionality
This adds (well, re-adds actually) handling for events/IRQs through cs5535
GPIOs. In the wild and wooly world of CS5535, setup_event() is for
assigning an IRQ to a GPIO filter/event pair, and set_irq() sets up the
pair to trigger IRQs.
These should really only be used in highly platform-specific drivers (such
as OLPC's DCON driver). Sadly, because set_irq() uses MSRs, this causes
the driver to become X86-specific.
Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/cs5535.h')
-rw-r--r-- | include/linux/cs5535.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/cs5535.h b/include/linux/cs5535.h index d5a1d4810b80..213cc50b5809 100644 --- a/include/linux/cs5535.h +++ b/include/linux/cs5535.h | |||
@@ -111,6 +111,8 @@ static inline int cs5535_has_vsa2(void) | |||
111 | void cs5535_gpio_set(unsigned offset, unsigned int reg); | 111 | void cs5535_gpio_set(unsigned offset, unsigned int reg); |
112 | void cs5535_gpio_clear(unsigned offset, unsigned int reg); | 112 | void cs5535_gpio_clear(unsigned offset, unsigned int reg); |
113 | int cs5535_gpio_isset(unsigned offset, unsigned int reg); | 113 | int cs5535_gpio_isset(unsigned offset, unsigned int reg); |
114 | int cs5535_gpio_set_irq(unsigned group, unsigned irq); | ||
115 | void cs5535_gpio_setup_event(unsigned offset, int pair, int pme); | ||
114 | 116 | ||
115 | /* MFGPTs */ | 117 | /* MFGPTs */ |
116 | 118 | ||