summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--baseboard/grunt/baseboard.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/baseboard/grunt/baseboard.c b/baseboard/grunt/baseboard.c
index 1c0d0d55fc..579b7758c5 100644
--- a/baseboard/grunt/baseboard.c
+++ b/baseboard/grunt/baseboard.c
@@ -586,3 +586,16 @@ uint32_t board_override_feature_flags1(uint32_t flags1)
{
return flags1;
}
+
+void board_hibernate(void)
+{
+ /*
+ * Some versions of some boards keep the port 0 PPC powered on while
+ * the EC hibernates (so Closed Case Debugging keeps working).
+ * Make sure the source FET is off and turn on the sink FET, so that
+ * plugging in AC will wake the EC. This matches the dead-battery
+ * behavior of the powered off PPC.
+ */
+ ppc_vbus_source_enable(0, 0);
+ ppc_vbus_sink_enable(0, 1);
+}