summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authormacallan <macallan@NetBSD.org>2010-03-31 18:07:13 +0000
committermacallan <macallan@NetBSD.org>2010-03-31 18:07:13 +0000
commitab2f46a1d0f724de722b88388970752cc50e0deb (patch)
tree262fe4e259e00fa4d6e32968ddaca80b2b443c3c /sys/dev
parent944fd2cfc46ed1e5029ab1c3231f8db2f445be42 (diff)
Add preliminary support for the ADM1031 found in the Sun Blade 2500 and similar
machines. For now we treat it like an ADM1030 - the only difference is the device ID and a few previously reserved registers.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2c/dbcool.c8
-rw-r--r--sys/dev/i2c/dbcool_reg.h5
2 files changed, 9 insertions, 4 deletions
diff --git a/sys/dev/i2c/dbcool.c b/sys/dev/i2c/dbcool.c
index eae33d02897..ad4fb5ee815 100644
--- a/sys/dev/i2c/dbcool.c
+++ b/sys/dev/i2c/dbcool.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dbcool.c,v 1.20 2010/03/20 19:04:51 pgoyette Exp $ */
+/* $NetBSD: dbcool.c,v 1.21 2010/03/31 18:07:13 macallan Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.20 2010/03/20 19:04:51 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dbcool.c,v 1.21 2010/03/31 18:07:13 macallan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -592,6 +592,10 @@ struct chip_id chip_table[] = {
ADM1030_sensor_table, ADM1030_power_table,
DBCFLAG_ADM1030 | DBCFLAG_NO_READBYTE,
11250 * 60, "ADM1030" },
+ { DBCOOL_COMPANYID, ADM1031_DEVICEID, 0xff,
+ ADM1030_sensor_table, ADM1030_power_table,
+ DBCFLAG_ADM1030 | DBCFLAG_NO_READBYTE,
+ 11250 * 60, "ADM1031" },
{ 0, 0, 0, NULL, NULL, 0, 0, NULL }
};
diff --git a/sys/dev/i2c/dbcool_reg.h b/sys/dev/i2c/dbcool_reg.h
index 5246a3f28e1..bfa95244f5b 100644
--- a/sys/dev/i2c/dbcool_reg.h
+++ b/sys/dev/i2c/dbcool_reg.h
@@ -1,4 +1,4 @@
-/* $NetBSD: dbcool_reg.h,v 1.3 2008/12/18 20:41:35 pgoyette Exp $ */
+/* $NetBSD: dbcool_reg.h,v 1.4 2010/03/31 18:07:13 macallan Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
#define DBCOOLREG_H
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dbcool_reg.h,v 1.3 2008/12/18 20:41:35 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dbcool_reg.h,v 1.4 2010/03/31 18:07:13 macallan Exp $");
#define DBCOOL_ADDRMASK 0x7c
#define DBCOOL_ADDR 0x2c /* Some chips have multiple addrs */
@@ -374,6 +374,7 @@ __KERNEL_RCSID(0, "$NetBSD: dbcool_reg.h,v 1.3 2008/12/18 20:41:35 pgoyette Exp
#define ADM1027_DEVICEID 0x27
#define ADM1030_DEVICEID 0x30
+#define ADM1031_DEVICEID 0x31
#define ADT7463_DEVICEID 0x27
#define ADT7466_DEVICEID 0x66
#define ADT7467_DEVICEID 0x68 /* The ADT7467/7468 cannot be */