Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/cortex write correct register.



details:   https://anonhg.NetBSD.org/src/rev/5e60d336391a
branches:  trunk
changeset: 328670:5e60d336391a
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Apr 13 02:20:33 2014 +0000

description:
write correct register.

diffstat:

 sys/arch/arm/cortex/a9wdt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 90873ca7d6b7 -r 5e60d336391a sys/arch/arm/cortex/a9wdt.c
--- a/sys/arch/arm/cortex/a9wdt.c       Sun Apr 13 01:45:34 2014 +0000
+++ b/sys/arch/arm/cortex/a9wdt.c       Sun Apr 13 02:20:33 2014 +0000
@@ -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 @@
            | __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;



Home | Main Index | Thread Index | Old Index