From ba4a67558ae76c1fe3b864eb18a5c6da6fbba666 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Sun, 16 Jul 2017 09:58:10 -0700 Subject: eve: Remove discharge-when-full state With the bd99954 charger we do not need to discharge when full, so remove this config option and the setting of 94% for "full" battery. Note that this only affects the battery reporting state, the EVT systems (board <= 4) will still discharge when full (in order to prevent the charger noise) but they will now indicate that they are discharging in this state instead of appearing full. Newer boards (version > 4) will behave as expected. This is a compile time option so it isn't something I can easily support old boards with, but I think it is more important to do the right thing for new boards. BUG=b:35585628 BRANCH=eve TEST=test charge behavior when full on board version 6 Change-Id: I3dd46ae305107b17b3bf8e3ce71578d3400b0f79 Signed-off-by: Duncan Laurie Reviewed-on: https://chromium-review.googlesource.com/573091 Reviewed-by: Shawn N --- board/eve/board.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/board/eve/board.h b/board/eve/board.h index 21ec722762..538b20371c 100644 --- a/board/eve/board.h +++ b/board/eve/board.h @@ -81,7 +81,6 @@ /* Battery */ #define CONFIG_BATTERY_CUT_OFF #define CONFIG_BATTERY_DEVICE_CHEMISTRY "LION" -#define CONFIG_BATTERY_LEVEL_NEAR_FULL 94 #define CONFIG_BATTERY_PRESENT_CUSTOM #define CONFIG_BATTERY_REVIVE_DISCONNECT #define CONFIG_BATTERY_SMART @@ -114,7 +113,6 @@ #define CONFIG_POWER_BUTTON_X86 #define CONFIG_POWER_COMMON #define CONFIG_POWER_SIGNAL_INTERRUPT_STORM_DETECT_THRESHOLD 30 -#define CONFIG_PWR_STATE_DISCHARGE_FULL /* Sensor */ #define CONFIG_MKBP_EVENT -- cgit v1.2.1