diff options
author | Devin Lu <Devin.Lu@quantatw.com> | 2022-03-25 09:03:29 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-03-29 04:39:21 +0000 |
commit | 600e4bac22acf5ad40cb984e49bbae6e0df04c13 (patch) | |
tree | b7d5e0ad54f52cbf0a33e93b14ccd3554fa32deb | |
parent | 0feac6ffe02348811293860e4127e2d98d54986c (diff) | |
download | chrome-ec-600e4bac22acf5ad40cb984e49bbae6e0df04c13.tar.gz |
kappa: Fix LGC MPPHPPFO021C battery C/DFET reading method
LGC MPPHPPFO021C chagne BMU from TI bq40z551 to Renesas RAJ240045,
This patch is the correct method to read C/D FET status.
BUG=b:216430224
BRANCH=firmware-kukui-12573.B
TEST=On Kappa, LGC battery can be recognized.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Iac204d59554bdc0532d39504b11b1e201bea0390
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3551998
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r-- | board/kappa/battery.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/kappa/battery.c b/board/kappa/battery.c index 8830d693a7..a098e2b8ce 100644 --- a/board/kappa/battery.c +++ b/board/kappa/battery.c @@ -66,7 +66,7 @@ const struct board_batt_params board_battery_info[] = { .vendor_param_start = 0x70, }, }, - /* LGC MPPHPPFO021C Battery Information */ + /* LGC MPPHPPFO021C Battery Information, BMU RAJ240045 */ [BATTERY_LGC] = { .fuel_gauge = { .manuf_name = "313-42-14-A", @@ -75,9 +75,9 @@ const struct board_batt_params board_battery_info[] = { .reg_data = { 0x0010, 0x0010 }, }, .fet = { - .mfgacc_support = 1, - .reg_addr = 0x0, - .reg_mask = 0x0006, + .mfgacc_support = 0, + .reg_addr = 0x43, + .reg_mask = 0x0003, .disconnect_val = 0x0, }, }, |