From 165f7d6f3bad4d49f977e1c5efad326f11007bf0 Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Fri, 6 Oct 2017 15:46:02 -0700 Subject: charge_ramp: Ramp USB-C DTS sources suzy-qable advertises 1.5A, but its actual capability depends on the host USB port it is attached to. Since suzy-qable is ubiquitous and other DTS sources may behave in the same way, ramp the input current limit in order to find a reasonable maximum. BUG=chromium:770296 BRANCH=None TEST=Attach suzy-qable to kevin and reef, verify that neither OCs and EC console via cr50 is available on reef. Also verify donette chargers kevin at 3A and does not ramp. Change-Id: Idd0683ede3a44111a01da6b4faab52f388ee82fd Signed-off-by: Shawn Nematbakhsh Reviewed-on: https://chromium-review.googlesource.com/693295 Commit-Ready: Shawn N Tested-by: Shawn N Reviewed-by: Vincent Palatin --- test/charge_manager.c | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/charge_manager.c b/test/charge_manager.c index a203a515c9..b40d42611a 100644 --- a/test/charge_manager.c +++ b/test/charge_manager.c @@ -26,6 +26,7 @@ const int supplier_priority[] = { [CHARGE_SUPPLIER_TEST6] = 3, [CHARGE_SUPPLIER_TEST7] = 5, [CHARGE_SUPPLIER_TEST8] = 6, + [CHARGE_SUPPLIER_TEST9] = 6, }; BUILD_ASSERT((int)CHARGE_SUPPLIER_COUNT == (int)CHARGE_SUPPLIER_TEST_COUNT); BUILD_ASSERT(ARRAY_SIZE(supplier_priority) == CHARGE_SUPPLIER_COUNT); -- cgit v1.2.1