From 04e4f50c0ecfaa006069bd0978a64ede66d33439 Mon Sep 17 00:00:00 2001 From: johnwc_yeh Date: Wed, 4 Aug 2021 16:56:10 +0800 Subject: 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 Change-Id: I2fca124742ac04e55364cd6603336eb000e412bc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3070942 Reviewed-by: Josh Tsai Reviewed-by: Aseda Aboagye Commit-Queue: Aseda Aboagye --- board/cret/board.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board/cret') 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 -- cgit v1.2.1