summaryrefslogtreecommitdiff
path: root/board/helios
diff options
context:
space:
mode:
authormichael5_chen <michael5_chen@pegatroncorp.com>2019-06-24 14:03:45 +0800
committerCommit Bot <commit-bot@chromium.org>2019-06-26 08:28:43 +0000
commit7139c8bd5eda655d60141b24bacf0e9afe66d51e (patch)
tree87e2e0e4d0b535f1b17d92c5cfdbd19280026348 /board/helios
parent980e781552164e54485b13e03ab9897fefc2a45d (diff)
downloadchrome-ec-7139c8bd5eda655d60141b24bacf0e9afe66d51e.tar.gz
helios: Modify Battery pack info
Update board_battery_info with latest battery pack information. BUG=b:135074326 BRANCH=Master TEST=Manual Battery charge and discharge and check EC console message. Change-Id: Ie3dbbdc06a9ebf3873c9b255539b40bb29ec7d19 Signed-off-by: michael5_chen <michael5_chen@pegatroncorp.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1660527 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Philip Chen <philipchen@chromium.org>
Diffstat (limited to 'board/helios')
-rw-r--r--board/helios/battery.c36
-rw-r--r--board/helios/board.h3
2 files changed, 33 insertions, 6 deletions
diff --git a/board/helios/battery.c b/board/helios/battery.c
index 4afb1444d6..234609b723 100644
--- a/board/helios/battery.c
+++ b/board/helios/battery.c
@@ -33,7 +33,7 @@
*/
const struct board_batt_params board_battery_info[] = {
/* Simplo Battery Information */
- [BATTERY_SIMPLO] = {
+ [BATTERY_SIMPLO_C424] = {
.fuel_gauge = {
.manuf_name = "AS2GVID3jB",
.ship_mode = {
@@ -41,9 +41,35 @@ const struct board_batt_params board_battery_info[] = {
.reg_data = { 0x10, 0x10 },
},
.fet = {
+ .reg_addr = 0x44,
+ .reg_mask = 0x6000,
+ .disconnect_val = 0x6000,
+ }
+ },
+ .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,
+ .charging_min_c = 0,
+ .charging_max_c = 60,
+ .discharging_min_c = 0,
+ .discharging_max_c = 60,
+ },
+ },
+ [BATTERY_SIMPLO_C436] = {
+ .fuel_gauge = {
+ .manuf_name = "AS2GVUb3jB",
+ .ship_mode = {
.reg_addr = 0x0,
- .reg_mask = 0x2000,
- .disconnect_val = 0x2000,
+ .reg_data = { 0x10, 0x10 },
+ },
+ .fet = {
+ .reg_addr = 0x44,
+ .reg_mask = 0x6000,
+ .disconnect_val = 0x6000,
}
},
.batt_info = {
@@ -55,11 +81,11 @@ const struct board_batt_params board_battery_info[] = {
.start_charging_max_c = 45,
.charging_min_c = 0,
.charging_max_c = 60,
- .discharging_min_c = -20,
+ .discharging_min_c = 0,
.discharging_max_c = 60,
},
},
};
BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT);
-const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_SIMPLO;
+const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_SIMPLO_C424;
diff --git a/board/helios/board.h b/board/helios/board.h
index 1513a07e3a..ac4e0432dd 100644
--- a/board/helios/board.h
+++ b/board/helios/board.h
@@ -136,7 +136,8 @@ enum temp_sensor_id {
/* List of possible batteries */
enum battery_type {
- BATTERY_SIMPLO,
+ BATTERY_SIMPLO_C424,
+ BATTERY_SIMPLO_C436,
BATTERY_TYPE_COUNT,
};