diff options
author | Frank Li <Frank.Li@freescale.com> | 2012-04-06 12:58:40 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-07-20 13:34:20 +0800 |
commit | 2a244604fbccb69c42431fe50b790c6b46b4034a (patch) | |
tree | d418eba5512fd1ad09f794bc80d41612d1c4a281 /drivers/rtc | |
parent | 43dea184aa762bc053946addc1a840878e659787 (diff) |
ENGR00179059 RTC: enable wakealarm attribute
Set 10s wake alarm from now by below command
echo +10 > /sys/class/rtc/rtc0/wakealarm
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-snvs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index aa3dedb6b10f..2051e8691a64 100644 --- a/drivers/rtc/rtc-snvs.c +++ b/drivers/rtc/rtc-snvs.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011 Freescale Semiconductor, Inc. + * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. */ /* @@ -565,6 +565,10 @@ static int snvs_rtc_probe(struct platform_device *pdev) pdata->irq = platform_get_irq(pdev, 0); platform_set_drvdata(pdev, pdata); + + /* Added to support sysfs wakealarm attribute */ + pdev->dev.power.can_wakeup = 1; + /* initialize glitch detect */ __raw_writel(SNVS_LPPGDR_INIT, ioaddr + SNVS_LPPGDR); udelay(100); |