gpio: tegra: add gpio wakeup source handling
authorJoseph Lo <josephl@nvidia.com>
Wed, 3 Apr 2013 11:31:44 +0000 (19:31 +0800)
committerStephen Warren <swarren@nvidia.com>
Wed, 3 Apr 2013 20:31:20 +0000 (14:31 -0600)
commit203f31cb86eb6aa4c49711e7ca25a7660efc39b8
tree68dc169ee437a4191dde36366e70e7f8ea5112b7
parent0337c3e0c3cbbb3a4f411c292f52fcc314abae67
gpio: tegra: add gpio wakeup source handling

This patch add the gpio wakeup source handling for the Tegra platform. It
was be done by enabling the irq for the gpio in the gpio controller and
enabling the bank irq of the gpio in the Tegra legacy irq controller when
the system going to suspend.

Based on the work by:
Varun Wadekar <vwadekar@nvidia.com>

Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Joseph Lo <josephl@nvidia.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/gpio/gpio-tegra.c