diff options
author | Mike Lee <mike5@huaqin.corp-partner.google.com> | 2021-03-23 11:26:59 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-31 17:31:01 +0000 |
commit | 6f461988767765927cb5fff4d17e5967a4344c8a (patch) | |
tree | b463b1c010ada1f484cb3ae34dce05bc2cd34d29 /board/storo/board.c | |
parent | 145f4034aaa4f385f08847f0c041774c7f1fa9ae (diff) | |
download | chrome-ec-6f461988767765927cb5fff4d17e5967a4344c8a.tar.gz |
dedede/raa48900 boards: Apply 4% ICL reduction
The RAA48900 charger IC seems to over draw its contract by roughly 4%.
This commit simply modifies our input current limit to account for
that.
BUG=b:147463641
BRANCH=dedede
TEST=Build and flash storo and sasukette,verify that input current limit
is reduced and is under the contract.
Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com>
Change-Id: I37bc4fba776114f3386d79ff118edd7add104a67
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2780856
Reviewed-by: Henry Sun <henrysun@google.com>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Henry Sun <henrysun@google.com>
Diffstat (limited to 'board/storo/board.c')
-rw-r--r-- | board/storo/board.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/storo/board.c b/board/storo/board.c index 3a3e7ab53d..1478095a53 100644 --- a/board/storo/board.c +++ b/board/storo/board.c @@ -357,9 +357,10 @@ void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma, int icl = MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT); /* - * TODO(b/151955431): Characterize the input current limit in case a - * scaling needs to be applied here + * b/147463641: The charger IC seems to overdraw ~4%, therefore we + * reduce our target accordingly. */ + icl = icl * 96 / 100; charge_set_input_current_limit(icl, charge_mv); } |