Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208790
b: refs/heads/master
c: 051fe54
h: refs/heads/master
v: v3
  • Loading branch information
Taekgyun Ko authored and Kukjin Kim committed Aug 5, 2010
1 parent 6d88185 commit e9edc58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2f3478f6579b3f8d4579b6d49d7a8e9376c48fc2
refs/heads/master: 051fe54e9f8c568dc9cd288b630d436ee93afe35
10 changes: 10 additions & 0 deletions trunk/drivers/rtc/rtc-s3c.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)
{
struct rtc_device *rtc;
struct resource *res;
unsigned int tmp, i;
int ret;

pr_debug("%s: probe=%p\n", __func__, pdev);
Expand Down Expand Up @@ -536,6 +537,15 @@ static int __devinit s3c_rtc_probe(struct platform_device *pdev)

s3c_rtc_cpu_type = platform_get_device_id(pdev)->driver_data;

/* Check RTC Time */

for (i = S3C2410_RTCSEC; i <= S3C2410_RTCYEAR; i += 0x4) {
tmp = readb(s3c_rtc_base + i);

if ((tmp & 0xf) > 0x9 || ((tmp >> 4) & 0xf) > 0x9)
writeb(0, s3c_rtc_base + i);
}

if (s3c_rtc_cpu_type == TYPE_S3C64XX)
rtc->max_user_freq = 32768;
else
Expand Down

0 comments on commit e9edc58

Please sign in to comment.