summaryrefslogtreecommitdiff
path: root/board/coachz
diff options
context:
space:
mode:
authorSimon Zhou <zhouguohui@huaqin.corp-partner.google.com>2020-11-10 21:11:22 +0800
committerCommit Bot <commit-bot@chromium.org>2020-11-11 02:34:30 +0000
commita3b99150e32f368567eeeba9a2c3a8f65fee4b43 (patch)
tree43200e4c2d0be2179f973e103f431155f77af9e8 /board/coachz
parent2af47a9f36ae41df32ef498f12f82bd7034073c1 (diff)
downloadchrome-ec-a3b99150e32f368567eeeba9a2c3a8f65fee4b43.tar.gz
Coachz: support battery GH02047XL
support battery GH02047XL BRANCH=master BUG=b:172613247 TEST=make BOARD=coachz -j flash ec and check battery info Change-Id: I6bdb0b18a88272e56b2aba1f82c99620243a70be Signed-off-by: Simon Zhou <zhouguohui@huaqin.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2529269 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'board/coachz')
-rw-r--r--board/coachz/battery.c58
-rw-r--r--board/coachz/board.h2
2 files changed, 60 insertions, 0 deletions
diff --git a/board/coachz/battery.c b/board/coachz/battery.c
index a97395ca73..6e22a13e66 100644
--- a/board/coachz/battery.c
+++ b/board/coachz/battery.c
@@ -33,6 +33,64 @@
*/
const struct board_batt_params board_battery_info[] = {
+ /* COSMX GH02047XL 333-1C-DA-A */
+ [BATTERY_GH02047XL_1C] = {
+ .fuel_gauge = {
+ .manuf_name = "333-1C-DA-A",
+ .device_name = "GH02047XL",
+ .ship_mode = {
+ .reg_addr = 0x00,
+ .reg_data = { 0x0010, 0x0010 },
+ },
+ .fet = {
+ .mfgacc_support = 1,
+ .reg_addr = 0x0,
+ .reg_mask = 0x0002,
+ .disconnect_val = 0x0,
+ }
+ },
+ .batt_info = {
+ .voltage_max = 8800, /* mV */
+ .voltage_normal = 7700, /* mV */
+ .voltage_min = 6000, /* mV */
+ .precharge_current = 256, /* mA */
+ .start_charging_min_c = 0,
+ .start_charging_max_c = 45,
+ .charging_min_c = 0,
+ .charging_max_c = 45,
+ .discharging_min_c = -10,
+ .discharging_max_c = 60,
+ },
+ },
+ /* COSMX GH02047XL */
+ [BATTERY_GH02047XL] = {
+ .fuel_gauge = {
+ .manuf_name = "333-AC-DA-A",
+ .device_name = "GH02047XL",
+ .ship_mode = {
+ .reg_addr = 0x00,
+ .reg_data = { 0x0010, 0x0010 },
+ },
+ .fet = {
+ .mfgacc_support = 1,
+ .reg_addr = 0x0,
+ .reg_mask = 0x0002,
+ .disconnect_val = 0x0,
+ }
+ },
+ .batt_info = {
+ .voltage_max = 8800, /* mV */
+ .voltage_normal = 7700, /* mV */
+ .voltage_min = 6000, /* mV */
+ .precharge_current = 256, /* mA */
+ .start_charging_min_c = 0,
+ .start_charging_max_c = 45,
+ .charging_min_c = 0,
+ .charging_max_c = 45,
+ .discharging_min_c = -10,
+ .discharging_max_c = 60,
+ },
+ },
/* COSMX DS02032XL */
[BATTERY_DS02032XL] = {
.fuel_gauge = {
diff --git a/board/coachz/board.h b/board/coachz/board.h
index b85d057604..0d6b5c2797 100644
--- a/board/coachz/board.h
+++ b/board/coachz/board.h
@@ -77,6 +77,8 @@ enum pwm_channel {
/* List of possible batteries */
enum battery_type {
+ BATTERY_GH02047XL_1C,
+ BATTERY_GH02047XL,
BATTERY_DS02032XL,
BATTERY_TYPE_COUNT,
};