From 91131f7387a4b58997d481107dcf43dd5ce4d8d2 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Thu, 18 Dec 2014 18:39:46 -0800 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/236772 Reviewed-by: Alec Berg --- driver/usb_switch_pi3usb9281.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }