diff options
author | Devin Lu <Devin.Lu@quantatw.com> | 2020-11-16 11:08:59 +0800 |
---|---|---|
committer | Justin TerAvest <teravest@chromium.org> | 2020-11-16 21:15:53 +0000 |
commit | 51a619329f31b3efd4f6efb7cc8eb2d8848d11e1 (patch) | |
tree | 4327f258ca19ea56a4dcb84aa8e2c059de226843 /board/drawcia | |
parent | eb76e68d291648c60b2ff9cde3d071785add90a6 (diff) | |
download | chrome-ec-51a619329f31b3efd4f6efb7cc8eb2d8848d11e1.tar.gz |
drawcia: Add Batteries CFET mask & val field
This commit add the charge FET (CFET) field for OCPC.
BUG=b:173174333
BRANCH=none
TEST=On Drawcia. Cutoff battery and verify that CFET disable status
is reflected after attached charger.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Ifcd6fcedd8422e3b7af292c473a17328edf3d5c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2539228
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/drawcia')
-rw-r--r-- | board/drawcia/battery.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/board/drawcia/battery.c b/board/drawcia/battery.c index 5e21495f35..2a4c59d476 100644 --- a/board/drawcia/battery.c +++ b/board/drawcia/battery.c @@ -45,6 +45,8 @@ const struct board_batt_params board_battery_info[] = { .reg_addr = 0x0, .reg_mask = 0x0006, .disconnect_val = 0x0, + .cfet_mask = 0x0004, + .cfet_off_val = 0x0, }, }, .batt_info = { @@ -74,6 +76,8 @@ const struct board_batt_params board_battery_info[] = { .reg_addr = 0x0, .reg_mask = 0x0006, .disconnect_val = 0x0, + .cfet_mask = 0x0004, + .cfet_off_val = 0x0, }, }, .batt_info = { @@ -103,6 +107,8 @@ const struct board_batt_params board_battery_info[] = { .reg_addr = 0x0, .reg_mask = 0x0006, .disconnect_val = 0x0, + .cfet_mask = 0x0004, + .cfet_off_val = 0x0, }, }, .batt_info = { @@ -132,6 +138,8 @@ const struct board_batt_params board_battery_info[] = { .reg_addr = 0x0, .reg_mask = 0x0006, .disconnect_val = 0x0, + .cfet_mask = 0x0004, + .cfet_off_val = 0x0, }, }, .batt_info = { @@ -161,6 +169,8 @@ const struct board_batt_params board_battery_info[] = { .reg_addr = 0x0, .reg_mask = 0x0006, .disconnect_val = 0x0, + .cfet_mask = 0x0004, + .cfet_off_val = 0x0, }, }, .batt_info = { @@ -190,6 +200,8 @@ const struct board_batt_params board_battery_info[] = { .reg_addr = 0x0, .reg_mask = 0x0006, .disconnect_val = 0x0, + .cfet_mask = 0x0004, + .cfet_off_val = 0x0, }, }, .batt_info = { @@ -219,6 +231,8 @@ const struct board_batt_params board_battery_info[] = { .reg_addr = 0x0, .reg_mask = 0x0006, .disconnect_val = 0x0, + .cfet_mask = 0x0004, + .cfet_off_val = 0x0, }, }, .batt_info = { @@ -248,6 +262,8 @@ const struct board_batt_params board_battery_info[] = { .reg_addr = 0x0, .reg_mask = 0x0006, .disconnect_val = 0x0, + .cfet_mask = 0x0004, + .cfet_off_val = 0x0, }, }, .batt_info = { @@ -277,6 +293,8 @@ const struct board_batt_params board_battery_info[] = { .reg_addr = 0x0, .reg_mask = 0x0006, .disconnect_val = 0x0, + .cfet_mask = 0x0004, + .cfet_off_val = 0x0, }, }, .batt_info = { |