From 7561d444f386cfc3529f10bcc8be7b9b82fda69e Mon Sep 17 00:00:00 2001 From: Ryan Zhang Date: Tue, 28 Jun 2016 09:31:58 +0800 Subject: [PATCH] Elm: Update max input current for safety tested Constant Current from 2248mA (100%:2.25A) become 2136mA (95%:2137.5) BUG=chrome-os-partner:54890 BRANCH=master TEST=`make -j BOARD=elm` Change-Id: I1c64eb98e044262f9dd54c21cfeb4339e411d4b3 Reviewed-by: Ryan Zhang Reviewed-on: https://chromium-review.googlesource.com/356354 Commit-Ready: Ryan Zhang Tested-by: Ryan Zhang Reviewed-by: Shawn N --- board/elm/board.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/elm/board.c b/board/elm/board.c index fc8cf73a3b..87b2db8281 100644 --- a/board/elm/board.c +++ b/board/elm/board.c @@ -330,6 +330,8 @@ int board_set_active_charge_port(int charge_port) */ void board_set_charge_limit(int port, int supplier, int charge_ma) { + /* Limit input current 95% ratio on elm board for safety */ + charge_ma = (charge_ma * 95) / 100; charge_set_input_current_limit(MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT)); pd_send_host_event(PD_EVENT_POWER_CHANGE);