diff options
author | Sue <sue.chen@quanta.corp-partner.google.com> | 2020-01-08 17:14:18 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-09 10:01:57 +0000 |
commit | 6d4b9490cc6f3c7fe44875eba0a2e6af60ccc73a (patch) | |
tree | 5eb220f91f1e818cfd02e81f955ee3ccad725734 /board/bobba | |
parent | 9c560d0c3172d4446db506ca7250302d35deaa0d (diff) | |
download | chrome-ec-6d4b9490cc6f3c7fe44875eba0a2e6af60ccc73a.tar.gz |
Bobba: Can't boot up at 1st times AC in while connecting failed battery
Define CONFIG_USB_PD_RESET_MIN_BATT_SOC to make sure not to hard reset
PD while the battery has not met a configured safe level or the DFET
status is off.
BUG=b:146758440
BRANCH=octopus
TEST=Verify on the DUT with bad battery which can report battery level
correctly but DFET is disabled and can't be revived.
Change-Id: Id0b2232861b6fdef82e5f73cf3490823407144fe
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1990939
Tested-by: Marco Chen <marcochen@chromium.org>
Reviewed-by: Marco Chen <marcochen@chromium.org>
Commit-Queue: Marco Chen <marcochen@chromium.org>
Diffstat (limited to 'board/bobba')
-rw-r--r-- | board/bobba/board.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/bobba/board.h b/board/bobba/board.h index 9e3bd94e88..e8c36abfad 100644 --- a/board/bobba/board.h +++ b/board/bobba/board.h @@ -22,6 +22,13 @@ #define CONFIG_LED_COMMON +/* + * Some bad battery which can report battery level correctly + * but D-FET is disabled and can't be revived, so define reset + * level to eable CL:1980406 function. + */ +#define CONFIG_USB_PD_RESET_MIN_BATT_SOC 2 + /* Sensors */ #define CONFIG_ACCEL_KX022 /* Lid accel */ #define CONFIG_ACCELGYRO_BMI160 /* Base accel */ |