summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-10-29 14:16:40 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-10-30 19:45:00 +0000
commit1d0102ae2cccdb4e798c196b0e6445c167efe4b6 (patch)
tree363162ba6894b4235f68495c050938d5381d434a /include
parent52ce907d40074d92c5044ac2fbe5c267b166a4ee (diff)
downloadchrome-ec-1d0102ae2cccdb4e798c196b0e6445c167efe4b6.tar.gz
lm4: fix enabling RTC alarm
All hibernate register writes must wait for the WC bit. When we're enabling the RTC alarm, it's important to wait for the WC bit afterwards, too, or else we could go into deep sleep before the write to HIBIM is committed. Also make sure that the normal hibernate() path enables the RTC alarm if it has a timeout. This bug wasn't noticed until the low-power idle code called system_reset_rtc_alarm(), since before then HIBIM was initialized to 1 and just stayed there. BUG=chrome-os-partner:23678 BRANCH=anywhere we use low power idle (wolf/leon, too) TEST=with hacked firmware, note that HIBIM=1 just before the wfi instruction in chip/lm4/clock.c Change-Id: Ie01b106ac6a6c5894811f9a333715b22ef896f82 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/175013 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions