diff options
author | Chenhui Zhao <chenhui.zhao@freescale.com> | 2015-01-23 11:41:15 (GMT) |
---|---|---|
committer | Zhengxiong Jin <Jason.Jin@freescale.com> | 2015-02-05 08:27:00 (GMT) |
commit | 6b65e3958ca5486b49048c86a3f824c603674392 (patch) | |
tree | 964a73f49985c1a6b44f92761f82fd00f0982d4d /drivers | |
parent | fe1c3f4aed0bdde6a6c6855ad3638995e0b3f0ab (diff) | |
download | linux-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')
-rw-r--r-- | drivers/soc/fsl/ls1/ftm_alarm.c | 2 |
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(); |