summaryrefslogtreecommitdiff
path: root/board/dratini
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2020-02-20 09:40:53 -0700
committerCommit Bot <commit-bot@chromium.org>2020-02-21 04:08:58 +0000
commitf0e5fcbc84fe35adb062742ddb4bd8ee080011a1 (patch)
tree1e970f4df1d51591caa2a22cd8791577276790be /board/dratini
parent861816d3b6adbeb8c599c18ceb2ba143fa5a7a1c (diff)
downloadchrome-ec-f0e5fcbc84fe35adb062742ddb4bd8ee080011a1.tar.gz
dratini: Increase CONFIG_POWER_BUTTON_INIT_TIMEOUT
Dratini's battery can take up to 4 seconds to come back from the disconnect state after cutoff. Give it 6 seconds for margin. BUG=b:148749659 BRANCH=firmware-hatch-12672.B TEST=Enable EC flash protection & software sync. Perform cutoff, wait 30s, insert AC and DUT will boot to OS. Change-Id: I3ae06274c0207bfc33ec126e5cd911ef37b0e0a3 Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2065713 Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'board/dratini')
-rw-r--r--board/dratini/board.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/dratini/board.h b/board/dratini/board.h
index 8d245b2abd..bd40963a62 100644
--- a/board/dratini/board.h
+++ b/board/dratini/board.h
@@ -27,6 +27,13 @@
#define CONFIG_PWM_KBLIGHT
#define CONFIG_KEYBOARD_FACTORY_TEST
+/*
+ * Dratini's battery takes several seconds to come back out of its disconnect
+ * state (~4 seconds, but give it 6 for margin).
+ */
+#undef CONFIG_POWER_BUTTON_INIT_TIMEOUT
+#define CONFIG_POWER_BUTTON_INIT_TIMEOUT 6
+
/* Sensors */
/* BMI160 Base accel/gyro */
#define CONFIG_ACCEL_INTERRUPTS