soc/tegra: pmc: Add USB port wake events for Tegra194
authorThierry Reding <treding@nvidia.com>
Mon, 11 Jul 2022 15:40:31 +0000 (17:40 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 15 Sep 2022 10:40:04 +0000 (12:40 +0200)
Tegra194 supports waking up from suspend when activity is detected on
any of the USB ports. Add these wake events so that the system can be
woken on such activity.

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

index 48286bc..03d614a 100644 (file)
@@ -3776,6 +3776,13 @@ static const struct tegra_wake_event tegra194_wake_events[] = {
        TEGRA_WAKE_IRQ("pmu", 24, 209),
        TEGRA_WAKE_GPIO("power", 29, 1, TEGRA194_AON_GPIO(EE, 4)),
        TEGRA_WAKE_IRQ("rtc", 73, 10),
+       TEGRA_WAKE_SIMPLE("usb3-port-0", 76),
+       TEGRA_WAKE_SIMPLE("usb3-port-1", 77),
+       TEGRA_WAKE_SIMPLE("usb3-port-2-3", 78),
+       TEGRA_WAKE_SIMPLE("usb2-port-0", 79),
+       TEGRA_WAKE_SIMPLE("usb2-port-1", 80),
+       TEGRA_WAKE_SIMPLE("usb2-port-2", 81),
+       TEGRA_WAKE_SIMPLE("usb2-port-3", 82),
 };
 
 static const struct tegra_pmc_soc tegra194_pmc_soc = {