diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-11-14 07:03:23 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2014-11-14 07:03:23 +0000 |
commit | 4489bfafaba91a5d0498e73b7ea9ee5edf729074 (patch) | |
tree | 0b11cb4f82e2b11fe09bac62135bea010c912b7c | |
parent | b156c0d7abf8735ce7dead1e48de774f4ffab121 (diff) |
add some more sdtemp devices
-rw-r--r-- | sys/dev/i2c/i2c_scan.c | 10 | ||||
-rw-r--r-- | sys/dev/i2c/sdtemp.c | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index a2e340c07c5..01064cbda45 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.142 2014/09/27 06:07:01 jsg Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.143 2014/11/14 07:03:22 jsg Exp $ */ /* * Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> @@ -937,6 +937,10 @@ iic_probe_sensor(struct device *self, u_int8_t addr) (iicprobew(0x07) & 0xffff) == 0x0a00 && (iicprobew(0x00) & 0x001f) == 0x001f) { name = "cat34ts02c"; + } else if ((addr & 0x78) == 0x18 && iicprobew(0x06) == 0x1b09 && + (iicprobew(0x07) & 0xffff) == 0x2200 && + (iicprobew(0x00) == 0x007f)) { + name = "cat34ts04"; } else if ((addr & 0x78) == 0x18 && iicprobew(0x06) == 0x00b3 && (iicprobew(0x07) & 0xffff) == 0x2903 && (iicprobew(0x00) == 0x004f)) { @@ -953,6 +957,10 @@ iic_probe_sensor(struct device *self, u_int8_t addr) (iicprobew(0x07) & 0xffff) == 0x3001 && (iicprobew(0x00) == 0x006f)) { name = "ts3001gb2"; + } else if ((addr & 0x78) == 0x18 && iicprobew(0x06) == 0x00b3 && + (iicprobew(0x07) & 0xffff) == 0x2214 && + (iicprobew(0x00) == 0x00ff)) { + name = "tse2004gb2"; } else if ((addr & 0x78) == 0x18 && iicprobew(0x06) == 0x001f && (iicprobew(0x07) & 0xffff) == 0x8201 && (iicprobew(0x00) & 0xff00) == 0x0000) { diff --git a/sys/dev/i2c/sdtemp.c b/sys/dev/i2c/sdtemp.c index 4d6c4ba7aa2..d33876749e3 100644 --- a/sys/dev/i2c/sdtemp.c +++ b/sys/dev/i2c/sdtemp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdtemp.c,v 1.14 2014/09/27 06:07:01 jsg Exp $ */ +/* $OpenBSD: sdtemp.c,v 1.15 2014/11/14 07:03:22 jsg Exp $ */ /* * Copyright (c) 2008 Theo de Raadt @@ -74,10 +74,12 @@ sdtemp_match(struct device *parent, void *match, void *aux) strcmp(ia->ia_name, "ts3000gb0") == 0 || strcmp(ia->ia_name, "ts3000gb2") == 0 || strcmp(ia->ia_name, "ts3001gb2") == 0 || + strcmp(ia->ia_name, "tse2004gb2") == 0 || strcmp(ia->ia_name, "at30ts00") == 0 || strcmp(ia->ia_name, "at30tse004") == 0 || strcmp(ia->ia_name, "cat34ts02") == 0 || strcmp(ia->ia_name, "cat34ts02c") == 0 || + strcmp(ia->ia_name, "cat34ts04") == 0 || strcmp(ia->ia_name, "gt30ts00") == 0 || strcmp(ia->ia_name, "gt34ts02") == 0) return (1); |