summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/conf
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-10-14 17:29:05 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-10-14 17:29:05 +0000
commit83a1308578390cf461675e7655465fc36b35de3e (patch)
tree3fda1ab0f8818c2152ee5f0eba1fceb6f7bf7f79 /sys/arch/macppc/conf
parenta352065ac76f1e1267b49e14deb7a4ce053ad237 (diff)
Provide a way to attach spdmem(4) by faking an I2C bus with EEPROMs with
contents from OpenFirmware. ok deraadt@
Diffstat (limited to 'sys/arch/macppc/conf')
-rw-r--r--sys/arch/macppc/conf/GENERIC5
-rw-r--r--sys/arch/macppc/conf/files.macppc5
2 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/macppc/conf/GENERIC b/sys/arch/macppc/conf/GENERIC
index 7b01daab23d..c1bbc864017 100644
--- a/sys/arch/macppc/conf/GENERIC
+++ b/sys/arch/macppc/conf/GENERIC
@@ -1,4 +1,4 @@
-# $OpenBSD: GENERIC,v 1.174 2007/10/08 12:56:37 deraadt Exp $g
+# $OpenBSD: GENERIC,v 1.175 2007/10/14 17:29:04 kettenis Exp $g
#
# For further information on compiling OpenBSD kernels, see the config(8)
# man page.
@@ -31,6 +31,7 @@ config bsd swap generic
mainbus0 at root
cpu* at mainbus0
+mem* at mainbus0
mpcpcibr* at mainbus0 # MPC106 PCI Bridge.
memc* at mainbus0
@@ -310,7 +311,7 @@ maxds* at iic?
fcu* at iic?
adt* at iic?
asms* at iic?
-spdmem* at iic?
+spdmem* at mem?
# CardBus bus support
cardbus* at cardslot?
diff --git a/sys/arch/macppc/conf/files.macppc b/sys/arch/macppc/conf/files.macppc
index e678ea75846..866b24fc712 100644
--- a/sys/arch/macppc/conf/files.macppc
+++ b/sys/arch/macppc/conf/files.macppc
@@ -1,4 +1,4 @@
-# $OpenBSD: files.macppc,v 1.56 2007/06/08 22:57:43 jasper Exp $
+# $OpenBSD: files.macppc,v 1.57 2007/10/14 17:29:04 kettenis Exp $
#
# macppc-specific configuration info
@@ -277,6 +277,9 @@ include "dev/bluetooth/files.bluetooth"
include "dev/i2c/files.i2c"
file arch/macppc/dev/maci2c.c i2cbus
+device mem: i2c
+attach mem at mainbus
+
#
# Machine-independent GPIO drivers
#