summaryrefslogtreecommitdiff
path: root/baseboard/grunt/baseboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'baseboard/grunt/baseboard.c')
-rw-r--r--baseboard/grunt/baseboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/baseboard/grunt/baseboard.c b/baseboard/grunt/baseboard.c
index 2c5d680235..9b65f7d4a4 100644
--- a/baseboard/grunt/baseboard.c
+++ b/baseboard/grunt/baseboard.c
@@ -817,4 +817,11 @@ void board_hibernate(void)
*/
ppc_vbus_source_enable(0, 0);
ppc_vbus_sink_enable(0, 1);
+
+ /*
+ * If CCD not active, set port 0 SBU_EN=0 to avoid power leakage during
+ * hibernation (b/175674973).
+ */
+ if (gpio_get_level(GPIO_CCD_MODE_ODL))
+ ppc_set_sbu(0, 0);
}