eve: Adjust charging parameters for eve board

Limit max input current to 95% for safety.

(changes ported from reef)

BUG=b:36024657
BRANCH=none
TEST=manual testing on Eve P1b board

Change-Id: I6beb3fc4ac62e40bb7c8dfc8463e6a0d177997d9
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/450952
Reviewed-by: Scott Collyer <scollyer@chromium.org>
This commit is contained in:
Duncan Laurie
2017-03-07 09:45:37 -08:00
committed by chrome-bot
parent 97b7f85ffe
commit cf015d1e31

View File

@@ -487,6 +487,7 @@ void board_set_charge_limit(int port, int supplier, int charge_ma,
if (bd9995x_bc12_enable_charging(port, bc12_enable))
return;
charge_ma = (charge_ma * 95) / 100;
charge_set_input_current_limit(MAX(charge_ma,
CONFIG_CHARGER_INPUT_CURRENT), charge_mv);
}