summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Chen <terry_chen@wistron.corp-partner.google.com>2021-02-03 15:35:40 +0800
committerCommit Bot <commit-bot@chromium.org>2021-02-17 21:05:49 +0000
commit4cd4cc5a6f76d856a3be1f0b5a7d61396f6bba57 (patch)
treee14f77eec0c3646676918c37189b0fc7ff3e1754
parent686100881d02e5acd39af12a8096312cef207e54 (diff)
downloadchrome-ec-4cd4cc5a6f76d856a3be1f0b5a7d61396f6bba57.tar.gz
eldrid: modify charger current limit and ACPorchot#
Enlarge ACProchot# to prevent prochot keep triggering fan spin max rpm. And set the same current limit when S0 and S5. BUG=b:178869017 BRANCH=firmware-volteer-13672.B-master TEST=make buildall TEST=test pass by power team Signed-off-by: Terry Chen <terry_chen@wistron.corp-partner.google.com> Change-Id: I739b42453e796c3cc04657adbf84e96dc26abeb5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2671261 Tested-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2701537 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org> Tested-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r--board/eldrid/board.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/board/eldrid/board.c b/board/eldrid/board.c
index cf46f04edb..4e9dd5bb64 100644
--- a/board/eldrid/board.c
+++ b/board/eldrid/board.c
@@ -178,16 +178,15 @@ __override void board_set_charge_limit(int port, int supplier, int charge_ma,
* Set different AC_PROCHOT value when using different wattage ADT.
*/
if (max_ma * charge_mv == PD_MAX_POWER_MW * 1000)
- isl9241_set_ac_prochot(0, 3072);
+ isl9241_set_ac_prochot(0, 3840);
else
- isl9241_set_ac_prochot(0, 2816);
+ isl9241_set_ac_prochot(0, 3328);
/*
* Follow OEM request to limit the input current to
- * 90% negotiated limit when S0.
+ * 90% negotiated limit.
*/
- if (chipset_in_state(CHIPSET_STATE_ON))
- charge_ma = charge_ma * 90 / 100;
+ charge_ma = charge_ma * 90 / 100;
charge_set_input_current_limit(MAX(charge_ma,
CONFIG_CHARGER_INPUT_CURRENT),