From 6492c99cca13e1a1fe00d83d0947b6fd1fcd310d Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Thu, 21 Feb 2013 17:09:14 +0800 Subject: spring: Tweak current limit and voltage threshold Fine tune current limit and voltage threshold so that we don't hit current limit so easily. BUG=chrome-os-partner:14319 TEST=Manual on Spring BRANCH=None Change-Id: Ia9ccd13b9e7eac7cdee83d0f488a1a83c27318c0 Signed-off-by: Vic Yang Reviewed-on: https://gerrit.chromium.org/gerrit/43716 Reviewed-by: Vincent Palatin --- board/spring/usb_charging.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'board/spring') diff --git a/board/spring/usb_charging.c b/board/spring/usb_charging.c index fa943c1fdb..5308553160 100644 --- a/board/spring/usb_charging.c +++ b/board/spring/usb_charging.c @@ -31,11 +31,11 @@ TSU6721_TYPE_JIG_UART_ON) /* PWM controlled current limit */ -#define I_LIMIT_500MA 85 +#define I_LIMIT_500MA 90 #define I_LIMIT_1000MA 75 -#define I_LIMIT_1500MA 50 -#define I_LIMIT_2000MA 35 -#define I_LIMIT_2400MA 25 +#define I_LIMIT_1500MA 60 +#define I_LIMIT_2000MA 50 +#define I_LIMIT_2400MA 35 #define I_LIMIT_3000MA 0 /* PWM control loop parameters */ @@ -146,9 +146,9 @@ static int board_apple_charger_current(void) vn = data[ADC_CH_USB_DN_SNS]; tsu6721_mux(TSU6721_MUX_AUTO); tsu6721_enable_interrupts(); - if (vp > 1200) + if (vp > 1215) type |= 0x2; - if (vn > 1200) + if (vn > 1215) type |= 0x1; return apple_charger_type[type]; -- cgit v1.2.1