diff options
author | Aseda Aboagye <aaboagye@google.com> | 2020-06-03 10:31:04 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-03 21:13:38 +0000 |
commit | e0d7e156976cde28bc8bca2b1211c61759ca8995 (patch) | |
tree | eed8ab5ac21abe223ae1adcf5013008011754182 /driver | |
parent | 1a78df900266e595c619b6dd44b6fc1157ff3ad6 (diff) | |
download | chrome-ec-e0d7e156976cde28bc8bca2b1211c61759ca8995.tar.gz |
bc12/pi3usb9281: Fix max ilim for SDP
Per the USB Battery Charging 1.2 specification Section 1.4.13
"Standard Downstream Port", a standard downstream port can support a
maximum of 500mA. This commit fixes a bug where we were assuming we
could pull a maximum of 1A from an SDP.
BUG=b:158094711
BRANCH=nami,rammus,poppy,glados,oak
TEST=make -j buildall
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Change-Id: I9875743c2c3d570845f1171f34d91fc8967164b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2228393
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Auto-Submit: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/bc12/pi3usb9281.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/bc12/pi3usb9281.c b/driver/bc12/pi3usb9281.c index 85b6cf2282..56ad5bf602 100644 --- a/driver/bc12/pi3usb9281.c +++ b/driver/bc12/pi3usb9281.c @@ -476,7 +476,7 @@ static int pi3usb9281_ramp_max(int supplier, int sup_curr) case CHARGE_SUPPLIER_BC12_DCP: return USB_CHARGER_MAX_CURR_MA; case CHARGE_SUPPLIER_BC12_SDP: - return 1000; + return 500; case CHARGE_SUPPLIER_BC12_CDP: case CHARGE_SUPPLIER_PROPRIETARY: return sup_curr; |