Module Name:    src
Committed By:   phx
Date:           Tue Feb 19 15:58:19 UTC 2013

Modified Files:
        src/sys/arch/sandpoint/sandpoint: satmgr.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/sandpoint/sandpoint/satmgr.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/sandpoint/sandpoint/satmgr.c
diff -u src/sys/arch/sandpoint/sandpoint/satmgr.c:1.23 src/sys/arch/sandpoint/sandpoint/satmgr.c:1.24
--- src/sys/arch/sandpoint/sandpoint/satmgr.c:1.23	Tue May 15 02:14:13 2012
+++ src/sys/arch/sandpoint/sandpoint/satmgr.c	Tue Feb 19 15:58:19 2013
@@ -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 @@ static void
 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");

Reply via email to