summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2014-12-18 18:39:46 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-12-19 09:17:34 +0000
commit91131f7387a4b58997d481107dcf43dd5ce4d8d2 (patch)
treecf77b1cd601c58cf75fb79a47ea9196cda323100 /driver
parent165cf6c8813420e1ce525e103b42f19017228ec6 (diff)
downloadchrome-ec-91131f7387a4b58997d481107dcf43dd5ce4d8d2.tar.gz
pi3usb9281: Limit DCP port to 500mA charge current
According to specification, a DCP port is only required to provide 500mA @ 4.75V, though actual supply limit can vary upward significantly. Set the current limit on DCP ports to 500mA to reflect this reality. BUG=chrome-os-partner:32003 TEST=None BRANCH=Samus Change-Id: I46e25b44baaa41ddf173880e52d7485d952ebf23 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/236772 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r--driver/usb_switch_pi3usb9281.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/usb_switch_pi3usb9281.c b/driver/usb_switch_pi3usb9281.c
index 329c476708..215ee124a5 100644
--- a/driver/usb_switch_pi3usb9281.c
+++ b/driver/usb_switch_pi3usb9281.c
@@ -136,7 +136,7 @@ int pi3usb9281_get_ilim(int device_type, int charger_status)
else if (device_type & PI3USB9281_TYPE_CDP)
current_limit_ma = 1500;
else if (device_type & PI3USB9281_TYPE_DCP)
- current_limit_ma = 1500;
+ current_limit_ma = 500;
return current_limit_ma;
}