summaryrefslogtreecommitdiff
path: root/include/clock.h
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2012-08-15 04:48:34 +0800
committerGerrit <chrome-bot@google.com>2012-08-16 03:36:19 -0700
commitcebbe4c0e708be36140c8c0fdce45a106f824650 (patch)
tree365ddbf198f5b87046241d7607e0af928e755602 /include/clock.h
parent9c45a309b9d462358dfecd4713340ea23d9f12f2 (diff)
downloadchrome-ec-cebbe4c0e708be36140c8c0fdce45a106f824650.tar.gz
daisy: Modify charging flow to comply charging specification
This change corrects charger interrupt event handling, charger enable gpio, battery full condition, EC deep sleep mode support when AC unplugged, and lid controlled power off. Signed-off-by: Rong Chang <rongchang@chromium.org> BRANCH=snow BUG=chrome-os-partner:12573,12574,12575 TEST=manual - ec console command 'gpioget': - SPI1_MISO should be 0 when AP off - CHARGER_EN should be 0 after AC unplugged - charging led should be off after AC unplugged - when battery remaining charge < 3%, system should be powered off without AC. - ec console command 'sleepmask 0', turn off AP: - deep sleep only when AC unplugged Change-Id: I0f63835dae67d90de7a8c8c6c3537ca9a16faed4 Reviewed-on: https://gerrit.chromium.org/gerrit/30316 Commit-Ready: Rong Chang <rongchang@chromium.org> Reviewed-by: Rong Chang <rongchang@chromium.org> Tested-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'include/clock.h')
-rw-r--r--include/clock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clock.h b/include/clock.h
index 1d2506029d..4eb8a5b065 100644
--- a/include/clock.h
+++ b/include/clock.h
@@ -45,6 +45,7 @@ enum {
SLEEP_MASK_AP_RUN = (1 << 0), /* the main CPU is running */
SLEEP_MASK_UART = (1 << 1), /* UART communication on-going */
SLEEP_MASK_I2C = (1 << 2), /* I2C master communication on-going */
+ SLEEP_MASK_CHARGING = (1 << 3), /* Charging loop on-going */
SLEEP_MASK_FORCE = (1 << 31), /* Force disabling low power modes */
};