diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2017-01-18 11:08:21 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-18 19:18:31 -0800 |
commit | 5909f4ee26a21de6a8683c81f24ac01daae5326a (patch) | |
tree | 491ca6e1a649dda6675cbf551e17185b18074996 /common/charge_ramp.c | |
parent | f7720d580d007b3f3204fac97e39058c0c635687 (diff) | |
download | chrome-ec-5909f4ee26a21de6a8683c81f24ac01daae5326a.tar.gz |
Revert "charge_ramp: Adjust minimum ramp current"
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 reverting
this patch.
This reverts commit 6a7e4a7b353c53d33d44662c71763490ffd1fdc4.
BUG=chrome-os-partner:61420
BRANCH=none
TEST=make buildall -j
Change-Id: I2ed3f767973ff9c47fa7d2a2cca1aca15d13aa65
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/430152
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>
Diffstat (limited to 'common/charge_ramp.c')
-rw-r--r-- | common/charge_ramp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/charge_ramp.c b/common/charge_ramp.c index c84e126140..f6942d7516 100644 --- a/common/charge_ramp.c +++ b/common/charge_ramp.c @@ -29,6 +29,7 @@ /* Current ramp increment */ #define RAMP_CURR_INCR_MA 64 #define RAMP_CURR_DELAY (500*MSEC) +#define RAMP_CURR_START_MA 500 /* How much to backoff the input current limit when limit has been found */ #define RAMP_ICL_BACKOFF (2*RAMP_CURR_INCR_MA) @@ -101,8 +102,7 @@ void chg_ramp_charge_supplier_change(int port, int supplier, int current, /* Set min and max input current limit based on if ramp is allowed */ if (board_is_ramp_allowed(active_sup)) { - min_icl = charge_manager_get_ramp_start_current(active_port, - active_sup); + min_icl = RAMP_CURR_START_MA; max_icl = board_get_ramp_current_limit(active_sup, current); } else { min_icl = max_icl = current; |