diff options
author | Terry Chen <terry_chen@wistron.corp-partner.google.com> | 2021-02-03 15:35:40 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-17 20:45:28 +0000 |
commit | e19e0eea3dc19bdf8c5765812b0c6a8c153b2570 (patch) | |
tree | 05d7c826bfeb199a9d9a825450bcaa66d06810e4 /board/eldrid | |
parent | afbb33c211973535e537abe0e6becf455f56108b (diff) | |
download | chrome-ec-e19e0eea3dc19bdf8c5765812b0c6a8c153b2570.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>
Diffstat (limited to 'board/eldrid')
-rw-r--r-- | board/eldrid/board.c | 9 |
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), |