diff options
author | Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com> | 2020-07-03 11:36:52 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-06 04:42:28 +0000 |
commit | c4cdf1d96fe43cd040f5461358fc076f415f7e1d (patch) | |
tree | fb0912206c2925c77e4542b5aed99261e5730e5b /board/woomax/battery.c | |
parent | 2ff280a2bd4dbba9a71196f0f76cd5675830053c (diff) | |
download | chrome-ec-c4cdf1d96fe43cd040f5461358fc076f415f7e1d.tar.gz |
woomax: Config the EC battery setting.
Config the EC battery setting depend on battery spec.
BUG=b:160412962
BRANCH=master
TEST=manual
1. Check EC log found battery.
2. Check battery cutoff maode (ectool batterycutoff at-shutdown)
3. Check battery Discharging FET status when battery full.
Signed-off-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Change-Id: Ia17721bb6a9d968842a3e5e2bfdbd8d68cc84c4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2279343
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'board/woomax/battery.c')
-rw-r--r-- | board/woomax/battery.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/board/woomax/battery.c b/board/woomax/battery.c index 5f941b8e26..bd46c51cc7 100644 --- a/board/woomax/battery.c +++ b/board/woomax/battery.c @@ -33,33 +33,33 @@ */ const struct board_batt_params board_battery_info[] = { /* AP18F4M */ - [BATTERY_AP18F4M] = { + [BATTERY_C536] = { .fuel_gauge = { - .manuf_name = "Murata KT00404001", + .manuf_name = "AS3GXAE3jB", .ship_mode = { - .reg_addr = 0x3A, - .reg_data = { 0xC574, 0xC574 }, + .reg_addr = 0x00, + .reg_data = { 0x0010, 0x0010 }, }, .fet = { - .reg_addr = 0x0, - .reg_mask = 0x2000, - .disconnect_val = 0x2000, + .reg_addr = 0x99, + .reg_mask = 0x000c, + .disconnect_val = 0x000c, } }, .batt_info = { - .voltage_max = 8700, - .voltage_normal = 7600, - .voltage_min = 5500, + .voltage_max = 13200, + .voltage_normal = 11880, + .voltage_min = 9000, .precharge_current = 256, .start_charging_min_c = 0, - .start_charging_max_c = 50, + .start_charging_max_c = 45, .charging_min_c = 0, .charging_max_c = 60, - .discharging_min_c = -20, - .discharging_max_c = 75, + .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_AP18F4M; +const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_C536; |