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 10:20:42 +0000 |
commit | 984275e6f274f3c59b92ba73c2e5ed8a62cfe81d (patch) | |
tree | e4eb2e5b9f9ec5a60e3e5f7681e87aec67cb2ea1 | |
parent | 7c7866e774940b7faf9d95ddef2f4e0aed19e0a7 (diff) | |
download | chrome-ec-984275e6f274f3c59b92ba73c2e5ed8a62cfe81d.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>
(cherry picked from commit 600e4bac22acf5ad40cb984e49bbae6e0df04c13)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3555450
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
-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 0b0d04970f..86c74d9327 100644 --- a/board/kappa/battery.c +++ b/board/kappa/battery.c @@ -64,7 +64,7 @@ const struct board_batt_params board_battery_info[] = { .discharging_max_c = 60, }, }, - /* LGC MPPHPPFO021C Battery Information */ + /* LGC MPPHPPFO021C Battery Information, BMU RAJ240045 */ [BATTERY_LGC] = { .fuel_gauge = { .manuf_name = "313-42-14-A", @@ -73,9 +73,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, }, }, |