From d19457cfa1c7f32befba3194b9b451b142c7b3a0 Mon Sep 17 00:00:00 2001 From: Vijay Hiremath Date: Wed, 18 Jan 2017 11:27:23 -0800 Subject: charge_manager: Update power supplier priority From the USBC spec 1.2 "Table 4-14 Precedence of power source usage" USB Type-C 3.0 A & 1.5 A takes precedence over BC1.2 hence updated the power supplier priority of charger manager. BUG=chrome-os-partner:61420 BRANCH=none TEST=Manually tested on reef. Donette bottom port can switch from 1.5A to 3A upon high load. Change-Id: Iff936d6a8643e88e0b2738251254e896fe8562fe Signed-off-by: Vijay Hiremath Reviewed-on: https://chromium-review.googlesource.com/430153 Commit-Ready: Vijay P Hiremath Tested-by: Vijay P Hiremath Reviewed-by: Aaron Durbin Reviewed-by: Benson Leung --- common/charge_manager.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/charge_manager.c b/common/charge_manager.c index 1c9bac377e..da748b39a0 100644 --- a/common/charge_manager.c +++ b/common/charge_manager.c @@ -33,11 +33,11 @@ test_mockable const int supplier_priority[] = { [CHARGE_SUPPLIER_PD] = 0, [CHARGE_SUPPLIER_TYPEC] = 1, [CHARGE_SUPPLIER_PROPRIETARY] = 1, - [CHARGE_SUPPLIER_BC12_DCP] = 1, - [CHARGE_SUPPLIER_BC12_CDP] = 2, - [CHARGE_SUPPLIER_BC12_SDP] = 3, - [CHARGE_SUPPLIER_OTHER] = 3, - [CHARGE_SUPPLIER_VBUS] = 4 + [CHARGE_SUPPLIER_BC12_DCP] = 2, + [CHARGE_SUPPLIER_BC12_CDP] = 3, + [CHARGE_SUPPLIER_BC12_SDP] = 4, + [CHARGE_SUPPLIER_OTHER] = 5, + [CHARGE_SUPPLIER_VBUS] = 6 }; BUILD_ASSERT(ARRAY_SIZE(supplier_priority) == CHARGE_SUPPLIER_COUNT); -- cgit v1.2.1