summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Lu <devin.lu@quantatw.com>2019-09-03 17:49:14 +0800
committerCommit Bot <commit-bot@chromium.org>2019-09-06 14:24:45 +0000
commitcc6db929b7e2b2b840528574ba77aa8b15363775 (patch)
treedd5abab25bc2cb6c82e8b7ac477679994366bf2a
parent65fd16174ea61628a2cb1197a65721598d516488 (diff)
downloadchrome-ec-cc6db929b7e2b2b840528574ba77aa8b15363775.tar.gz
Dorp: add simplo HIGHPOWER 996QA168H battery
BUG=b:138089473 BRANCH=octopus TEST=Test on charging/discharging/battery cut off pass. Change-Id: Ib26447af6944c2d21b6603e391f2e2f76c12bb52 Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1782397 Reviewed-by: Marco Chen <marcochen@chromium.org>
-rw-r--r--board/meep/battery.c29
-rw-r--r--board/meep/board.h1
2 files changed, 30 insertions, 0 deletions
diff --git a/board/meep/battery.c b/board/meep/battery.c
index aa40f39ebf..118f9ee7d8 100644
--- a/board/meep/battery.c
+++ b/board/meep/battery.c
@@ -205,6 +205,35 @@ const struct board_batt_params board_battery_info[] = {
.discharging_max_c = 60,
},
},
+
+ /* Simplo HIGHPOWER Battery Information */
+ [BATTERY_SIMPLO_HIGHPOWER] = {
+ .fuel_gauge = {
+ .manuf_name = "333-1D-DA-A",
+ .ship_mode = {
+ .reg_addr = 0x00,
+ .reg_data = { 0x0010, 0x0010 },
+ },
+ .fet = {
+ .mfgacc_support = 1,
+ .reg_addr = 0x0,
+ .reg_mask = 0x6000,
+ .disconnect_val = 0x6000,
+ },
+ },
+ .batt_info = {
+ .voltage_max = 8800, /* mV */
+ .voltage_normal = 7700,
+ .voltage_min = 6000,
+ .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,
+ },
+ },
};
BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT);
diff --git a/board/meep/board.h b/board/meep/board.h
index 73df290d8b..9cf6b2845f 100644
--- a/board/meep/board.h
+++ b/board/meep/board.h
@@ -93,6 +93,7 @@ enum battery_type {
BATTERY_SAMSUNG_SDI,
BATTERY_SIMPLO_COS,
BATTERY_SIMPLO_ATL,
+ BATTERY_SIMPLO_HIGHPOWER,
BATTERY_TYPE_COUNT,
};