summaryrefslogtreecommitdiff
path: root/common/gaia_power.c
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-08-13 16:05:29 -0700
committerGerrit <chrome-bot@google.com>2012-08-16 13:09:07 -0700
commit66e9d10be329e5e4da28207b1f5dfb9e66ac9b2e (patch)
tree245d55f52b0b980187642a99e62e0987d8588c32 /common/gaia_power.c
parent8c44bd4932a22e6e7d49a29028bcd0e62f13ddc5 (diff)
downloadchrome-ec-66e9d10be329e5e4da28207b1f5dfb9e66ac9b2e.tar.gz
stm32: don't go to stop mode in suspend
When the AP is suspended, we are using the timer TMR2 to do the power led "breathing", so we cannot cut the clocks as they are used for this PWM. The EC will be in idle mode instead of stop mode during S3. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=chrome-os-partner:8866 TEST=on Snow, suspend the AP and see you can still type in the EC console and the power led is "breathing". Change-Id: Ib4cce36c5a9bf649996bf627baeb30ef2a3221a8 Reviewed-on: https://gerrit.chromium.org/gerrit/30057 Reviewed-by: David Hendricks <dhendrix@chromium.org> Reviewed-by: Rong Chang <rongchang@chromium.org> Tested-by: Rong Chang <rongchang@chromium.org> Commit-Ready: <arscott@google.com>
Diffstat (limited to 'common/gaia_power.c')
-rw-r--r--common/gaia_power.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/gaia_power.c b/common/gaia_power.c
index d440ff5929..bee1d9e0ed 100644
--- a/common/gaia_power.c
+++ b/common/gaia_power.c
@@ -226,9 +226,7 @@ void gaia_suspend_event(enum gpio_signal signal)
powerled_set_state(POWERLED_STATE_OFF);
/* Call hooks here since we don't know it prior to AP suspend */
hook_notify(HOOK_CHIPSET_SUSPEND, 0);
- enable_sleep(SLEEP_MASK_AP_RUN);
} else {
- disable_sleep(SLEEP_MASK_AP_RUN);
powerled_set_state(POWERLED_STATE_ON);
hook_notify(HOOK_CHIPSET_RESUME, 0);
}