summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-10-20 18:46:22 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-10-20 18:46:22 +0000
commite1c03cbde4f0cdc00a39d923779ffe9ffe7d93c5 (patch)
tree1315fa4badf1c496d524b111495e3129fbd3cf43 /sys/dev
parent1d4dc2c42d0356f41acb788e210c753ba7fc6fac (diff)
Move a few more definitions to pcf8584var.h. Needed for SUNW,envctrl and
SUNW,envctrltwo support. ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/pcf8584.c7
-rw-r--r--sys/dev/ic/pcf8584var.h8
2 files changed, 8 insertions, 7 deletions
diff --git a/sys/dev/ic/pcf8584.c b/sys/dev/ic/pcf8584.c
index a428effeaec..8710cc07723 100644
--- a/sys/dev/ic/pcf8584.c
+++ b/sys/dev/ic/pcf8584.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcf8584.c,v 1.8 2007/05/21 03:11:11 jsg Exp $ */
+/* $OpenBSD: pcf8584.c,v 1.9 2007/10/20 18:46:21 kettenis Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -60,11 +60,6 @@
#define PCF_STAT_STS (1<<5)
#define PCF_STAT_PIN (1<<7)
-#define PCF_FREQ_90 0x00 /* 90 kHz */
-#define PCF_FREQ_45 0x01 /* 45 kHz */
-#define PCF_FREQ_11 0x02 /* 11 kHz */
-#define PCF_FREQ_1_5 0x03 /* 1.5 kHz */
-
struct cfdriver pcfiic_cd = {
NULL, "pcfiic", DV_DULL
};
diff --git a/sys/dev/ic/pcf8584var.h b/sys/dev/ic/pcf8584var.h
index 95cbbb552d0..03a6d6f66d5 100644
--- a/sys/dev/ic/pcf8584var.h
+++ b/sys/dev/ic/pcf8584var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcf8584var.h,v 1.4 2007/05/21 03:11:11 jsg Exp $ */
+/* $OpenBSD: pcf8584var.h,v 1.5 2007/10/20 18:46:21 kettenis Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -40,6 +40,12 @@ struct pcfiic_softc {
#define PCF_CLOCK_8 0x18 /* 8 MHz */
#define PCF_CLOCK_12 0x1c /* 12 MHz */
+/* SCL frequency settings */
+#define PCF_FREQ_90 0x00 /* 90 kHz */
+#define PCF_FREQ_45 0x01 /* 45 kHz */
+#define PCF_FREQ_11 0x02 /* 11 kHz */
+#define PCF_FREQ_1_5 0x03 /* 1.5 kHz */
+
void pcfiic_attach(struct pcfiic_softc *, i2c_addr_t, u_int8_t, int,
void (*)(struct device *, struct i2cbus_attach_args *, void *),
void *);