diff options
author | Anson Huang <b20788@freescale.com> | 2012-04-09 15:43:40 +0800 |
---|---|---|
committer | Anson Huang <b20788@freescale.com> | 2012-04-09 15:43:40 +0800 |
commit | 6355d6dfadda7e08976777ccdd1f6e7bdef705d2 (patch) | |
tree | c9a671d0f3ac635382eebdaff40b001ea8d2c9cf /drivers | |
parent | 5cace3b5469b281ab51c0ea0cfe2f615879d94cc (diff) |
ENGR00179178 [RTC]Enable both wakealarm and common power wakeup
For RTC driver, as not all RTCs support alarm and wakeup, so the
framework only support alarm or wakeup, not both of them, as our
rtc can support alarm and wakeup function, to simplify the unit
test interface for power off and wakeup, we add both wakealarm and
common power wakeup sysfs interface to our RTC driver.
Signed-off-by: Anson Huang <b20788@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/rtc-snvs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index 2051e8691a64..41470e954938 100644 --- a/drivers/rtc/rtc-snvs.c +++ b/drivers/rtc/rtc-snvs.c @@ -609,6 +609,9 @@ static int snvs_rtc_probe(struct platform_device *pdev) tv.tv_nsec = 0; tv.tv_sec = rtc_read_lp_counter(ioaddr + SNVS_LPSRTCMR); + /* Remove can_wakeup flag to add common power wakeup interface */ + pdev->dev.power.can_wakeup = 0; + /* By default, devices should wakeup if they can */ /* So snvs is set as "should wakeup" as it can */ device_init_wakeup(&pdev->dev, 1); |