summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2016-11-09 18:20:37 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-11-10 18:34:21 -0800
commit5edf3f5a8cdd72f5f4c60aaf6acfcb92a9f09053 (patch)
treeecbdff2763f3e9ecb37684b700af8e0018756c51
parent30f2aced129d5f6f392a16b9b8c5c03f5bf62604 (diff)
downloadchrome-ec-5edf3f5a8cdd72f5f4c60aaf6acfcb92a9f09053.tar.gz
cr50: disable sleep
When bus obfuscation is enabled we have the chance of doing a security reset when resuming from sleep. Since we cannot disable bus obfuscation on current boards, we need to disable sleep. BUG=chrome-os-partner:57994 BRANCH=none TEST=make buildall Change-Id: I6f49278a9b41c1d15c646838044e34f03b979479 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/409576 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
-rw-r--r--chip/g/idle.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/chip/g/idle.c b/chip/g/idle.c
index 5486cebaa9..a4f4dc7db9 100644
--- a/chip/g/idle.c
+++ b/chip/g/idle.c
@@ -23,7 +23,11 @@ static enum {
NUM_CHOICES
} idle_action;
-#define IDLE_DEFAULT IDLE_SLEEP
+/*
+ * TODO(crosbug.com/p/59641): Set the default action to sleep when the new
+ * boards come in.
+ */
+#define IDLE_DEFAULT IDLE_WFI
#define EVENT_MIN 500
static const char const *idle_name[] = {