Module Name: src
Committed By: jmcneill
Date: Sun Mar 8 11:22:05 UTC 2015
Modified Files:
src/sys/arch/evbarm/amlogic: amlogic_machdep.c
Log Message:
amlogic_reset: increase terminal_count to give uart sufficient time to flush
any pending bytes before rebooting
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/evbarm/amlogic/amlogic_machdep.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/evbarm/amlogic/amlogic_machdep.c
diff -u src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.14 src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.15
--- src/sys/arch/evbarm/amlogic/amlogic_machdep.c:1.14 Thu Mar 5 23:44:30 2015
+++ src/sys/arch/evbarm/amlogic/amlogic_machdep.c Sun Mar 8 11:22:05 2015
@@ -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 @@ amlogic_reset(void)
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 (;;) {