diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2015-06-29 14:33:22 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-01 02:15:19 +0000 |
commit | cdef497a4e50dc05818e7b327997ecb2de10c206 (patch) | |
tree | cbbb6b49dc29b02490c80925dc3e7bfe31b8c741 /include | |
parent | a11ffa6c93e28f536cf97eb29e613399d25baf63 (diff) | |
download | chrome-ec-cdef497a4e50dc05818e7b327997ecb2de10c206.tar.gz |
bq2598x: ryu: take into account hardware input current optimizer
Take profit of the hardware input current ramping/back-off integrated
in the BQ2589x charger by setting the current limits higher for BC1.2
USB modes and letting the hardware adjust to the actual charger
limitation depending on the VBUS voltage droop.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=smaug
BUG=chrome-os-partner:42045
TEST=Connect a Nexus 9 DCP charger to Smaug and see the input current
adjusted to 1650mA without brown-out, read back the value properly from
the AP:
$ ectool usbpdpower
Port 0: SNK Charger DCP 4958mV / 1650mA, max 5000mV / 1650mA / 8250mW
Change-Id: I348e5ee4980a5652f72f279ab4e3a7126583b093
Reviewed-on: https://chromium-review.googlesource.com/282584
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 2699335996..05459bfb10 100644 --- a/include/config.h +++ b/include/config.h @@ -250,6 +250,9 @@ /* Compile input current ramping support */ #undef CONFIG_CHARGE_RAMP +/* The hardware has some input current ramping/back-off mechanism */ +#undef CONFIG_CHARGE_RAMP_HW + /*****************************************************************************/ /* Charger config */ |