diff options
author | Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com> | 2020-07-10 16:10:48 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-14 05:32:17 +0000 |
commit | c34d32638125e510e1ce61050b0450e2d0d1c5c1 (patch) | |
tree | 5c8367a7b8ec99cf7b004dd745c84ded9dfc09eb /board | |
parent | 0c38431aee28e5e7152f20b37f447d6d04b5dcc9 (diff) | |
download | chrome-ec-c34d32638125e510e1ce61050b0450e2d0d1c5c1.tar.gz |
delbin: Config the EC battery setting.
Config the EC battery setting depend on battery spec.
BUG=b:160911592
BRANCH=master
TEST=manual
1. Check battery found on EC log.
2. Check battery cutoff. (ectool batterycutoff at-shutdown)
3. Check battery charging FET status when battery full.
Signed-off-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Change-Id: Iaaf8807525dce900f608b5928db91eef6665fae0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2291452
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/delbin/battery.c | 22 | ||||
-rw-r--r-- | board/delbin/board.h | 2 |
2 files changed, 10 insertions, 14 deletions
diff --git a/board/delbin/battery.c b/board/delbin/battery.c index 9b356a8efd..e907a3574f 100644 --- a/board/delbin/battery.c +++ b/board/delbin/battery.c @@ -32,26 +32,22 @@ * address, mask, and disconnect value need to be provided. */ const struct board_batt_params board_battery_info[] = { - /* LGC\011 L17L3PB0 Battery Information */ - /* - * Battery info provided by ODM on b/143477210, comment #11 - */ - [BATTERY_LGC011] = { + [BATTERY_C536] = { .fuel_gauge = { - .manuf_name = "LGC", + .manuf_name = "AS3GXAE3jB", .ship_mode = { .reg_addr = 0x00, .reg_data = { 0x10, 0x10 }, }, .fet = { - .reg_addr = 0x0, - .reg_mask = 0x6000, - .disconnect_val = 0x6000, + .reg_addr = 0x99, + .reg_mask = 0x000c, + .disconnect_val = 0x000c, } }, .batt_info = { - .voltage_max = TARGET_WITH_MARGIN(13200, 5), - .voltage_normal = 11550, /* mV */ + .voltage_max = 13200, /* mV */ + .voltage_normal = 11880, /* mV */ .voltage_min = 9000, /* mV */ .precharge_current = 256, /* mA */ .start_charging_min_c = 0, @@ -59,10 +55,10 @@ const struct board_batt_params board_battery_info[] = { .charging_min_c = 0, .charging_max_c = 60, .discharging_min_c = 0, - .discharging_max_c = 75, + .discharging_max_c = 60, }, }, }; BUILD_ASSERT(ARRAY_SIZE(board_battery_info) == BATTERY_TYPE_COUNT); -const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_LGC011; +const enum battery_type DEFAULT_BATTERY_TYPE = BATTERY_C536; diff --git a/board/delbin/board.h b/board/delbin/board.h index 6a290f0a65..f67e42c339 100644 --- a/board/delbin/board.h +++ b/board/delbin/board.h @@ -133,7 +133,7 @@ #include "registers.h" enum battery_type { - BATTERY_LGC011, + BATTERY_C536, BATTERY_TYPE_COUNT, }; |