summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorDevin Lu <Devin.Lu@quantatw.com>2021-08-30 09:41:41 +0800
committerCommit Bot <commit-bot@chromium.org>2021-09-01 18:26:30 +0000
commit686bcf345a912c3c0c6df888290753ebda749d2e (patch)
treef9e123277a5e5957fe3aa6ec6721d6cab3e3d210 /board
parent3af62490f82398b38fdcb56246eca8a0461631a1 (diff)
downloadchrome-ec-686bcf345a912c3c0c6df888290753ebda749d2e.tar.gz
anahera: Add battery configuration
This patch adds battery configuration as following: 1. 996QA193H Simplo HIGHPOWER Battery 2. B00C407792D0001 CosMX Battery BUG=b:197998092 BRANCH=none TEST=make BOARD=anahera Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Icf7a8e14c42b19f033deec2ede6cb08d22a987b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3127464 Reviewed-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'board')
-rw-r--r--board/anahera/battery.c44
-rw-r--r--board/anahera/board.h3
2 files changed, 38 insertions, 9 deletions
diff --git a/board/anahera/battery.c b/board/anahera/battery.c
index 4e74b92acb..95ca9be206 100644
--- a/board/anahera/battery.c
+++ b/board/anahera/battery.c
@@ -10,7 +10,7 @@
#include "compile_time_macros.h"
/*
- * Battery info for all Redrix battery types. Note that the fields
+ * Battery info for all Anahera battery types. Note that the fields
* start_charging_min/max and charging_min/max are not used for the charger.
* The effective temperature limits are given by discharging_min/max_c.
*
@@ -32,10 +32,10 @@
* address, mask, and disconnect value need to be provided.
*/
const struct board_batt_params board_battery_info[] = {
- /* DynaPack CosMX Battery Information */
- [BATTERY_DYNAPACK_COS] = {
+ /* 996QA193H Simplo HIGHPOWER Battery Information */
+ [BATTERY_SIMPLO_HIGHPOWER] = {
.fuel_gauge = {
- .manuf_name = "333-2C-14-A",
+ .manuf_name = "333-1D-11-A",
.ship_mode = {
.reg_addr = 0x0,
.reg_data = { 0x0010, 0x0010 },
@@ -48,9 +48,37 @@ const struct board_batt_params board_battery_info[] = {
},
},
.batt_info = {
- .voltage_max = 8800, /* mV */
- .voltage_normal = 7700,
- .voltage_min = 6000,
+ .voltage_max = 13200, /* mV */
+ .voltage_normal = 11550, /* mV */
+ .voltage_min = 9000, /* 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 = -20,
+ .discharging_max_c = 60,
+ },
+ },
+ /* B00C407792D0001 CosMX Battery Information */
+ [BATTERY_COSMX] = {
+ .fuel_gauge = {
+ .manuf_name = "333-AC-11-A",
+ .ship_mode = {
+ .reg_addr = 0x0,
+ .reg_data = { 0x0010, 0x0010 },
+ },
+ .fet = {
+ .mfgacc_support = 1,
+ .reg_addr = 0x0,
+ .reg_mask = 0x0006,
+ .disconnect_val = 0x0,
+ },
+ },
+ .batt_info = {
+ .voltage_max = 13200, /* mV */
+ .voltage_normal = 11550, /* mV */
+ .voltage_min = 9000, /* mV */
.precharge_current = 256, /* mA */
.start_charging_min_c = 0,
.start_charging_max_c = 45,
@@ -63,4 +91,4 @@ const struct board_batt_params board_battery_info[] = {
};
BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT);
-const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_DYNAPACK_COS;
+const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_SIMPLO_HIGHPOWER;
diff --git a/board/anahera/board.h b/board/anahera/board.h
index 820dfcada2..a72b0b58ed 100644
--- a/board/anahera/board.h
+++ b/board/anahera/board.h
@@ -224,7 +224,8 @@ enum ioex_port {
};
enum battery_type {
- BATTERY_DYNAPACK_COS,
+ BATTERY_SIMPLO_HIGHPOWER,
+ BATTERY_COSMX,
BATTERY_TYPE_COUNT
};