summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2017-01-18 11:27:23 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-01-18 22:51:17 -0800
commitd19457cfa1c7f32befba3194b9b451b142c7b3a0 (patch)
tree3064397966a86bf08eb67687dba25d22e6e15aca
parentda2e9e86f7ac1f98b1f918a918c4cc54fc15e8fc (diff)
downloadchrome-ec-d19457cfa1c7f32befba3194b9b451b142c7b3a0.tar.gz
charge_manager: Update power supplier prioritystabilize-9199.B
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 <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/430153 Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com> Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Benson Leung <bleung@chromium.org>
-rw-r--r--common/charge_manager.c10
1 files 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);