]> git.hungrycats.org Git - linux/commitdiff
[ALPHA] Fix RTC init for LYNX.
authorRichard Henderson <rth@kanga.twiddle.net>
Thu, 7 Aug 2003 04:19:28 +0000 (21:19 -0700)
committerRichard Henderson <rth@kanga.(none)>
Thu, 7 Aug 2003 04:19:28 +0000 (21:19 -0700)
From Jay Estabrook <Jay.Estabrook@compaq.com>.

arch/alpha/kernel/time.c

index 2dde45e05d130300d69bc1ffec797753dfbda2b6..b72101b2851998ee75d2635cde57709aac3bc87b 100644 (file)
@@ -149,7 +149,9 @@ common_init_rtc(void)
 
        /* Reset periodic interrupt frequency.  */
        x = CMOS_READ(RTC_FREQ_SELECT) & 0x3f;
-       if (x != 0x26 && x != 0x19 && x != 0x06) {
+        /* Test includes known working values on various platforms
+           where 0x26 is wrong; we refuse to change those. */
+       if (x != 0x26 && x != 0x25 && x != 0x19 && x != 0x06) {
                printk("Setting RTC_FREQ to 1024 Hz (%x)\n", x);
                CMOS_WRITE(0x26, RTC_FREQ_SELECT);
        }