diff options
author | Duncan Laurie <dlaurie@google.com> | 2017-06-05 07:40:21 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-05 14:49:08 -0700 |
commit | 2ac6afd3e68bde5b50ddc9d35f832112c56f22ab (patch) | |
tree | 6fdccdd23a6f19b2bcaf77282c059d080a64862b | |
parent | a80267f1d64c5c04e0e50460e473208cbfc80f49 (diff) | |
download | chrome-ec-2ac6afd3e68bde5b50ddc9d35f832112c56f22ab.tar.gz |
eve: Disable discharge-on-ac with board 5+
Board version 5+ has BD99954 charger which does not have audible
noise when battery is full and charger is at 20V. Disable the
discharge-on-ac workaround for these boards.
BUG=b:37228827
BRANCH=none
TEST=tested on board version 5 that discharge-on-ac is not enabled
when the battery is full.
Change-Id: I72e6870e06328d84a802c2f736659677de1f9a08
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/524222
Reviewed-by: Scott Collyer <scollyer@chromium.org>
-rw-r--r-- | board/eve/battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/eve/battery.c b/board/eve/battery.c index 77fb5ca7cf..e5cbd61271 100644 --- a/board/eve/battery.c +++ b/board/eve/battery.c @@ -225,7 +225,7 @@ static int charger_should_discharge_on_ac(struct charge_state_data *curr) * To overcome this issue enable the battery learning operation * and suspend USB charging and DC/DC converter. */ - if (!battery_is_cut_off() && + if ((board_get_version() < 5) && !battery_is_cut_off() && !(curr->batt.flags & BATT_FLAG_WANT_CHARGE) && (curr->batt.status & STATUS_FULLY_CHARGED)) return 1; |