summaryrefslogtreecommitdiff
path: root/board/eve
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2017-08-10 12:33:09 -0700
committerCommit Bot <commit-bot@chromium.org>2020-09-03 12:06:31 +0000
commit3f64533b22c2d2bfff34415fc73b983c42c9f2a0 (patch)
treeb58e994d3af2c5aef98bc512328f5be55496f845 /board/eve
parentf884820a5a4c96a0320294c34fb257f5e8bd0273 (diff)
downloadchrome-ec-3f64533b22c2d2bfff34415fc73b983c42c9f2a0.tar.gz
eve: Update hibernate delay
Hibernate after 7 days, or 1 day if battery is less than 10%. BUG=b:35584895 BRANCH=eve TEST=check that hibernate delay by default is 604800 seconds, but only 86400 seconds if the battery is less than 10%. Change-Id: I826b6df170f296afb2af8c053c05521383030cb1 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://chromium-review.googlesource.com/611017 Reviewed-by: Scott Collyer <scollyer@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2320254 Tested-by: Patryk Duda <pdk@semihalf.com> Commit-Queue: Patryk Duda <pdk@semihalf.com> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/eve')
-rw-r--r--board/eve/board.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/eve/board.h b/board/eve/board.h
index d710a8ddcc..76cab3d178 100644
--- a/board/eve/board.h
+++ b/board/eve/board.h
@@ -26,6 +26,12 @@
#define CONFIG_DPTF_MULTI_PROFILE
#define CONFIG_FLASH_SIZE 0x80000
#define CONFIG_FPU
+/* 7 day delay before hibernate */
+#undef CONFIG_HIBERNATE_DELAY_SEC
+#define CONFIG_HIBERNATE_DELAY_SEC (3600 * 24 * 7)
+/* 1 day delay before hibernate if battery is less than 10% */
+#define CONFIG_HIBERNATE_BATT_PCT 10
+#define CONFIG_HIBERNATE_BATT_SEC (3600 * 24)
#define CONFIG_I2C
#define CONFIG_I2C_MASTER
#define CONFIG_LED_COMMON