[brcm63xx] fix off-by-one maximum timeout in the wathchdog default counter for bcm634...
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 6 Aug 2009 18:53:44 +0000 (18:53 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 6 Aug 2009 18:53:44 +0000 (18:53 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17149 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/brcm63xx/files/arch/mips/bcm63xx/dev-wdt.c
target/linux/brcm63xx/files/drivers/watchdog/bcm63xx_wdt.c

index 4aa2037..6e18489 100644 (file)
@@ -32,7 +32,5 @@ int __init bcm63xx_wdt_register(void)
        wdt_resources[0].end = wdt_resources[0].start;
        wdt_resources[0].end += RSET_WDT_SIZE - 1;
 
-       /* Disable watchdog for 6345 until we fix it */
-       if (!BCMCPU_IS_6345())
-               return platform_device_register(&bcm63xx_wdt_device);
+       return platform_device_register(&bcm63xx_wdt_device);
 }
index 5e7689c..8d58ccd 100644 (file)
@@ -57,7 +57,7 @@ MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default="
 /* HW functions */
 static void bcm63xx_wdt_hw_start(void)
 {
-       bcm_writel(0xffffffff, bcm63xx_wdt_device.regs + WDT_DEFVAL_REG);
+       bcm_writel(0xfffffffe, bcm63xx_wdt_device.regs + WDT_DEFVAL_REG);
        bcm_writel(WDT_START_1, bcm63xx_wdt_device.regs + WDT_CTL_REG);
        bcm_writel(WDT_START_2, bcm63xx_wdt_device.regs + WDT_CTL_REG);
 }
This page took 0.024552 seconds and 4 git commands to generate.