summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSue <sue.chen@quanta.corp-partner.google.com>2020-01-08 17:14:18 +0800
committerCommit Bot <commit-bot@chromium.org>2020-01-10 15:56:22 +0000
commit656e7a3ed53454e689b218597049067913273705 (patch)
tree6d733b4b7666a7889466ccdab3077756a8f66e49
parent41f96d12a9b58ca173dcbf4da00f4e3bef5208ea (diff)
downloadchrome-ec-656e7a3ed53454e689b218597049067913273705.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> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1994903 Reviewed-by: Justin TerAvest <teravest@chromium.org> Commit-Queue: Justin TerAvest <teravest@chromium.org> Tested-by: Justin TerAvest <teravest@chromium.org>
-rw-r--r--board/bobba/board.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/bobba/board.h b/board/bobba/board.h
index 224fff5737..f163712df6 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 */