From 090e518be1b71a6c08072fba27d02891ba2296bc Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 9 Apr 2008 21:56:41 +0000 Subject: support the NPX SE97 too --- sys/dev/i2c/i2c_scan.c | 6 +++++- sys/dev/i2c/sdtemp.c | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index 3c5368abaa1..c424056d373 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.118 2008/04/07 00:31:07 deraadt Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.119 2008/04/09 21:56:40 deraadt Exp $ */ /* * Copyright (c) 2005 Theo de Raadt @@ -851,6 +851,10 @@ iic_probe_sensor(struct device *self, u_int8_t addr) iicprobew(0x07) == 0xa101 && (iicprobew(0x00) & 0xfff0) == 0x0010) { name = "se98"; + } else if ((addr & 0x18) == 0x18 && iicprobew(0x06) == 0x1131 && + iicprobew(0x07) == 0xa200 && + (iicprobew(0x00) & 0xfff0) == 0x0010) { + name = "se97"; } 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 4ba1d3d1a9c..4b0a998d996 100644 --- a/sys/dev/i2c/sdtemp.c +++ b/sys/dev/i2c/sdtemp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdtemp.c,v 1.1 2008/04/07 01:31:44 deraadt Exp $ */ +/* $OpenBSD: sdtemp.c,v 1.2 2008/04/09 21:56:40 deraadt Exp $ */ /* * Copyright (c) 2008 Theo de Raadt @@ -57,7 +57,8 @@ sdtemp_match(struct device *parent, void *match, void *aux) { struct i2c_attach_args *ia = aux; - if (strcmp(ia->ia_name, "se98") == 0 || + if (strcmp(ia->ia_name, "se97") == 0 || + strcmp(ia->ia_name, "se98") == 0 || strcmp(ia->ia_name, "adt7408") == 0) return (1); return (0); -- cgit v1.2.3