mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user