Skip to contentSkip to conversation

soc/tegra: pmc: Add wake source interrupt for MGBE

PATCH Applied Sushil Singh 2 participants 2 messages Mar 23, 2023 – Apr 3, 2023 Tegra architecture support

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 soc/tegra: pmc: Add wake source interrupt for MGBE

Add the GPIO wake interrupt for MGBE ethernet controller on Tegra234 SoC.

---

Changes in v2:
Address Jonathan's comments
Rewrite the commit description
Use "mgbe" instead of "mgbe_wake"

 drivers/soc/tegra/pmc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/soc/tegra/pmc.c +2 -1
index cf4cfbf..0f3c472 100644
@@ -3,7 +3,7 @@
  * drivers/soc/tegra/pmc.c
  *
  * Copyright (c) 2010 Google, Inc
- * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
  *
  * Author:
  *	Colin Cross <[email protected]>
@@ -4227,6 +4227,7 @@ static const char * const tegra234_reset_sources[] = {
 static const struct tegra_wake_event tegra234_wake_events[] = {
 	TEGRA_WAKE_GPIO("power", 29, 1, TEGRA234_AON_GPIO(EE, 4)),
 	TEGRA_WAKE_IRQ("rtc", 73, 10),
+	TEGRA_WAKE_GPIO("mgbe", 56, 0, TEGRA234_MAIN_GPIO(Y, 3)),
 };
 
 static const struct tegra_pmc_soc tegra234_pmc_soc = {
Signature · 1 line
2.7.4
#1 lore raw
Quoted 27 lines · Sushil Singh

Add the GPIO wake interrupt for MGBE ethernet controller on Tegra234 SoC.

---

Changes in v2:
Address Jonathan's comments
Rewrite the commit description
Use "mgbe" instead of "mgbe_wake"

 drivers/soc/tegra/pmc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/soc/tegra/pmc.c +1 -1
index cf4cfbf..0f3c472 100644
@@ -3,7 +3,7 @@
  * drivers/soc/tegra/pmc.c
  *
  * Copyright (c) 2010 Google, Inc
- * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
  *
  * Author:
  *	Colin Cross <[email protected]>

drivers/soc/tegra/pmc.c static const char * const tegra234_reset_sources[] = { · line 4231

Quoted 5 lines
drivers/soc/tegra/pmc.c +1 -0
@@ -4227,6 +4227,7 @@ static const char * const tegra234_reset_sources[] = {
 static const struct tegra_wake_event tegra234_wake_events[] = {
 	TEGRA_WAKE_GPIO("power", 29, 1, TEGRA234_AON_GPIO(EE, 4)),
 	TEGRA_WAKE_IRQ("rtc", 73, 10),
+	TEGRA_WAKE_GPIO("mgbe", 56, 0, TEGRA234_MAIN_GPIO(Y, 3)),
 };

Applied, though I did sort this into the right place (these are ordered by wake number).

Thanks,
Thierry