diff options
author | Andre Sihera <asihera@nvidia.com> | 2011-04-07 20:37:11 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:43:14 -0800 |
commit | a0a5a5fd043324387f5f6c031e0dd708750d1a1f (patch) | |
tree | 3e47ea4bcc8c052f93003b63b78f255e5989a326 /drivers/rtc/rtc-tps6586x.c | |
parent | 486f0b8253a8f58fd77f624a162785f20f9a70c5 (diff) |
rtc: tps6586x RTC clock fix
Specified OSC_SRC_SEL flag to force clock signal to be taken from
an externally generated source rather than be calculated internally.
This should raise the accuracy to within +/-2 seconds/24 hours.
Bug 811075
Bug 810537
Original-Change-Id: I7b7c4e4d752fdc03b81239f362a1d6f7aa4d3b92
Reviewed-on: http://git-master/r/27222
Reviewed-by: Andre Sihera <asihera@nvidia.com>
Tested-by: Andre Sihera <asihera@nvidia.com>
Reviewed-by: David Schalig <dschalig@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Rebase-Id: Re6e093fb517b06f7218e55e2ac7b8d15764d9c57
Diffstat (limited to 'drivers/rtc/rtc-tps6586x.c')
-rw-r--r-- | drivers/rtc/rtc-tps6586x.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-tps6586x.c b/drivers/rtc/rtc-tps6586x.c index 3f6e2a9a3d84..20bd0d06ce1c 100644 --- a/drivers/rtc/rtc-tps6586x.c +++ b/drivers/rtc/rtc-tps6586x.c @@ -291,8 +291,9 @@ static int __devinit tps6586x_rtc_probe(struct platform_device *pdev) /* 1 kHz tick mode, enable tick counting */ err = tps6586x_update(tps_dev, RTC_CTRL, - RTC_ENABLE | ((pdata->cl_sel<<CL_SEL_POS)&CL_SEL_MASK), - RTC_ENABLE | OSC_SRC_SEL | PRE_BYPASS | CL_SEL_MASK); + RTC_ENABLE | OSC_SRC_SEL | ((pdata->cl_sel << CL_SEL_POS) & + CL_SEL_MASK), + RTC_ENABLE | OSC_SRC_SEL | PRE_BYPASS | CL_SEL_MASK); if (err < 0) { dev_err(&pdev->dev, "unable to start counter\n"); goto fail; |