diff options
author | Aseda Aboagye <aaboagye@google.com> | 2020-04-16 14:03:24 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-02 05:30:17 +0000 |
commit | b7633ed1efef02b83b6fe7e70c28e382bbaebd86 (patch) | |
tree | 100abf8051095dddb387ec866fcca5a30c19bf03 /board/waddledoo | |
parent | f2379de6f3e694153e782f7a10b074b57c226a72 (diff) | |
download | chrome-ec-b7633ed1efef02b83b6fe7e70c28e382bbaebd86.tar.gz |
waddledoo: Hibernate charger ICs when hibernating
When the EC is going into hibernate, we need to also place both
charger ICs into their lowest power mode.
BUG=b:150236134
BRANCH=None
TEST=Build and flash waddledoo. Verify DUT still wakes up from AC.
TEST=Verify that power consumption is reduced in Z state.
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Change-Id: Id3978ebdaf0fee6be97982612e98ee7a116caf47
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2153809
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/waddledoo')
-rw-r--r-- | board/waddledoo/board.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/waddledoo/board.c b/board/waddledoo/board.c index 3f1f9fd53d..91fb6ab785 100644 --- a/board/waddledoo/board.c +++ b/board/waddledoo/board.c @@ -85,6 +85,16 @@ void board_init(void) } DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT); +void board_hibernate(void) +{ + /* + * Both charger ICs need to be put into their "low power mode" before + * entering the Z-state. + */ + raa489000_hibernate(1); + raa489000_hibernate(0); +} + void board_reset_pd_mcu(void) { /* |