diff options
author | Denis Brockus <dbrockus@google.com> | 2020-09-01 09:38:59 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-02 03:16:58 +0000 |
commit | 53fb92eca2338aeb3e4c3d88237b002b25cc326f (patch) | |
tree | 60c140305d9aa7f871ed8b374d6300024c100c0f | |
parent | fb769f0964178cc2e700eec363a8604312174a0b (diff) | |
download | chrome-ec-53fb92eca2338aeb3e4c3d88237b002b25cc326f.tar.gz |
charge: CONFIG_CHARGE_RAMP_SW allows for TypeC/PD current
chg_ramp_max limited CONFIG_CHARGE_RAMP_SW to BC1.2 current.
Allow this to be PD and TypeC as well.
BUG=b:163864475,b:167257846
BRANCH=none
TEST=ramp up to 1.5A from legacy charger
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I0aee9ecad2ccc9de1d7419c1a33507ccfda05fb5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2388080
Tested-by: Denis Brockus <dbrockus@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
-rw-r--r-- | common/charge_ramp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/common/charge_ramp.c b/common/charge_ramp.c index e95cb0ed06..ee8f846a5a 100644 --- a/common/charge_ramp.c +++ b/common/charge_ramp.c @@ -19,11 +19,9 @@ test_mockable int chg_ramp_allowed(int port, int supplier) switch (supplier) { case CHARGE_SUPPLIER_TYPEC_DTS: -#ifdef CONFIG_CHARGE_RAMP_HW /* Need ramping for USB-C chargers as well to avoid voltage droops. */ case CHARGE_SUPPLIER_PD: case CHARGE_SUPPLIER_TYPEC: -#endif return 1; /* default: fall through */ } @@ -35,10 +33,8 @@ test_mockable int chg_ramp_allowed(int port, int supplier) test_mockable int chg_ramp_max(int port, int supplier, int sup_curr) { switch (supplier) { -#ifdef CONFIG_CHARGE_RAMP_HW case CHARGE_SUPPLIER_PD: case CHARGE_SUPPLIER_TYPEC: -#endif case CHARGE_SUPPLIER_TYPEC_DTS: /* * We should not ramp DTS beyond what they advertise, otherwise |