diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-03-06 09:13:09 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-07 03:38:38 +0000 |
commit | d09405203fea4d19d5c1bcb7a25a7142062d6849 (patch) | |
tree | e474acc0e3bcb3bb554059401d99bd414a9ec68f /include | |
parent | 41436f478d8902130b50b561ad477ef20e42d5fc (diff) | |
download | chrome-ec-d09405203fea4d19d5c1bcb7a25a7142062d6849.tar.gz |
samus: ryu: allow charge ramp on CDP and proprietary chargers
Modify charge ramp so that when it ramps it ramps from 500mA and
up to the maximum allowed by that supplier. Also modify Samus and
Ryu to use charge ramping for CDP and proprietary chargers due
to the possibility that they may not be able to supply the amount
that is supposed to be guaranteed by their advertisement.
BUG=chrome-os-partner:37549
BRANCH=samus
TEST=test on a proprietary charger, make sure we can ramp. test
a DCP and make sure we also ramp as before.
Change-Id: I08fd43c8f0b21aa54d114fbe5a1296c9556357e4
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/256972
Reviewed-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/charge_ramp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/charge_ramp.h b/include/charge_ramp.h index 629499e6ac..c6e0531496 100644 --- a/include/charge_ramp.h +++ b/include/charge_ramp.h @@ -29,10 +29,11 @@ int board_is_ramp_allowed(int supplier); * Get the maximum current limit that we are allowed to ramp to * * @supplier Active supplier type + * @sup_curr Input current limit based on supplier * * @return Maximum current in mA */ -int board_get_ramp_current_limit(int supplier); +int board_get_ramp_current_limit(int supplier, int sup_curr); /** * Check if board is consuming full input current |