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>
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);