From ff4f39d90618557cf81bd324ddc9ec2477d379fe Mon Sep 17 00:00:00 2001 From: Bruce Date: Tue, 7 Mar 2017 17:13:48 +0800 Subject: [PATCH] snappy: limit max input current for safety Cancel snappy total power spec (adapter - 5W), follow reef setting. Max = Max * 95% BUG=b:35937839 BRANCH=reef TEST=make buildall Change-Id: I2bf8ef8856a6ac93efee3f5a53fdd5e99d6d68dd Signed-off-by: Bruce.Wan Reviewed-on: https://chromium-review.googlesource.com/451080 Commit-Ready: Bruce Wan Tested-by: Bruce Wan Reviewed-by: Aaron Durbin --- board/snappy/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/snappy/board.c b/board/snappy/board.c index de8a209591..a2de11eece 100644 --- a/board/snappy/board.c +++ b/board/snappy/board.c @@ -612,7 +612,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 * 89) / 100; + charge_ma = (charge_ma * 95) / 100; charge_set_input_current_limit(MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv); }