summaryrefslogtreecommitdiff
path: root/test/charge_ramp.c
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2015-03-06 09:13:09 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-07 03:38:38 +0000
commitd09405203fea4d19d5c1bcb7a25a7142062d6849 (patch)
treee474acc0e3bcb3bb554059401d99bd414a9ec68f /test/charge_ramp.c
parent41436f478d8902130b50b561ad477ef20e42d5fc (diff)
downloadchrome-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 'test/charge_ramp.c')
-rw-r--r--test/charge_ramp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/charge_ramp.c b/test/charge_ramp.c
index e853b46e93..5001c1a664 100644
--- a/test/charge_ramp.c
+++ b/test/charge_ramp.c
@@ -58,7 +58,7 @@ void board_set_charge_limit(int limit_ma)
task_set_event(TASK_ID_TEST_RUNNER, TASK_EVENT_OVERCURRENT, 0);
}
-int board_get_ramp_current_limit(int supplier)
+int board_get_ramp_current_limit(int supplier, int sup_curr)
{
if (supplier == CHARGE_SUPPLIER_TEST9)
return 1600;