summaryrefslogtreecommitdiff
path: root/board/crota/battery.c
diff options
context:
space:
mode:
authorPeter Chi <peter_chi@wistron.corp-partner.google.com>2022-06-22 10:00:31 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-28 00:22:02 +0000
commit1f37c24033121cce0eb83f2adab49407bfdb3942 (patch)
tree43203bc267115821ea461aa0badad132a50573a9 /board/crota/battery.c
parenta45696861b8c5bffeb4bd3216bfb1148d309e884 (diff)
downloadchrome-ec-1f37c24033121cce0eb83f2adab49407bfdb3942.tar.gz
crota: add more BYD battery support
BUG=b:236739228 BRANCH=none TEST=make -j BOARD=crota Signed-off-by: Peter Chi <peter_chi@wistron.corp-partner.google.com> Change-Id: I73f4b5da9243d9161743276c68e8011264c602d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3716430 Commit-Queue: caveh jalali <caveh@chromium.org> Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/crota/battery.c')
-rw-r--r--board/crota/battery.c31
1 files changed, 30 insertions, 1 deletions
diff --git a/board/crota/battery.c b/board/crota/battery.c
index 5bdf307b07..de60f74ad2 100644
--- a/board/crota/battery.c
+++ b/board/crota/battery.c
@@ -63,7 +63,7 @@ const struct board_batt_params board_battery_info[] = {
},
},
/* BYD 13076993-009 Battery Information */
- [BATTERY_BYD] = {
+ [BATTERY_BYD_GSL4] = {
.fuel_gauge = {
.manuf_name = "BYD",
.device_name = "DELL WV3K8",
@@ -323,6 +323,35 @@ const struct board_batt_params board_battery_info[] = {
.discharging_max_c = 70,
},
},
+ /* BYD 13148981-00 Battery Information */
+ [BATTERY_BYD_CSL4] = {
+ .fuel_gauge = {
+ .manuf_name = "BYD",
+ .device_name = "DELL JGCCT",
+ .ship_mode = {
+ .reg_addr = 0x00,
+ .reg_data = { 0x0010, 0x0010 },
+ },
+ .fet = {
+ .mfgacc_support = 0,
+ .reg_addr = 0x00,
+ .reg_mask = 0x2000,
+ .disconnect_val = 0x2000,
+ }
+ },
+ .batt_info = {
+ .voltage_max = 17400, /* mV */
+ .voltage_normal = 15000, /* mV */
+ .voltage_min = 12000, /* mV */
+ .precharge_current = 256, /* mA */
+ .start_charging_min_c = 0,
+ .start_charging_max_c = 60,
+ .charging_min_c = 0,
+ .charging_max_c = 60,
+ .discharging_min_c = 0,
+ .discharging_max_c = 70,
+ },
+ },
/* Sunwoda 1002000009262 Battery Information */
[BATTERY_SWD_ATL4] = {
.fuel_gauge = {