diff options
author | Louis Yung-Chieh Lo <yjlou@chromium.org> | 2014-02-12 16:37:56 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-03-06 23:14:07 +0000 |
commit | 1484116cb0173bce860c4a26aaf5d9625824a401 (patch) | |
tree | 22a2d036e2586f7735a83dd7ddba8c15707115e8 /include/power.h | |
parent | 6bdc69940188cd4f17ecde547afbbc3ad8335367 (diff) | |
download | chrome-ec-1484116cb0173bce860c4a26aaf5d9625824a401.tar.gz |
stm32l: supports fake-hibernate
We don't have available GPIO pin for power button as the hibernate
(stand-by) wake-up source. Also, we don't want to do board change.
So, put the EC in a decent infinite loop to pretend the hibernate mode
and wait for particular wake-up event. This should be fine because
the AP is already down before EC hibernates.
BUG=chrome-os-partner:25435
BRANCH=Nyan
TEST=see comment #6 of issue for detailed test steps.
Change-Id: I2cae131789f9ca5808b60d5f2495222ca9016e7c
Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/186061
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/power.h')
-rw-r--r-- | include/power.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/power.h b/include/power.h index 5469ffad3f..36054e8bd1 100644 --- a/include/power.h +++ b/include/power.h @@ -73,6 +73,13 @@ int power_has_signals(uint32_t want); int power_wait_signals(uint32_t want); /** + * Set the low-level power chipset state. + * + * @param new_state New chipset state. + */ +void power_set_state(enum power_state new_state); + +/** * Chipset-specific initialization * * @return The state the chipset should start in. Usually POWER_G3, but may |