summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2008-04-10 17:14:09 +0000
committerderaadt <deraadt@openbsd.org>2008-04-10 17:14:09 +0000
commit4c930efaca834d38e735dd7bee86c9e3da62a30f (patch)
tree77fcf4b54b35d6ceb57f6ffe8b569a0e72e84e5d /sys/dev/i2c
parentCorrectly amount swap usage for anons, from NetBSD via PR 5772. (diff)
downloadwireguard-openbsd-4c930efaca834d38e735dd7bee86c9e3da62a30f.tar.xz
wireguard-openbsd-4c930efaca834d38e735dd7bee86c9e3da62a30f.zip
MCP98242 temp sensor docs found..
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r--sys/dev/i2c/i2c_scan.c6
-rw-r--r--sys/dev/i2c/sdtemp.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c
index a8bd752dd5e..015131e4996 100644
--- a/sys/dev/i2c/i2c_scan.c
+++ b/sys/dev/i2c/i2c_scan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i2c_scan.c,v 1.120 2008/04/09 22:04:10 deraadt Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.121 2008/04/10 17:14:09 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
@@ -859,6 +859,10 @@ iic_probe_sensor(struct device *self, u_int8_t addr)
iicprobew(0x07) == 0x0000 &&
(iicprobew(0x00) & 0xffe0) == 0x0000) {
name = "mcp9805";
+ } else if ((addr & 0x18) == 0x18 && iicprobew(0x06) == 0x0054 &&
+ iicprobew(0x07) == 0x2000 &&
+ (iicprobew(0x00) & 0xffe0) == 0x0000) {
+ name = "mcp98242";
} else if ((addr & 0x18) == 0x18 && iicprobew(0x06) == 0x11d4 &&
(iicprobew(0x07) & 0xfff0) == 0x0800 &&
iicprobew(0x00) == 0x001d) {
diff --git a/sys/dev/i2c/sdtemp.c b/sys/dev/i2c/sdtemp.c
index d092ad7805e..d2dde590fe2 100644
--- a/sys/dev/i2c/sdtemp.c
+++ b/sys/dev/i2c/sdtemp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdtemp.c,v 1.3 2008/04/09 22:04:10 deraadt Exp $ */
+/* $OpenBSD: sdtemp.c,v 1.4 2008/04/10 17:14:09 deraadt Exp $ */
/*
* Copyright (c) 2008 Theo de Raadt
@@ -60,6 +60,7 @@ sdtemp_match(struct device *parent, void *match, void *aux)
if (strcmp(ia->ia_name, "se97") == 0 ||
strcmp(ia->ia_name, "se98") == 0 ||
strcmp(ia->ia_name, "mcp9805") == 0 ||
+ strcmp(ia->ia_name, "mcp98242") == 0 ||
strcmp(ia->ia_name, "adt7408") == 0)
return (1);
return (0);