summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2012-10-08 20:39:40 +0800
committerGerrit <chrome-bot@google.com>2012-10-08 23:05:45 -0700
commite679d8504d6d34aa8e9d7d7fb9a78b38f35e9415 (patch)
tree26d6d07bb10b901769566460a70778a290d38ac8 /include
parentfcd0f0a5e485653d40d6409802d1a26c4595d605 (diff)
downloadchrome-ec-e679d8504d6d34aa8e9d7d7fb9a78b38f35e9415.tar.gz
link: Revive under voltage protection battery pack
Experiments showed that some UVP batteries took ~30 seconds to restart its gas gauge IC. This change adds 30 seconds polling check to determine the condition. Signed-off-by: Rong Chang <rongchang@chromium.org> BRANCH=link BUG=chrome-os-partner:13923 BUG=chrome-os-partner:14094 TEST=manual Disconnect battery and plug in charger. The charging LED should turn red after 30 seconds. Change-Id: I425e63c428aeeaf1468bc2f9886457de1145cada Reviewed-on: https://gerrit.chromium.org/gerrit/34886 Reviewed-by: Randall Spangler <rspangler@chromium.org> Commit-Ready: Rong Chang <rongchang@chromium.org> Tested-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/charge_state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/charge_state.h b/include/charge_state.h
index d3b310607e..eda78abfd9 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -114,6 +114,7 @@ struct power_state_context {
timestamp_t charger_update_time;
timestamp_t trickle_charging_time;
timestamp_t voltage_debounce_time;
+ int battery_present;
};
/* Trickle charging state handler.