diff options
author | johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com> | 2021-05-26 16:45:55 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-06-03 05:20:00 +0000 |
commit | ab99cceef9c19ea6499fccbf973195d07825c24d (patch) | |
tree | ba4d3aebaf75c6bb72bc3cc905c08cee5a738ade /board/cret/board.h | |
parent | b34aa1516867aa631033b3254bf6ba22ab4598d5 (diff) | |
download | chrome-ec-ab99cceef9c19ea6499fccbf973195d07825c24d.tar.gz |
cret: Modify three battery parameter
Add three battery type for cret.
And modify device name and device length to identify.
1. New battery type of manufacture name is same as
BATTERY_BYD_1VX1H, BATTERY_SMP_ATL_VM732 and
BATTERY_SMP_COS_VM732, so use device name to recognize.
2. The last three strings of the battery device name
are the production date, need ignore,so modify the
read length of the device name.
BUG=b:183875170
BRANCH=dedede
TEST=Battery can be found via EC log check and battery can
be cutoff by ectool command.
Signed-off-by: johnwc_yeh <johnwc_yeh@compal.corp-partner.google.com>
Change-Id: I1ab8116d8e6c41d3eeb48852058fbd71bee0eca6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2919151
Reviewed-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/cret/board.h')
-rw-r--r-- | board/cret/board.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/board/cret/board.h b/board/cret/board.h index 5ddebc554c..cb61902d61 100644 --- a/board/cret/board.h +++ b/board/cret/board.h @@ -161,15 +161,15 @@ enum pwm_channel { /* List of possible batteries */ enum battery_type { - BATTERY_BYD_1VX1HYMD, - BATTERY_BYD_X0Y5MYMD, + BATTERY_BYD_1VX1H, + BATTERY_BYD_X0Y5M, BATTERY_LGC, BATTERY_SWD_ATL, BATTERY_SWD_COS, - BATTERY_SMP_ATL_VM73297U, - BATTERY_SMP_ATL_RF9H3YMD, - BATTERY_SMP_COS_VM732835, - BATTERY_SMP_COS_RF9H3YMD, + BATTERY_SMP_ATL_VM732, + BATTERY_SMP_ATL_RF9H3, + BATTERY_SMP_COS_VM732, + BATTERY_SMP_COS_RF9H3, BATTERY_BYD16, BATTERY_LGC3, BATTERY_SIMPLO, |