soc/tegra: pmc: Enable PMIC wake event on Tegra186
authorThierry Reding <treding@nvidia.com>
Fri, 17 Apr 2020 17:11:16 +0000 (19:11 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 21 Apr 2020 22:04:19 +0000 (00:04 +0200)
The PMIC wake event can be used to bring the system out of suspend based
on certain events happening on the PMIC (such as an RTC alarm).

Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
drivers/soc/tegra/pmc.c

index 1c533a9..72cfda7 100644 (file)
@@ -3193,6 +3193,7 @@ static void tegra186_pmc_setup_irq_polarity(struct tegra_pmc *pmc,
 }
 
 static const struct tegra_wake_event tegra186_wake_events[] = {
+       TEGRA_WAKE_IRQ("pmu", 24, 209),
        TEGRA_WAKE_GPIO("power", 29, 1, TEGRA186_AON_GPIO(FF, 0)),
        TEGRA_WAKE_IRQ("rtc", 73, 10),
 };