diff options
author | Rong Chang <rongchang@chromium.org> | 2012-03-28 02:03:57 +0800 |
---|---|---|
committer | Rong Chang <rongchang@chromium.org> | 2012-04-19 01:16:01 +0800 |
commit | 23b8885a023ac5807a648c50f329cb36d5c79f46 (patch) | |
tree | 3160b5e5a7585626eedeaa2501380b4f5a0c7ebc /include/battery.h | |
parent | a77d59b19aeef8ba56739be5656608111cc58283 (diff) | |
download | chrome-ec-23b8885a023ac5807a648c50f329cb36d5c79f46.tar.gz |
Trickle charging state and minor bugs fix
Adding trickle charging mode to precharge batteries with
voltage lower than minimal design value. This CL adds
control to charger voltage to track battery input current
change.
To prevent battery from deeply discharging, this CL preserves
3% of the design capacity.
Minor bug fixes include error state check and charger control
logic.
Signed-off-by: Rong Chang <rongchang@chromium.org>
BUG=chrome-os-partner:8660,8661
TEST=manual
Plug AC power, the power adapter led should be
'yellow'. On the EC serial console, type 'battery'
and 'charger' commands.
Battery input current should staid close to its
desired current.
A deeply discharged battery (5.5V) should be revived to
a healthy state after 30 minutes ~ 4 hours.
Change-Id: Ibaa2396c6b751639d98db32f5919b1e8ec700e40
Diffstat (limited to 'include/battery.h')
-rw-r--r-- | include/battery.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/battery.h b/include/battery.h index fee0e8b425..4d88ca7b9a 100644 --- a/include/battery.h +++ b/include/battery.h @@ -9,9 +9,10 @@ #define __CROS_EC_BATTERY_H /* Design capacities, percentage */ -#define BATTERY_LEVEL_WARNING 15 -#define BATTERY_LEVEL_LOW 10 -#define BATTERY_LEVEL_CRITICAL 3 +#define BATTERY_LEVEL_WARNING 15 +#define BATTERY_LEVEL_LOW 10 +#define BATTERY_LEVEL_CRITICAL 5 +#define BATTERY_LEVEL_SHUTDOWN 3 #endif /* __CROS_EC_BATTERY_H */ |