Subject: NEC MobilePro 780 apm note
To: None <port-hpcmips@NetBSD.org>
From: Ben Collver <collver@peak.org>
List: port-hpcmips
Date: 04/23/2005 18:03:42
I made a kernel configuration for my NEC MobilePro 780 that did not
include support for other hardware models.  Running off this
configuration, I could no longer resume a suspended system.

I tracked it to hpcapm.c where hpcapm_set_powstate() calls
tx39power_suspend_cpu().  If tx39power_suspend_cpu() is not called, my
system will not resume from a suspend.

The kernel configuration files can be found at:
http://backyard.homeunix.net/~ben/docs/comp/unix/netbsd/hpcmips/MOBY-NOAPM
http://backyard.homeunix.net/~ben/docs/comp/unix/netbsd/hpcmips/MOBY

--- MOBY-NOAPM	2005-04-13 15:05:01.000000000 -0700
+++ MOBY	2005-04-23 11:12:28.000000000 -0700
@@ -23 +23,4 @@
-#include		"arch/hpcmips/conf/std.hpcmips.tx39"
+include		"arch/hpcmips/conf/std.hpcmips.tx39"
+# the above provides "options tx39power" which is necessary for proper
+# apm function on my MobilePro 780.  Without it, the system suspends,
+# but never resumes.
@@ -37 +40,2 @@
-#options 	TX392X			# Toshiba TX3922
+options 	TX392X			# Toshiba TX3922
+# options TX392X is required for tx39power
@@ -404 +408,2 @@
-#txioman* at txsim?
+txioman* at txsim?
+# the above is required for tx39io* from std.hpcmips.tx39