summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@google.com>2018-08-17 17:57:03 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-23 13:20:46 -0700
commit18307f177db0c517e4734d61e3fd1655ea72b512 (patch)
tree4c710765a1667a0dcd49940b81d895525a3a171c /include
parentf4c3719fd8769c360d17846a554541adcaef5659 (diff)
downloadchrome-ec-18307f177db0c517e4734d61e3fd1655ea72b512.tar.gz
cr50: only enable rbox wakeup during sleep
Enable rbox wakeups before entering any form of sleep. Disable them immediately on resume. Without rbox wakeups enabled during normal operation, we don't need to worry about clearing them after every rbox interrupt. In TOT we missed clearing the power button rbox wakeup. This was causing cr50 to wake up immediately after entering regular sleep. It caused a ton of pmu interrupts and prevented cr50 from staying asleep. With this change cr50 enters enters sleep and deep sleep normally. It only resumes when there's a real wakeup. BUG=none BRANCH=cr50 TEST=verify power button can still wake cr50 from sleep and deep sleep. Run firmware_Cr50DeviceState with TOT Change-Id: I56bf81c19a6e32750dc9d21be7f27188635dd662 Signed-off-by: Mary Ruthven <mruthven@google.com> Reviewed-on: https://chromium-review.googlesource.com/1180572 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Tested-by: Mary Ruthven <mruthven@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index a16b37b43e..f3ab3b81cf 100644
--- a/include/config.h
+++ b/include/config.h
@@ -2491,6 +2491,9 @@
/* Enable rbox peripheral */
#undef CONFIG_RBOX
+/* Enable rbox wakeup */
+#undef CONFIG_RBOX_WAKEUP
+
/* Enable RDD peripheral */
#undef CONFIG_RDD