diff options
author | loganliao <Logan_Liao@compal.corp-partner.google.com> | 2020-04-17 18:16:59 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-08 05:24:50 +0000 |
commit | 2d60f3a731c196159d5bf8eb8509ff3cff7abb8a (patch) | |
tree | 3558b7b6d1fb5993fc5c52cd6ef6a3677a4552e7 /board | |
parent | 79b716f6bbe263e0f3b1e83aae747f496c993fe3 (diff) | |
download | chrome-ec-2d60f3a731c196159d5bf8eb8509ff3cff7abb8a.tar.gz |
Mushu : correct battery parameter config.
This patch modify the battery parameter to meet the battery function.
BUG=b:154198760
BRANCH=none
TEST=ship mode function works fine.
Change-Id: Ibb4aa278c80e4bf61756f0af3cf1ca985d6dd88e
Signed-off-by: loganliao <Logan_Liao@compal.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2154312
Reviewed-by: Logan Liao <logan_liao@compal.corp-partner.google.com>
Reviewed-by: Bob Moragues <moragues@chromium.org>
Tested-by: Logan Liao <logan_liao@compal.corp-partner.google.com>
Commit-Queue: Bob Moragues <moragues@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/mushu/battery.c | 37 | ||||
-rw-r--r-- | board/mushu/board.h | 2 |
2 files changed, 19 insertions, 20 deletions
diff --git a/board/mushu/battery.c b/board/mushu/battery.c index 75ef627516..7e48dfdc19 100644 --- a/board/mushu/battery.c +++ b/board/mushu/battery.c @@ -1,4 +1,4 @@ -/* Copyright 2019 The Chromium OS Authors. All rights reserved. +/* Copyright 2020 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * @@ -8,7 +8,6 @@ #include "battery_fuel_gauge.h" #include "common.h" #include "util.h" - /* * Battery info for all Mushu battery types. Note that the fields * start_charging_min/max and charging_min/max are not used for the charger. @@ -32,30 +31,30 @@ * address, mask, and disconnect value need to be provided. */ const struct board_batt_params board_battery_info[] = { - /* SMP LIS Dell FMXMT Battery Information */ - [BATTERY_SMP_LIS] = { + /* POW-TECH Battery Information */ + [BATTERY_POWER_TECH] = { .fuel_gauge = { - .manuf_name = "SMP-LIS3.78", + .manuf_name = "POW-TECH", .ship_mode = { .reg_addr = 0x0, .reg_data = { 0x10, 0x10 }, }, .fet = { - .reg_addr = 0x0, + .reg_addr = 0x00, .reg_mask = 0x2000, .disconnect_val = 0x2000, } }, .batt_info = { - .voltage_max = 8800, - .voltage_normal = 7660, /* mV */ - .voltage_min = 6000, /* mV */ + .voltage_max = 13200, + .voltage_normal = 11550, /* mV */ + .voltage_min = 9000, /* mV */ .precharge_current = 256, /* mA */ .start_charging_min_c = 0, - .start_charging_max_c = 60, + .start_charging_max_c = 45, .charging_min_c = 0, - .charging_max_c = 60, - .discharging_min_c = 0, + .charging_max_c = 45, + .discharging_min_c = -20, .discharging_max_c = 60, }, }, @@ -75,19 +74,19 @@ const struct board_batt_params board_battery_info[] = { } }, .batt_info = { - .voltage_max = 8800, - .voltage_normal = 7660, /* mV */ - .voltage_min = 6000, /* mV */ + .voltage_max = 13200, + .voltage_normal = 11550, /* mV */ + .voltage_min = 9000, /* mV */ .precharge_current = 256, /* mA */ .start_charging_min_c = 0, - .start_charging_max_c = 60, + .start_charging_max_c = 45, .charging_min_c = 0, - .charging_max_c = 60, - .discharging_min_c = 0, + .charging_max_c = 45, + .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_SMP_SDI; +const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_POWER_TECH; diff --git a/board/mushu/board.h b/board/mushu/board.h index 900ef7cac0..ae1baf22cd 100644 --- a/board/mushu/board.h +++ b/board/mushu/board.h @@ -185,7 +185,7 @@ enum temp_sensor_id { /* List of possible batteries */ enum battery_type { - BATTERY_SMP_LIS, + BATTERY_POWER_TECH, BATTERY_SMP_SDI, BATTERY_TYPE_COUNT, }; |