CHROMIUM: dark resume: Add rtc-cmos wake source functionality
authorDerek Basehore <dbasehore@chromium.org>
Fri, 8 Feb 2013 04:38:00 +0000 (20:38 -0800)
committerChromeBot <chrome-bot@google.com>
Wed, 27 Feb 2013 00:10:07 +0000 (16:10 -0800)
commit7b8e5611dc59f29e35925c15c9d9b46bc153a75c
tree7be6dd7b4d0f4b374f3e626bacd457491d91063f
parent2df85b57c4a06118f312053d10b1d65c6bfdb107
CHROMIUM: dark resume: Add rtc-cmos wake source functionality

Add the proper callbacks and structs to rtc cmos such that user space can make
the rtc cmos a wake source for dark resume. The callback function checks a
register of the rtc cmos to see if an interrupt happened. Ideally this should
instead make an ACPI function call that checks what the wake source was and see
if that's the RTC, but we don't have that implemented yet.

BUG=chrome-os-partner:9812
TEST=suspend system, watch dark resumes

Change-Id: I2232b0247e0cf59394da7c530d9e63a6e70bbd17
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/42924
Reviewed-by: Olof Johansson <olofj@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
drivers/rtc/rtc-cmos.c