summaryrefslogtreecommitdiff
path: root/board/cret
diff options
context:
space:
mode:
authorjohnwc_yeh <johnwc_yeh@compal.corp-partner.google.com>2021-08-04 16:56:10 +0800
committerCommit Bot <commit-bot@chromium.org>2021-08-04 19:31:31 +0000
commit04e4f50c0ecfaa006069bd0978a64ede66d33439 (patch)
tree6bf1d2d8951eacaabcdc69540b82656c082cacbb /board/cret
parent05cf4b7fda49a334322992f5206c4e4b3f69be9b (diff)
downloadchrome-ec-04e4f50c0ecfaa006069bd0978a64ede66d33439.tar.gz
Cret: Increase the length of Battery Model string
Some battery model names that differ only beyond the 7th character, which cannot be differentiated with the current limitation of 8 characters per battery string. Introduce a new hostcmd version that allows longer battery strings and enable it on Cret. BUG=b:191546149 BRANCH=dedede TEST=Test "ectool battery", "ectool batterycutoff" in VT2 and "battery" command ec console. Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com> Change-Id: I2fca124742ac04e55364cd6603336eb000e412bc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3070942 Reviewed-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/cret')
-rw-r--r--board/cret/board.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/cret/board.h b/board/cret/board.h
index be704cec93..44754b83c9 100644
--- a/board/cret/board.h
+++ b/board/cret/board.h
@@ -21,6 +21,9 @@
/* Battery */
#define CONFIG_BATTERY_FUEL_GAUGE
+#define CONFIG_BATTERY_V2
+#define CONFIG_BATTERY_COUNT 1
+#define CONFIG_HOSTCMD_BATTERY_V2
/* Charger */
#define CONFIG_CHARGER_RAA489000