Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sandpoint/sandpoint Implement real hardware power-o...
details: https://anonhg.NetBSD.org/src/rev/9840f25b651a
branches: trunk
changeset: 785045:9840f25b651a
user: phx <phx%NetBSD.org@localhost>
date: Tue Feb 19 15:58:19 2013 +0000
description:
Implement real hardware power-off for DSM-G600 using the "ZWC" command.
It seems that not all microcontrollers support the command, though, so
the old solution to flash the power LED is still present as a fallback.
diffstat:
sys/arch/sandpoint/sandpoint/satmgr.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 3df8eb4ab25f -r 9840f25b651a sys/arch/sandpoint/sandpoint/satmgr.c
--- a/sys/arch/sandpoint/sandpoint/satmgr.c Tue Feb 19 15:35:42 2013 +0000
+++ b/sys/arch/sandpoint/sandpoint/satmgr.c Tue Feb 19 15:58:19 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: satmgr.c,v 1.23 2012/05/15 02:14:13 nisimura Exp $ */
+/* $NetBSD: satmgr.c,v 1.24 2013/02/19 15:58:19 phx Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -847,8 +847,11 @@
dpwroff(struct satmgr_softc *sc)
{
+ send_sat(sc, "ZWC\n");
+
/*
- * The DSM-G600 has no hardware-shutdown, so we flash the power LED
+ * When this line is reached, then this board revision doesn't
+ * support hardware-shutdown, so we flash the power LED
* to indicate that the device can be switched off.
*/
send_sat(sc, "SYN\nSYN\n");
Home |
Main Index |
Thread Index |
Old Index