Module Name: src Committed By: matt Date: Sun Apr 13 02:20:33 UTC 2014
Modified Files: src/sys/arch/arm/cortex: a9wdt.c Log Message: write correct register. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/cortex/a9wdt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/cortex/a9wdt.c diff -u src/sys/arch/arm/cortex/a9wdt.c:1.1 src/sys/arch/arm/cortex/a9wdt.c:1.2 --- src/sys/arch/arm/cortex/a9wdt.c:1.1 Sat Sep 1 00:03:14 2012 +++ src/sys/arch/arm/cortex/a9wdt.c Sun Apr 13 02:20:33 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: a9wdt.c,v 1.1 2012/09/01 00:03:14 matt Exp $ */ +/* $NetBSD: a9wdt.c,v 1.2 2014/04/13 02:20:33 matt Exp $ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: a9wdt.c,v 1.1 2012/09/01 00:03:14 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: a9wdt.c,v 1.2 2014/04/13 02:20:33 matt Exp $"); #include <sys/param.h> #include <sys/bus.h> @@ -172,7 +172,7 @@ a9wdt_setmode(struct sysmon_wdog *smw) | __SHIFTIN(sc->sc_wdog_prescaler - 1, TMR_CTL_PRESCALER); a9wdt_wdog_write(sc, TMR_LOAD, sc->sc_wdog_load); - a9wdt_wdog_write(sc, TMR_CTL, sc->sc_wdog_load); + a9wdt_wdog_write(sc, TMR_CTL, sc->sc_wdog_ctl); aprint_debug_dev(sc->sc_dev, "setmode enable\n"); return 0;