diff options
author | Bruce <Bruce.Wan@quantatw.com> | 2016-11-10 17:27:49 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-12 20:33:10 -0800 |
commit | 4975e8db75d0af415931e027180977df2f3a2610 (patch) | |
tree | ad93407ca10b83b4ddc95d681bfc9274ca6e9d8e /board | |
parent | b7c2f5c295700bd3d51006bfbd231eafee5af9ea (diff) | |
download | chrome-ec-4975e8db75d0af415931e027180977df2f3a2610.tar.gz |
Pyro: Enable BD9995X power save mode when hibernated
Turn off the charger BGATE when the system is hibernated to
save maximum power.
BUG=None
BRANCH=None
TEST=make buildall
Change-Id: Ifd5d50bbdfde1383538e3ce86f002845798940ac
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/409853
Commit-Ready: Keith Tzeng <keith.tzeng@quantatw.com>
Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/pyro/board.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/pyro/board.c b/board/pyro/board.c index 11fbc3c0c6..ebdb6d6198 100644 --- a/board/pyro/board.c +++ b/board/pyro/board.c @@ -921,6 +921,9 @@ void board_hibernate(void) /* Enable both the VBUS & VCC ports before entering PG3 */ bd9995x_select_input_port(BD9995X_CHARGE_PORT_BOTH, 1); + + /* Turn BGATE OFF for saving the power */ + bd9995x_set_power_save_mode(BD9995X_PWR_SAVE_MAX); } struct { |