diff options
author | Diana Z <dzigterman@chromium.org> | 2019-05-10 12:54:18 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-07-02 18:52:49 +0000 |
commit | 6b83e8b1cfbd7a9fd4b7e4e69113348c51efea4f (patch) | |
tree | 23e121da7cedac66bc4c3c2780094d87fe8af081 /board | |
parent | 4c7d52d7e308ef17011318b7217def69025ecbc9 (diff) | |
download | chrome-ec-6b83e8b1cfbd7a9fd4b7e4e69113348c51efea4f.tar.gz |
Fleex: Set minimum battery level for Try.SRC and resets
Some battery and fuel gague combinations for fleex are unable to
withstand the loss of a charger's Vbus signal when they are reporting 1%
charge. This change increases the Try.SRC battery required, and also
prevents the PD state machine from starting reset timers until the
battery is at 2%.
BUG=b:128935567
BRANCH=octopus
TEST=verified hard resets don't occur on grabbiter when system is locked
and coming back from battery cutoff with low battery, verified soft
followed by hard reset later occurs when battery passes config level
Change-Id: Ia0eca111daaf6b63f71c397231de4cfa30e34b8c
Signed-off-by: Diana Z <dzigterman@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1606742
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/fleex/board.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/fleex/board.h b/board/fleex/board.h index 2b23045be2..8aa45c0c38 100644 --- a/board/fleex/board.h +++ b/board/fleex/board.h @@ -20,6 +20,16 @@ #define CONFIG_LED_COMMON #define CONFIG_LED_ONOFF_STATES_BAT_LOW 10 +/* + * Some fuel gagues will return 1% immediately, without the battery being + * charged to the point of being able to withstand Vbus loss, so re-set + * allowable Try.SRC level and reset level to 2% + */ +#undef CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC +#define CONFIG_USB_PD_TRY_SRC_MIN_BATT_SOC 2 + +#define CONFIG_USB_PD_RESET_MIN_BATT_SOC 2 + /* Sensors */ #define CONFIG_ACCEL_LIS2DE /* Lid accel */ #define CONFIG_ACCELGYRO_LSM6DSM /* Base accel */ |