Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/vexpress Sleep before reboot/shutdown to let ua...
details: https://anonhg.NetBSD.org/src/rev/08fb797bbbdb
branches: trunk
changeset: 354064:08fb797bbbdb
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Jun 02 21:26:20 2017 +0000
description:
Sleep before reboot/shutdown to let uart fifo flush
diffstat:
sys/arch/arm/vexpress/vexpress_sysreg.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 1b5f79f472bc -r 08fb797bbbdb sys/arch/arm/vexpress/vexpress_sysreg.c
--- a/sys/arch/arm/vexpress/vexpress_sysreg.c Fri Jun 02 21:20:47 2017 +0000
+++ b/sys/arch/arm/vexpress/vexpress_sysreg.c Fri Jun 02 21:26:20 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vexpress_sysreg.c,v 1.1 2017/06/02 21:16:42 jmcneill Exp $ */
+/* $NetBSD: vexpress_sysreg.c,v 1.2 2017/06/02 21:26:20 jmcneill Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vexpress_sysreg.c,v 1.1 2017/06/02 21:16:42 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vexpress_sysreg.c,v 1.2 2017/06/02 21:26:20 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -79,12 +79,14 @@
static void
vexpress_sysreg_reset(device_t dev)
{
+ delay(1000000);
vexpress_sysreg_write(dev, SYS_CFGCTRL_FUNCTION_REBOOT, SYS_CFGCTRL_SITE_MB);
}
static void
vexpress_sysreg_poweroff(device_t dev)
{
+ delay(1000000);
vexpress_sysreg_write(dev, SYS_CFGCTRL_FUNCTION_SHUTDOWN, SYS_CFGCTRL_SITE_MB);
}
Home |
Main Index |
Thread Index |
Old Index