diff options
author | Mary Ruthven <mruthven@google.com> | 2018-07-24 16:59:57 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-25 16:35:07 -0700 |
commit | 5d09bd535504253593e05938cbddb092f7eb277a (patch) | |
tree | cbf29d43d751455be0c450a5f1351a3737d9a02a /chip/g/idle.c | |
parent | 88b8e085862c8ebc68ac62e08f49d0b6e41f13f9 (diff) | |
download | chrome-ec-5d09bd535504253593e05938cbddb092f7eb277a.tar.gz |
cr50: wait for RBOX_WAKEUP_INTR to be cleared
Wait for the interrupt status register to be cleared before clearing the
RBOX_WAKEUP_CLEAR bit.
BUG=b:111801707
BRANCH=cr50
TEST=shutdown the AP. Make sure cr50 doesn't wake up immediately after
entering deep sleep. Make sure RBOX wakeups still work.
Change-Id: I8f02e387f212a5071d9bad0bf977ab09fd053756
Signed-off-by: Mary Ruthven <mruthven@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1149320
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/g/idle.c')
-rw-r--r-- | chip/g/idle.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/chip/g/idle.c b/chip/g/idle.c index dd745ec766..e0f82cb0ef 100644 --- a/chip/g/idle.c +++ b/chip/g/idle.c @@ -97,11 +97,6 @@ static void prepare_to_sleep(void) GC_PMU_EXITPD_MASK_TIMELS0_PD_EXIT_TIMER0_MASK | GC_PMU_EXITPD_MASK_TIMELS0_PD_EXIT_TIMER1_MASK; - /* Clear the RBOX wakeup signal and status bits */ - GREG32(RBOX, WAKEUP) = GC_RBOX_WAKEUP_CLEAR_MASK; - /* Wake on RBOX interrupts */ - GREG32(RBOX, WAKEUP) = GC_RBOX_WAKEUP_ENABLE_MASK; - if (utmi_wakeup_is_enabled() && idle_action != IDLE_DEEP_SLEEP) GR_PMU_EXITPD_MASK |= GC_PMU_EXITPD_MASK_UTMI_SUSPEND_N_MASK; |