diff options
author | Bruce <Bruce.Wan@quantatw.com> | 2016-11-10 17:34:57 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-16 19:04:45 -0800 |
commit | b565e9223d3fe5131c380030155b90e327bc27ef (patch) | |
tree | b2c28f5609f3812dcaca5ce0fcdcb31c77e4b810 | |
parent | 41dea76433c46ba0ecc797be968368410e7dc84b (diff) | |
download | chrome-ec-b565e9223d3fe5131c380030155b90e327bc27ef.tar.gz |
Snappy: 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: I8fc6ffd4e87035f8c861f6a1963b2c546f516aae
Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/409871
Commit-Ready: Devin Lu <Devin.Lu@quantatw.com>
Tested-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r-- | board/snappy/board.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/snappy/board.c b/board/snappy/board.c index 6551ad4a22..58c83929a3 100644 --- a/board/snappy/board.c +++ b/board/snappy/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 { |