summaryrefslogtreecommitdiff
path: root/sys/arch/landisk/conf
diff options
context:
space:
mode:
authorMartin Reindl <martin@cvs.openbsd.org>2007-01-15 22:22:20 +0000
committerMartin Reindl <martin@cvs.openbsd.org>2007-01-15 22:22:20 +0000
commitd2e2e4d4361753c211be1074c66fd504434c830f (patch)
tree4d6dfff3b36fcfb488c915bfe9d1eaf1030bab28 /sys/arch/landisk/conf
parentde2c7fd0d70a1310a4552965fb3132fa4aa93f24 (diff)
power(4) driver for the power switch on many landisk models, hooked
up to machdep.kbdreset; modelled after the sparc64 power(4) driver discussed with miod@ and jsg@
Diffstat (limited to 'sys/arch/landisk/conf')
-rw-r--r--sys/arch/landisk/conf/GENERIC5
-rw-r--r--sys/arch/landisk/conf/files.landisk8
2 files changed, 8 insertions, 5 deletions
diff --git a/sys/arch/landisk/conf/GENERIC b/sys/arch/landisk/conf/GENERIC
index 1b5ebf71dbe..28d1ebb8912 100644
--- a/sys/arch/landisk/conf/GENERIC
+++ b/sys/arch/landisk/conf/GENERIC
@@ -1,4 +1,4 @@
-# $OpenBSD: GENERIC,v 1.9 2006/12/18 00:46:25 martin Exp $
+# $OpenBSD: GENERIC,v 1.10 2007/01/15 22:22:18 martin Exp $
#
# For further information on compiling OpenBSD kernels, see the config(8)
# man page.
@@ -48,6 +48,9 @@ option SCIFCONSOLE
option SCIFCN_SPEED=9600
scif0 at shb?
+# Power switch
+power0 at obio?
+
rsclock0 at shb?
wdc0 at obio? port 0x14000000 irq 10 # CF
diff --git a/sys/arch/landisk/conf/files.landisk b/sys/arch/landisk/conf/files.landisk
index 2a165360c40..6ebf4216410 100644
--- a/sys/arch/landisk/conf/files.landisk
+++ b/sys/arch/landisk/conf/files.landisk
@@ -1,4 +1,4 @@
-# $OpenBSD: files.landisk,v 1.4 2006/11/20 17:56:03 drahn Exp $
+# $OpenBSD: files.landisk,v 1.5 2007/01/15 22:22:18 martin Exp $
# $NetBSD: files.landisk,v 1.2 2006/09/07 01:55:02 uwe Exp $
# maxpartitions must be first item in files.${MACHINE}
@@ -101,9 +101,9 @@ device btn: button
attach btn at obio with btn_obio
file arch/landisk/dev/btn_obio.c btn_obio needs-flag
-device pwrsw
-attach pwrsw at obio with pwrsw_obio
-file arch/landisk/dev/pwrsw_obio.c pwrsw_obio needs-flag
+device power
+attach power at obio
+file arch/landisk/dev/power.c power needs-flag
#device led
#attach led at obio