diff options
author | Wai-Hong Tam <waihong@google.com> | 2020-12-17 14:22:45 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-18 02:07:45 +0000 |
commit | 8bc8a505f25f219cc1b072be87f26a61e58b6173 (patch) | |
tree | c5affa44976055a15ebc008da17e06fc44da71a1 /test/usb_tcpmv2_compliance.c | |
parent | df3441b92b1a461df49d21724db46a6c7f4156a0 (diff) | |
download | chrome-ec-8bc8a505f25f219cc1b072be87f26a61e58b6173.tar.gz |
battery_fuel_gauge: Make the default battery type customizable
Currently the default battery type is a constant.
There is a need that a board can support both 2S and 3S batteries,
according to its SKU ID. For example, a SKU which uses 2S battery
will use a 2-to-1 switching capacitor to regulate the output
voltage. A SKU which uses 3S battery will use a 3-to-1 switching
capacitor.
If the battery is not attached, the default battery is selected to
configure the charger. A wrong battery configuration may be
selected. For example, the charger may output a 2S voltage but the
switching capacitor uses the 3-to-1 ratio.
This change enables the board to customize the default battery
type. It helps fixing the above issue.
BRANCH=Trogdor
BUG=b:175625362
TEST=Build the Lazor image and use it on the board with 3S battery
but the battery is not attached.
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Change-Id: I76bf50c7226c4ec9f633d4b7f6025dc9ab464b49
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2597801
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'test/usb_tcpmv2_compliance.c')
0 files changed, 0 insertions, 0 deletions