summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--baseboard/grunt/baseboard.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/baseboard/grunt/baseboard.c b/baseboard/grunt/baseboard.c
index 2807464230..6c3d0955d6 100644
--- a/baseboard/grunt/baseboard.c
+++ b/baseboard/grunt/baseboard.c
@@ -821,6 +821,15 @@ void board_hibernate(void)
*/
ppc_vbus_source_enable(0, 0);
ppc_vbus_sink_enable(0, 1);
+ /*
+ * PPC1 therefore now needs to be configured the same way as PPC0,
+ * to mimic the previous dead-battery behavior and allow wake on AC
+ * plug.
+ */
+ if (!IS_ENABLED(CONFIG_HIBERNATE_PSL)) {
+ ppc_vbus_source_enable(1, 0);
+ ppc_vbus_sink_enable(1, 1);
+ }
/*
* If CCD not active, set port 0 SBU_EN=0 to avoid power leakage during