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 /power/common.c | |
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 'power/common.c')
-rw-r--r-- | power/common.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/power/common.c b/power/common.c index 3a92780bf4..816ab50716 100644 --- a/power/common.c +++ b/power/common.c @@ -114,11 +114,6 @@ int power_wait_signals(uint32_t want) return EC_SUCCESS; } -/** - * Set the low-level power chipset state. - * - * @param new_state New chipset state. - */ void power_set_state(enum power_state new_state) { /* Record the time we go into G3 */ |