[PATCH 5/9] MXS/i.MX28: enable RTC to wakeup the system

Steffen Trumtrar s.trumtrar at pengutronix.de
Tue Mar 5 01:05:44 EST 2013


From: Juergen Beisert <jbe at pengutronix.de>

Signed-off-by: Juergen Beisert <jbe at pengutronix.de>
---
 drivers/rtc/rtc-stmp3xxx.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/rtc/rtc-stmp3xxx.c b/drivers/rtc/rtc-stmp3xxx.c
index fb4b823..936b0ca 100644
--- a/drivers/rtc/rtc-stmp3xxx.c
+++ b/drivers/rtc/rtc-stmp3xxx.c
@@ -365,6 +365,9 @@ static int stmp3xxx_rtc_probe(struct platform_device *pdev)
 			STMP3XXX_RTC_CTRL_ALARM_IRQ_EN,
 			rtc_data->io + STMP3XXX_RTC_CTRL_CLR);
 
+	/* this RTC can wake up the system */
+	device_init_wakeup(&pdev->dev, true);
+
 	rtc_data->rtc = rtc_device_register(pdev->name, &pdev->dev,
 				&stmp3xxx_rtc_ops, THIS_MODULE);
 	if (IS_ERR(rtc_data->rtc)) {
-- 
1.7.10.4



More information about the devicetree-discuss mailing list