diff options
author | Aseda Aboagye <aaboagye@google.com> | 2020-11-18 18:44:41 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-20 20:43:32 +0000 |
commit | 5ff8db10799fb15dff6ef9d39880faeddc7c234f (patch) | |
tree | 107ea800075ba2f22fae9ca1c2f679f335fe0f14 /board/metaknight | |
parent | 33836f429071522699ca0ab4279b678522843408 (diff) | |
download | chrome-ec-5ff8db10799fb15dff6ef9d39880faeddc7c234f.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 waddledoo, verify that input current limit is
reduced and is under the contract.
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Change-Id: I70ab15ea24d789a7a1696217efae784f537ca014
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2548692
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/metaknight')
-rw-r--r-- | board/metaknight/board.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/metaknight/board.c b/board/metaknight/board.c index 79347ead32..45496c2992 100644 --- a/board/metaknight/board.c +++ b/board/metaknight/board.c @@ -346,9 +346,10 @@ void board_set_charge_limit(int port, int supplier, int charge_ma, int icl = MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT); /* - * TODO(b:147463641): Characterize the input current limit in case that - * 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); } |