From fc04d0c679d73d0dc054cefd4707f07b70b1b201 Mon Sep 17 00:00:00 2001 From: Revanth Kumar Uppala Date: Thu, 30 May 2024 09:00:17 +0000 Subject: [PATCH] NVIDIA: SAUCE: soc/tegra: pmc: Add Tegra264 ethernet wake event Enable ethernet wake on lan event for the Tegra264 SoC. WOL pin of ethernet is connected to POWER_BTN_DEB_N of T264. So, add respective GPIO as wake source. http://nvbugs/4478230 Signed-off-by: Revanth Kumar Uppala Signed-off-by: Bodla Rakesh Babu Signed-off-by: Laxman Dewangan Acked-by: Noah Wager Acked-by: Jacob Martin Signed-off-by: Noah Wager --- drivers/soc/tegra/tegra264-pmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/tegra/tegra264-pmc.c b/drivers/soc/tegra/tegra264-pmc.c index 8570c946193f..04d9ab30bcf7 100644 --- a/drivers/soc/tegra/tegra264-pmc.c +++ b/drivers/soc/tegra/tegra264-pmc.c @@ -30,6 +30,7 @@ #include #include +#include static int tegra_pmc_reboot_notify(struct notifier_block *this, @@ -372,6 +373,7 @@ static const char * const tegra264_reset_sources[] = { static const struct tegra_wake_event tegra264_wake_events[] = { TEGRA_WAKE_IRQ("rtc", 65, 548), + TEGRA_WAKE_GPIO("power_btn", 5, 1, TEGRA264_AON_GPIO(AA, 5)), }; static const struct tegra_pmc_soc tegra264_pmc_soc = {