]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc32: watchdog definition fixes
authorAndrew Morton <akpm@osdl.org>
Sat, 31 Jan 2004 01:56:03 +0000 (17:56 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 31 Jan 2004 01:56:03 +0000 (17:56 -0800)
From: Tom Rini <trini@kernel.crashing.org>

Correct the defines for MC146818 RTCs, reg c is interrupts, reg d is not
watchdog (it's valid time & nvram).

include/asm-ppc/todc.h

index 0419f2803ecd0b45c0c66b3ec8e7634223331e47..5a9e53c21eba7a88f6d962e3974666063f8743d9 100644 (file)
@@ -290,8 +290,8 @@ typedef struct {
 #define        TODC_TYPE_MC146818_SECONDS              0x00
 #define        TODC_TYPE_MC146818_CNTL_B               0x0a
 #define        TODC_TYPE_MC146818_CNTL_A               0x0b    /* control_a R/W regs */
-#define        TODC_TYPE_MC146818_WATCHDOG             0x0c
-#define        TODC_TYPE_MC146818_INTERRUPTS           0x0d
+#define        TODC_TYPE_MC146818_WATCHDOG             0
+#define        TODC_TYPE_MC146818_INTERRUPTS           0x0c
 #define        TODC_TYPE_MC146818_ALARM_DATE           0xff
 #define        TODC_TYPE_MC146818_ALARM_HOUR           0x05
 #define        TODC_TYPE_MC146818_ALARM_MINUTES        0x03