mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-31 02:51:26 +00:00
bd99955: Enforce minimum input current of 512 mA
Lower input current limits can cause back-boosting in some cases. BUG=chrome-os-partner:54778 BRANCH=None TEST=Manual on reef. Plug multiple chargers, verify ilim doesn't drop below 512 mA and back-boosting does not occur. Change-Id: Ia019fe52d75a9a37177605ceda473d338fd87fc3 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/356161 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
4cdd14d07b
commit
bc49870ed1
@@ -401,6 +401,10 @@ int charger_set_input_current(int input_current)
|
||||
|
||||
/* Input current step 32 mA */
|
||||
input_current &= ~0x1F;
|
||||
|
||||
if (input_current < bd99955_charger_info.input_current_min)
|
||||
input_current = bd99955_charger_info.input_current_min;
|
||||
|
||||
rv = ch_raw_write16(BD99955_CMD_IBUS_LIM_SET, input_current,
|
||||
BD99955_BAT_CHG_COMMAND);
|
||||
if (rv)
|
||||
|
||||
@@ -36,7 +36,7 @@ enum bd99955_charge_port {
|
||||
#define CHARGE_I_OFF 0
|
||||
#define CHARGE_I_STEP 64
|
||||
#define INPUT_I_MAX 16352
|
||||
#define INPUT_I_MIN 0
|
||||
#define INPUT_I_MIN 512
|
||||
#define INPUT_I_STEP 32
|
||||
|
||||
/* Battery Charger Commands */
|
||||
|
||||
Reference in New Issue
Block a user