summaryrefslogtreecommitdiff
path: root/board/guybrush
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2021-06-16 11:33:04 -0600
committerCommit Bot <commit-bot@chromium.org>2021-07-14 22:11:46 +0000
commit0ca9fa9cca6a410c7f50dab6caa8356b930345fc (patch)
tree1554da62bc11cc2330ec4deee10341cf0cdb0688 /board/guybrush
parentb95a06b0a1ebe2d85a713b30eec678d00adb7c66 (diff)
downloadchrome-ec-0ca9fa9cca6a410c7f50dab6caa8356b930345fc.tar.gz
Guybrush: Add battery sleep information
Two of the guybrush batteries support a sleep mode, so add that register information into the battery structures. BRANCH=None BUG=b:186774653 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I156bf7878adbce95644cadaf071a37d5df4bf03e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2967038 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/guybrush')
-rw-r--r--board/guybrush/battery.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/guybrush/battery.c b/board/guybrush/battery.c
index 3862d1144b..ddf3adff50 100644
--- a/board/guybrush/battery.c
+++ b/board/guybrush/battery.c
@@ -38,6 +38,11 @@ const struct board_batt_params board_battery_info[] = {
.reg_addr = 0x00,
.reg_data = { 0x0010, 0x0010 },
},
+ .sleep_mode = {
+ .sleep_supported = true,
+ .reg_addr = 0x00,
+ .reg_data = 0x0011,
+ },
.fet = {
.reg_addr = 0x0,
.reg_mask = 0x2000,
@@ -92,6 +97,11 @@ const struct board_batt_params board_battery_info[] = {
.reg_addr = 0x0,
.reg_data = { 0x10, 0x10 },
},
+ .sleep_mode = {
+ .sleep_supported = true,
+ .reg_addr = 0x00,
+ .reg_data = 0x0011,
+ },
.fet = {
.reg_addr = 0x00,
.reg_mask = 0x2000,