OMAP3: PM: Enable wakeup from ads7846 touchscreen
authorRanjith Lohithakshan <ranjithl@ti.com>
Sat, 8 May 2010 07:09:21 +0000 (12:39 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 12 May 2010 16:39:00 +0000 (09:39 -0700)
commit7a44ad2fce65ed2811ebef4adbc38bcc82cd44a7
treeaa7d7de2085700f3b86a82c3a1fc51910e72b96a
parentf3a8cde6bc58d97723cbc965d4d03a7cd86152fb
OMAP3: PM: Enable wakeup from ads7846 touchscreen

This  patch enables the wakeup capabilities of ads7846 touchscreen driver.
ads7846 driver can now wakeup the system from suspend on OMAP3430 EVM
and SDP boards.

The earlier approach of enabling wakeup on the touchscreen GPIO pin during
board level mux init is removed. Instead the wakeup flag in
ads7846_platform_data is enabled. Based on the flag, the ads7846 driver
will do an enable_irq_wake which will eventually call into the OMAP GPIO
layer and will enable the wakeup capability on the GPIO pin.

Signed-off-by: Ranjith Lohithakshan <ranjithl@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/board-3430sdp.c
arch/arm/mach-omap2/board-omap3evm.c