summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorChenhui Zhao <chenhui.zhao@freescale.com>2015-01-23 11:41:15 (GMT)
committerZhengxiong Jin <Jason.Jin@freescale.com>2015-02-05 08:27:00 (GMT)
commit6b65e3958ca5486b49048c86a3f824c603674392 (patch)
tree964a73f49985c1a6b44f92761f82fd00f0982d4d /drivers/soc
parentfe1c3f4aed0bdde6a6c6855ad3638995e0b3f0ab (diff)
downloadlinux-fsl-qoriq-6b65e3958ca5486b49048c86a3f824c603674392.tar.xz
fsl: ftm_alarm: init the device wakeup capability
The ftm_alarm device can be used as a wakeup source. So init the device wakeup capability Signed-off-by: Chenhui Zhao <chenhui.zhao@freescale.com> Change-Id: Id9c8b2c235c5c2f6e9ba103248a28247fd68f56b Reviewed-on: http://git.am.freescale.net:8181/29151 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Dongsheng Wang <dongsheng.wang@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/fsl/ls1/ftm_alarm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/soc/fsl/ls1/ftm_alarm.c b/drivers/soc/fsl/ls1/ftm_alarm.c
index 5135964..dec0c1c 100644
--- a/drivers/soc/fsl/ls1/ftm_alarm.c
+++ b/drivers/soc/fsl/ls1/ftm_alarm.c
@@ -243,6 +243,8 @@ static int ftm_alarm_probe(struct platform_device *pdev)
return ret;
}
+ device_init_wakeup(&pdev->dev, true);
+
alarm_freq = (u32)FIXED_FREQ_CLK / (u32)MAX_FREQ_DIV;
ftm_clean_alarm();