diff options
author | Ting Shen <phoenixshen@google.com> | 2019-08-01 14:26:01 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-02 13:18:48 +0000 |
commit | f9176d199fd70e512d1050a736909f9114b80291 (patch) | |
tree | 0d0332fdcca2376f348276b087befd7c1d7c82b6 /baseboard | |
parent | d4ff5c13b13437e643d4f6642198ef214d71e5a0 (diff) | |
download | chrome-ec-f9176d199fd70e512d1050a736909f9114b80291.tar.gz |
kukui: fix incorrect input power limit
This CL includes two major changes:
- set input current in board_set_charge_limit() instead of
charger_profile_override().
- remove board revision constraint, apply the fix to all kukui/kranes.
BUG=b:134227872
TEST=manually, boot with new fw and measure the power.
BRANCH=master
Change-Id: Ib826e805990fe3e9af5a88c231825bd477592e49
Signed-off-by: Ting Shen <phoenixshen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1730378
Reviewed-by: Yilun Lin <yllin@chromium.org>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'baseboard')
-rw-r--r-- | baseboard/kukui/charger_mt6370.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/baseboard/kukui/charger_mt6370.c b/baseboard/kukui/charger_mt6370.c index 362ce8c86b..b64d29a009 100644 --- a/baseboard/kukui/charger_mt6370.c +++ b/baseboard/kukui/charger_mt6370.c @@ -36,15 +36,12 @@ void mt6370_charger_profile_override(struct charge_state_data *curr) charge_get_percent() > BAT_LEVEL_PD_LIMIT && curr->batt.current < 1000) { chg_limit_mv = 5500; - } else if (IS_ENABLED(BOARD_KRANE) && - board_get_version() == 3 && - power_get_state() == POWER_S0) { + } else if (power_get_state() == POWER_S0) { /* - * TODO(b:134227872): limit power to 5V/2A in S0 to prevent + * b/134227872: limit power to 5V/2A in S0 to prevent * overheat */ chg_limit_mv = 5500; - curr->requested_current = 2000; } else { chg_limit_mv = PD_MAX_VOLTAGE_MV; } |