diff options
author | Lin Fuzhen <fuzhen.lin@freescale.com> | 2011-11-18 16:09:48 +0800 |
---|---|---|
committer | Lin Fuzhen <fuzhen.lin@freescale.com> | 2011-11-18 16:48:09 +0800 |
commit | 0a24720ede241d1318e1a35ceae29cc64dc7b217 (patch) | |
tree | 534bcaae735fb75a92c7cec6d55833b99e598128 | |
parent | be7ea36db6fcbe6cab165109fca4ede3b31eb160 (diff) |
ENGR00162588: Disable PMIC tick-alarm
Da9053 tick alarm will generate a intterupt to cpu every minutes or
seconds if enable tick alarm, android don't use this feature, so disable
it.
Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
-rw-r--r-- | drivers/rtc/rtc-da9052.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-da9052.c b/drivers/rtc/rtc-da9052.c index 8f4d26fbc23b..e901892050cd 100644 --- a/drivers/rtc/rtc-da9052.c +++ b/drivers/rtc/rtc-da9052.c @@ -483,8 +483,8 @@ static int da9052_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm) if (ret) return ret; - - ret = da9052_rtc_enable_alarm(da9052, 1); + /* don't enable rtc-alarm when set the alram */ + ret = da9052_rtc_enable_alarm(da9052, 0); return ret; } @@ -553,7 +553,7 @@ static int __devinit da9052_rtc_probe(struct platform_device *pdev) goto err_register_alarm; priv->is_min_alarm = 1; - priv->enable_tick_alarm = 1; + priv->enable_tick_alarm = 0; priv->enable_clk_buffer = 1; priv->set_osc_trim_freq = 5; /* Enable/Disable TICK Alarm */ @@ -635,6 +635,8 @@ static int __devinit da9052_rtc_probe(struct platform_device *pdev) goto err_ssc_comm; } da9052_unlock(priv->da9052); + /* disable rtc-alarm */ + da9052_rtc_enable_alarm(priv->da9052, 0); priv->rtc = rtc_device_register(pdev->name, &pdev->dev, &da9052_rtc_ops, THIS_MODULE); |