samus: limit input current to 2.5A to prevent over currenting zinger

Set maximum input current limit to ~2.5A to prevent over current
faults on zinger. Note, we still get over current faults sometimes
but it always clears in < 10seconds.

BUG=chrome-os-partner:28611
BRANCH=none
TEST=Test with a samus 1.9 and a zinger. Plug and unplug charger
many times and make sure that we are eventually able to successfully
negotiate for power and start charging.

Change-Id: I5a7adf9fc7f5ed7a0c7dfdb620e0c1474f72a878
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/201154
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
Alec Berg
2014-05-22 15:02:13 -07:00
committed by chrome-internal-fetch
parent 45be37b5d9
commit 113ea43a69

View File

@@ -52,7 +52,7 @@ const struct battery_info *battery_get_info(void)
* wanted it in the first place.
*/
/* FIXME(crosbug.com/p/24461): determine correct values for this */
#define MAX_INPUT_CURRENT 3200
#define MAX_INPUT_CURRENT 2432
#define INPUT_CURRENT_INCR 64
static int fast_charging_allowed;