summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/conf
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2006-02-10 05:28:57 +0000
committerDamien Miller <djm@cvs.openbsd.org>2006-02-10 05:28:57 +0000
commit809097c8d3709b9a62c5cd535cc3816444396e50 (patch)
treeb73d72906903e14f30eb7807265e44385f44ce1f /sys/arch/sparc64/conf
parentfde272a8f6bdd419c31b5dc3ec13e0e93e579535 (diff)
driver for Philips PCF8591 I2C ADC sensor. Because of the mindlessness
of this chip, it is impossible to probe for and we need to be told where it is and how to understand its output. We get this information from openfirmware, but this restricts the use of the driver to sparc64 for now. Only sensors that OFW identifies as temperature sensors are supported at present. prodded by dlg@ "get it in" deraadt@
Diffstat (limited to 'sys/arch/sparc64/conf')
-rw-r--r--sys/arch/sparc64/conf/GENERIC3
-rw-r--r--sys/arch/sparc64/conf/files.sparc6412
2 files changed, 13 insertions, 2 deletions
diff --git a/sys/arch/sparc64/conf/GENERIC b/sys/arch/sparc64/conf/GENERIC
index 06943343fbd..976d7ddf339 100644
--- a/sys/arch/sparc64/conf/GENERIC
+++ b/sys/arch/sparc64/conf/GENERIC
@@ -1,4 +1,4 @@
-# $OpenBSD: GENERIC,v 1.140 2006/02/01 11:03:33 dlg Exp $
+# $OpenBSD: GENERIC,v 1.141 2006/02/10 05:28:56 djm Exp $
#
# For further information on compiling OpenBSD kernels, see the config(8)
# man page.
@@ -323,6 +323,7 @@ lmenv* at iic? # National Semiconductor LM87
lmtemp* at iic? # NS LM75/LM77 temperature sensor
maxds* at iic? # Maxim DS1631
maxtmp* at iic? # Maxim MAX6642/MAX6690
+pcfadc* at iic? # Philips PCF8591
# Framebuffers
agten* at sbus? # Fujitsu AG-10e framebuffer
diff --git a/sys/arch/sparc64/conf/files.sparc64 b/sys/arch/sparc64/conf/files.sparc64
index 9693d67d5de..08271b82caf 100644
--- a/sys/arch/sparc64/conf/files.sparc64
+++ b/sys/arch/sparc64/conf/files.sparc64
@@ -1,4 +1,4 @@
-# $OpenBSD: files.sparc64,v 1.64 2006/02/01 11:03:33 dlg Exp $
+# $OpenBSD: files.sparc64,v 1.65 2006/02/10 05:28:56 djm Exp $
# $NetBSD: files.sparc64,v 1.50 2001/08/10 20:53:50 eeh Exp $
# maxpartitions must be first item in files.${ARCH}
@@ -262,3 +262,13 @@ file arch/sparc64/dev/ofwi2c.c i2cbus
# Machine-independent USB drivers
#
include "dev/usb/files.usb"
+
+#
+# Machine-dependent I2C drivers
+#
+
+# PCF8591 ADC I2C Sensor (needs ofw, so sparc64 only for now)
+device pcfadc
+attach pcfadc at i2c
+file arch/sparc64/dev/pcf8591_ofw.c pcfadc
+