Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/amlogic amlogic_reset: increase terminal_cou...



details:   https://anonhg.NetBSD.org/src/rev/9d79e1c6f648
branches:  trunk
changeset: 336633:9d79e1c6f648
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Mar 08 11:22:05 2015 +0000

description:
amlogic_reset: increase terminal_count to give uart sufficient time to flush any pending bytes before rebooting

diffstat:

 sys/arch/evbarm/amlogic/amlogic_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 51ef7f696c45 -r 9d79e1c6f648 sys/arch/evbarm/amlogic/amlogic_machdep.c
--- a/sys/arch/evbarm/amlogic/amlogic_machdep.c Sun Mar 08 06:46:51 2015 +0000
+++ b/sys/arch/evbarm/amlogic/amlogic_machdep.c Sun Mar 08 11:22:05 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amlogic_machdep.c,v 1.14 2015/03/05 23:44:30 jmcneill Exp $ */
+/*     $NetBSD: amlogic_machdep.c,v 1.15 2015/03/08 11:22:05 jmcneill Exp $ */
 
 /*
  * Machine dependent functions for kernel setup for TI OSK5912 board.
@@ -125,7 +125,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.14 2015/03/05 23:44:30 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amlogic_machdep.c,v 1.15 2015/03/08 11:22:05 jmcneill Exp $");
 
 #include "opt_machdep.h"
 #include "opt_ddb.h"
@@ -485,7 +485,7 @@
        bus_size_t off = AMLOGIC_CBUS_OFFSET;
 
        bus_space_write_4(bst, bsh, off + WATCHDOG_TC_REG,
-           WATCHDOG_TC_CPUS | WATCHDOG_TC_ENABLE | 1);
+           WATCHDOG_TC_CPUS | WATCHDOG_TC_ENABLE | 0xfff);
        bus_space_write_4(bst, bsh, off + WATCHDOG_RESET_REG, 0);
 
        for (;;) {



Home | Main Index | Thread Index | Old Index