summaryrefslogtreecommitdiff
path: root/board/spring
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-02-21 17:09:14 +0800
committerChromeBot <chrome-bot@google.com>2013-02-21 21:16:44 -0800
commit6492c99cca13e1a1fe00d83d0947b6fd1fcd310d (patch)
tree8dccf2f4c8d1ce3f9af6a79c69fe613c45ad31a7 /board/spring
parent517d4d771b4d73adb5e189cca11fafa41ffba923 (diff)
downloadchrome-ec-6492c99cca13e1a1fe00d83d0947b6fd1fcd310d.tar.gz
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 <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/43716 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/spring')
-rw-r--r--board/spring/usb_charging.c12
1 files changed, 6 insertions, 6 deletions
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];