summaryrefslogtreecommitdiff
path: root/board/chronicler
diff options
context:
space:
mode:
authorYu-An Chen <yu-an.chen@quanta.corp-partner.google.com>2021-06-17 14:19:37 +0800
committerCommit Bot <commit-bot@chromium.org>2021-06-23 01:59:28 +0000
commitea843b0f732970b1f3666be39edd16396f509b4d (patch)
treec1e02e9c7caba3b0c146b1b91ea61e411353151b /board/chronicler
parent41165549be19ddc085bffc7b7abb09bc20b7eac5 (diff)
downloadchrome-ec-ea843b0f732970b1f3666be39edd16396f509b4d.tar.gz
Chronicler: Add battery ATL-3S1P-606072
Support new battery ATL-3S1P-606072 BUG=b:190685811 BRANCH=volteer TEST=ensure battery can cutoff by console "cutoff" or "ectool batterycutoff" and resume by plug in adapter. Signed-off-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Change-Id: I3d8b11c71b45339fec63d9639232c8b987eecdd0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2967853 Tested-by: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Auto-Submit: Yu-An Chen <yu-an.chen@quanta.corp-partner.google.com> Reviewed-by: YH Lin <yueherngl@chromium.org> Commit-Queue: YH Lin <yueherngl@chromium.org>
Diffstat (limited to 'board/chronicler')
-rw-r--r--board/chronicler/battery.c30
-rw-r--r--board/chronicler/board.h2
2 files changed, 15 insertions, 17 deletions
diff --git a/board/chronicler/battery.c b/board/chronicler/battery.c
index f1dff394e4..63e2087f49 100644
--- a/board/chronicler/battery.c
+++ b/board/chronicler/battery.c
@@ -32,37 +32,35 @@
* address, mask, and disconnect value need to be provided.
*/
const struct board_batt_params board_battery_info[] = {
- /* LGC\011 L17L3PB0 Battery Information */
- /*
- * Battery info provided by ODM on b/143477210, comment #11
- */
- [BATTERY_LGC011] = {
+ /* NVT ATL-3S1P-606072 Battery Information */
+ [BATTERY_ATL_3S1P_606072] = {
.fuel_gauge = {
- .manuf_name = "LGC",
+ .manuf_name = "NVT",
+ .device_name = "ATL-3S1P-606072",
.ship_mode = {
.reg_addr = 0x00,
.reg_data = { 0x10, 0x10 },
},
.fet = {
- .reg_addr = 0x0,
- .reg_mask = 0x6000,
- .disconnect_val = 0x6000,
+ .reg_addr = 0x00,
+ .reg_mask = 0x2000,
+ .disconnect_val = 0x2000,
}
},
.batt_info = {
- .voltage_max = TARGET_WITH_MARGIN(13200, 5),
+ .voltage_max = 13200, /* mV */
.voltage_normal = 11550, /* mV */
- .voltage_min = 9000, /* mV */
- .precharge_current = 256, /* mA */
+ .voltage_min = 9000, /* mV */
+ .precharge_current = 88, /* mA */
.start_charging_min_c = 0,
.start_charging_max_c = 45,
.charging_min_c = 0,
- .charging_max_c = 60,
- .discharging_min_c = 0,
- .discharging_max_c = 75,
+ .charging_max_c = 55,
+ .discharging_min_c = -20,
+ .discharging_max_c = 60,
},
},
};
BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT);
-const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_LGC011;
+const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_ATL_3S1P_606072;
diff --git a/board/chronicler/board.h b/board/chronicler/board.h
index 4aef940684..110360a75f 100644
--- a/board/chronicler/board.h
+++ b/board/chronicler/board.h
@@ -144,7 +144,7 @@
#include "usbc_config.h"
enum battery_type {
- BATTERY_LGC011,
+ BATTERY_ATL_3S1P_606072,
BATTERY_TYPE_COUNT,
};