]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/gpio/cs5535-gpio.c: add some additional cs5535-specific GPIO functionality
authorAndres Salomon <dilinger@queued.net>
Thu, 13 Jan 2011 01:00:10 +0000 (17:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:13 +0000 (08:03 -0800)
commit0fcbeb1342441fcf690c26a70d18b85cdd3d6ba4
treeae3a1c48954cec0a7f9d0b16207e9bfe6c4d22e6
parentf0686f79daf4f1e3a3255ba4aebe027ece177664
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>
drivers/gpio/Kconfig
drivers/gpio/cs5535-gpio.c
include/linux/cs5535.h