summaryrefslogtreecommitdiff
path: root/board/coachz
diff options
context:
space:
mode:
authorhegang5 <hegang5@huaqin.corp-partner.google.com>2020-12-18 13:41:53 +0800
committerCommit Bot <commit-bot@chromium.org>2020-12-19 05:54:06 +0000
commit734be01c61e10e7c2e0410cae01245df1772ad93 (patch)
treec16187526cf70643788fce8980069afd7aaa9f4f /board/coachz
parente233c63037a0735748aca872e3e051a14b8700ba (diff)
downloadchrome-ec-734be01c61e10e7c2e0410cae01245df1772ad93.tar.gz
coachz:update current limit
coachz update current limit to 95 percent BRANCH=none BUG=none TEST=make BOARD=coachz -j Signed-off-by: hegang5 <hegang5@huaqin.corp-partner.google.com> Change-Id: I9e2fcd2b9fb84114ce7ceb64ec0e91154306da5b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2597132 Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'board/coachz')
-rw-r--r--board/coachz/board.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/coachz/board.c b/board/coachz/board.c
index 94327b50d4..740e97a284 100644
--- a/board/coachz/board.c
+++ b/board/coachz/board.c
@@ -586,6 +586,7 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
charge_ma = max_ma;
}
+ charge_ma = charge_ma * 95 / 100;
charge_set_input_current_limit(MAX(charge_ma,
CONFIG_CHARGER_INPUT_CURRENT),
charge_mv);