diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2021-10-15 14:18:28 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-26 22:16:37 +0000 |
commit | 8106efd33a7897e071410201ba85804bfba9dfcd (patch) | |
tree | 0a706751becdccdf06fb38211730da1c21bd8efc /include/battery.h | |
parent | 1f1103b4b875a4ce12fb666fa69572747e02996c (diff) | |
download | chrome-ec-8106efd33a7897e071410201ba85804bfba9dfcd.tar.gz |
Battery: Move battery code to battery_v1.c and v2.c
BUG=b:198722643, b:203031618
BRANCH=None
TEST=buildall
Change-Id: I595da56412f4d30684b00d1138f7e2339c7f5204
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3227372
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/battery.h')
-rw-r--r-- | include/battery.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/battery.h b/include/battery.h index 2de5835807..be23863c23 100644 --- a/include/battery.h +++ b/include/battery.h @@ -54,6 +54,9 @@ extern struct ec_response_battery_dynamic_info */ #define BATTERY_LEVEL_SHUTDOWN 3 +/* Full-capacity change reqd for host event */ +#define LFCC_EVENT_THRESH 5 + /* * Sometimes we have hardware to detect battery present, sometimes we have to * wait until we've been able to talk to the battery. @@ -476,4 +479,16 @@ __override_proto void board_battery_compensate_params(struct batt_params *batt); void battery_validate_params(struct batt_params *batt); +/** + * Read static battery info from a main battery and store it in a cache. + * + * @return EC_SUCCESS or EC_ERROR_*. + */ +int update_static_battery_info(void); + +/** + * Read dynamic battery info from a main battery and store it in a cache. + */ +void update_dynamic_battery_info(void); + #endif /* __CROS_EC_BATTERY_H */ |