summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelthanhuang <elthan_huang@compal.corp-partner.google.com>2018-08-10 15:34:46 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-08-25 07:31:17 -0700
commitfa43b6dc158d5f3b9cc10f3c1f79c45ef8ed6f05 (patch)
tree1eb6e75b3c5fae4dbc077f08559cb05de71f2db7
parent63aced761da609365578084e77dbdd47a8c02f7e (diff)
downloadchrome-ec-fa43b6dc158d5f3b9cc10f3c1f79c45ef8ed6f05.tar.gz
Fleex: Modify shipping mode register and FET
status register and data Modify LGC/BYD board_battery_info of shipping mode reg_addr and LGC/BYD/Simplo FET status of reg_addr/reg_mask BUG=b:112322236,b:112237278 BRANCH=none TEST=Use "ectool batterycutoff", system can shutdown. Plugin AC can power on system and battery return BATTERY_NOT_DISCONNECTED. Change-Id: I0d7a2b2c9d27a058b67f7b48970aaaab2ebee9b8 Signed-off-by: elthanhuang <elthan_huang@compal.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/1170669 Commit-Ready: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Tested-by: Elthan Huang <elthan_huang@compal.corp-partner.google.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Scott Collyer <scollyer@chromium.org>
-rw-r--r--board/fleex/battery.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/board/fleex/battery.c b/board/fleex/battery.c
index 03edd4248d..ca13f1689d 100644
--- a/board/fleex/battery.c
+++ b/board/fleex/battery.c
@@ -37,14 +37,13 @@ const struct board_batt_params board_battery_info[] = {
.fuel_gauge = {
.manuf_name = "BYD",
.ship_mode = {
- .reg_addr = 0x44,
+ .reg_addr = 0x00,
.reg_data = { 0x0010, 0x0010 },
},
.fet = {
- .mfgacc_support = 1,
.reg_addr = 0x0,
- .reg_mask = 0x0001,
- .disconnect_val = 0x0,
+ .reg_mask = 0x2000,
+ .disconnect_val = 0x2000,
}
},
.batt_info = {
@@ -66,13 +65,13 @@ const struct board_batt_params board_battery_info[] = {
.fuel_gauge = {
.manuf_name = "LGC-LGC3.553",
.ship_mode = {
- .reg_addr = 0x44,
+ .reg_addr = 0x00,
.reg_data = { 0x0010, 0x0010 },
},
.fet = {
.reg_addr = 0x0,
- .reg_mask = 0x0001,
- .disconnect_val = 0x0,
+ .reg_mask = 0x2000,
+ .disconnect_val = 0x2000,
}
},
.batt_info = {
@@ -98,9 +97,9 @@ const struct board_batt_params board_battery_info[] = {
.reg_data = { 0x0010, 0x0010 },
},
.fet = {
- .reg_addr = 0x0,
- .reg_mask = 0x0002,
- .disconnect_val = 0x0,
+ .reg_addr = 0x043,
+ .reg_mask = 0x0001,
+ .disconnect_val = 0x000,
}
},
.batt_info = {