diff options
author | Ryan Zhang <Ryan.Zhang@quantatw.com> | 2016-06-28 09:31:58 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-07-10 22:16:24 -0700 |
commit | 7561d444f386cfc3529f10bcc8be7b9b82fda69e (patch) | |
tree | 1f93319e58815700236db968d36ebcbef80cd46c /board/elm/board.c | |
parent | 77c17a20543f8648cf9ddba25f2d4d66a1bbd393 (diff) | |
download | chrome-ec-7561d444f386cfc3529f10bcc8be7b9b82fda69e.tar.gz |
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 <Ryan.Zhang@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/356354
Commit-Ready: Ryan Zhang <Ryan.Zhang@quantatw.com>
Tested-by: Ryan Zhang <Ryan.Zhang@quantatw.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/elm/board.c')
-rw-r--r-- | board/elm/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |