]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: tegra186: Implement wake event support
authorThierry Reding <treding@nvidia.com>
Wed, 2 Oct 2019 14:45:02 +0000 (16:45 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 4 Oct 2019 22:07:06 +0000 (00:07 +0200)
commit2a36550567307b881ce570a81189682ae1c9d08d
tree5975e71755d02430d7d649d688f52f50d9d1a881
parentab3dd9cc24d4d49739cec0c7763e473ddd22f9c1
gpio: tegra186: Implement wake event support

The GPIO controller doesn't have any controls to enable the system to
wake up from low power states based on activity on GPIO pins. An extra
hardware block that is part of the power management controller (PMC)
contains these controls. In order for the GPIO controller to be able
to cooperate with the PMC, obtain a reference to the PMC's IRQ domain
and make it a parent to the GPIO controller's IRQ domain. This way the
PMC gets an opportunity to program the additional registers required
to enable wakeup sources on suspend.

Based on additional work by Bitan Biswas <bbiswas@nvidia.com>.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20191002144502.156393-2-thierry.reding@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Kconfig
drivers/gpio/gpio-tegra186.c