From 6d4b9490cc6f3c7fe44875eba0a2e6af60ccc73a Mon Sep 17 00:00:00 2001 From: Sue Date: Wed, 8 Jan 2020 17:14:18 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1990939 Tested-by: Marco Chen Reviewed-by: Marco Chen Commit-Queue: Marco Chen --- board/bobba/board.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'board/bobba') 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 */ -- cgit v1.2.1