diff options
author | Aseda Aboagye <aaboagye@google.com> | 2020-06-05 17:25:08 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-21 06:33:31 +0000 |
commit | 33aa3c9a732fccefba54d5bd15c321ce6cbc8d80 (patch) | |
tree | eaf62bc673e15d2a45f7966ff71b682dab439663 /common/vstore.c | |
parent | 36cf95c854f00a6457c85edb97cedf6891cc1f6c (diff) | |
download | chrome-ec-33aa3c9a732fccefba54d5bd15c321ce6cbc8d80.tar.gz |
dedede: npcx7: Toggle ADC interrupts to save power
In order to save EC power and allow deep sleep to be entered, this
change disables the ADC interrupts after booting up into S0, and then
enables them when the system is attempting to power on. (Via power
button or lid open or something else).
BUG=b:157887329
BRANCH=None
TEST=Build and flash waddledoo. Boot DUT, verify it can boot to S0.
Enter `apshutdown` command on the EC console, verify that DUT shuts
down. Verify that 15s later all power signals indicate low. Press
power button, verify DUT boots up again. Repeat shutdown but
initiated from the AP, verify power button can boot DUT again. Repeat
shutdown and verify that a lid open can wake the DUT.
TEST=Verify that suspend and resume continue to work. Verify that ADC
interrupts remain disabled in suspend.
TEST=Setup an RTC wake and shutdown to S5. Verify that AP wakes up
after RTC alarm and boots all the way back up.
TEST=Verify that power consumption is reduced when ADC interrupts are
disabled.
Change-Id: Ib9f6c30533afe8f354d731bb0f30ea207b44c601
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2233847
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
Auto-Submit: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'common/vstore.c')
0 files changed, 0 insertions, 0 deletions