summaryrefslogtreecommitdiff
path: root/include/charge_state.h
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2012-07-12 18:45:34 +0800
committerGerrit <chrome-bot@google.com>2012-07-15 22:01:14 -0700
commit3b0e13173dc5f082488b7fa1fe774222ea6fa983 (patch)
treea77fded6b0a57abb4790f10f123c6996912f1669 /include/charge_state.h
parente95813c34f59b3a1da89217f340969a4e5913389 (diff)
downloadchrome-ec-3b0e13173dc5f082488b7fa1fe774222ea6fa983.tar.gz
Debounce charging voltage when cross 8.0V
Link battery pack specification suggested a lower charging current when voltage pass 8.0V. But the lowering the current in constant current phase leads voltage drop. And the battery goes back to high current zone, < 8.0V. This CL adds a 10 seconds debounce time to prevent charging current change too quickly. Signed-off-by: Rong Chang <rongchang@chromium.org> BUG=chrome-os-partner:9572 TEST=manual watch battery V+ on oscilloscope when charging voltage cross 8.0V Change-Id: I002f941e33b029e38f813ab2e292c6b73a054352 Reviewed-on: https://gerrit.chromium.org/gerrit/27275 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/charge_state.h')
-rw-r--r--include/charge_state.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/charge_state.h b/include/charge_state.h
index 672dab3e8b..c9129c03a5 100644
--- a/include/charge_state.h
+++ b/include/charge_state.h
@@ -97,9 +97,10 @@ struct power_state_context {
/* Charger and battery pack info */
const struct charger_info *charger;
const struct battery_info *battery;
- /* Charger update timestamp */
+ /* Charging timestamps */
timestamp_t charger_update_time;
timestamp_t trickle_charging_time;
+ timestamp_t voltage_debounce_time;
};
/* Trickle charging state handler.