diff options
author | reno.wang <reno.wang@lcfc.corp-partner.google.com> | 2021-03-10 19:23:30 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-17 17:46:46 +0000 |
commit | 08cf05a60c0c205fe65bdeb69c56bcc788026377 (patch) | |
tree | 0f3532c0aa556d87f73ea1be55270e588ff1ce05 /board/boten/board.h | |
parent | 1e34a69fd6064699decd529e9183dc964a89f599 (diff) | |
download | chrome-ec-08cf05a60c0c205fe65bdeb69c56bcc788026377.tar.gz |
boten: Increase the length of Battery Model string
Two of battery in boten have same former 7-character mode name, just
like below, but the last character is different.
1. 42WHRS: L20M3PG2
2. 47WHRS: L20M30P0
Current EC code limit battery string to 7-character plug NULL.
It cause "hwid probe" cannot know the difference.
It also need toolkit to Add ectool_battery probe function as below link
CL:2747636
b:181650356#comment24
BUG=b:181650356
BRANCH=dedede
TEST=Test "ectool battery", "power_supply_info", "hwid probe" in VT2 and
"battery" command ec console, ex. servo board.
Signed-off-by: reno.wang <reno.wang@lcfc.corp-partner.google.com>
Change-Id: Ieaf87424bce04f29eabd86e1b84f7692f3520e5e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2748206
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/boten/board.h')
-rw-r--r-- | board/boten/board.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/boten/board.h b/board/boten/board.h index dc3b2cdf99..14b1de5325 100644 --- a/board/boten/board.h +++ b/board/boten/board.h @@ -17,6 +17,9 @@ /* Battery */ #define CONFIG_BATTERY_FUEL_GAUGE +#define CONFIG_BATTERY_V2 +#define CONFIG_BATTERY_COUNT 1 +#define CONFIG_HOSTCMD_BATTERY_V2 /* BC 1.2 */ #define CONFIG_BC12_DETECT_PI3USB9201 |