summaryrefslogtreecommitdiff
path: root/board/yorp/board.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-05-07 16:10:03 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-05-08 13:17:16 -0700
commit41487381348ce30ac45f27b67af1dca013e2096c (patch)
tree8bc1d0d26a6d4bebe545c94d8832cb1ea7bca0da /board/yorp/board.c
parent548e4d9708cc4402497ed290daf4df672114302c (diff)
downloadchrome-ec-41487381348ce30ac45f27b67af1dca013e2096c.tar.gz
yorp: renegotiate Vbus down before hibernating
When we support the lowest power mode for Nuvoton in the next spin, we will shed the TCPC/PPC power rail during hibernate. Before we drop the power for the PPCs we need to ensure that Vbus is lower than the hard-coded 6.8V dead-battery mode over-voltage threshold, otherwise we will lock ourselves out of power. BRANCH=none BUG=b:79218851 TEST=verified that yorp renegotiates Vbus to 5V when entering hibernate via ec `hibernate` cmd. Change-Id: I4a98573eefb5757eea02dc48c64d5f9358b5e0b7 Signed-off-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1047954 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'board/yorp/board.c')
-rw-r--r--board/yorp/board.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/board/yorp/board.c b/board/yorp/board.c
index 8a7513768a..2606bdb1a3 100644
--- a/board/yorp/board.c
+++ b/board/yorp/board.c
@@ -201,27 +201,6 @@ static void board_chipset_suspend(void)
}
DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT);
-void board_hibernate(void)
-{
- int port;
-
- /*
- * To support hibernate called from console commands, ectool commands
- * and key sequence, shutdown the AP before hibernating.
- */
- chipset_force_shutdown();
-
- /* Added delay to allow AP power state machine to settle down */
- msleep(100);
-
- /*
- * Enable SINK_CTRL on the PPC. This is required to wake up from
- * hibernate when AC is connected. (b/79173959)
- */
- for (port = 0; port < CONFIG_USB_PD_PORT_COUNT; port++)
- ppc_vbus_sink_enable(port, 1);
-}
-
enum adc_channel board_get_vbus_adc(int port)
{
return port ? ADC_VBUS_C1 : ADC_VBUS_C0;