[WATCHDOG] fixed book E watchdog period register mask.
authorLuuk Paulussen <luuk.paulussen@alliedtelesis.co.nz>
Thu, 15 Apr 2010 03:59:10 +0000 (15:59 +1200)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 16 Apr 2010 12:23:04 +0000 (12:23 +0000)
A previous fix changed the WDTP function to use the period directly,
rather than subtracting from 63.  However the mask generation was
not changed, so the mask was coming out as 0.  This patch fixes it.

Signed-off-by: Luuk Paulussen <luuk.paulussen@alliedtelesis.co.nz>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/booke_wdt.c

index 8b724aad6825929b334375075eda02deab687084..500d38342e1ecc7e03f8654cfab7b9d760624664 100644 (file)
@@ -44,7 +44,7 @@ u32 booke_wdt_period = WDT_PERIOD_DEFAULT;
 
 #ifdef CONFIG_FSL_BOOKE
 #define WDTP(x)                ((((x)&0x3)<<30)|(((x)&0x3c)<<15))
-#define WDTP_MASK      (WDTP(0))
+#define WDTP_MASK      (WDTP(0x3f))
 #else
 #define WDTP(x)                (TCR_WP(x))
 #define WDTP_MASK      (TCR_WP_MASK)