Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c add three temperature sensors from ST.
details: https://anonhg.NetBSD.org/src/rev/71439bcd00a6
branches: trunk
changeset: 325854:71439bcd00a6
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Thu Jan 09 16:51:05 2014 +0000
description:
add three temperature sensors from ST.
diffstat:
sys/dev/i2c/sdtemp.c | 10 ++++++++--
sys/dev/i2c/sdtemp_reg.h | 8 +++++++-
2 files changed, 15 insertions(+), 3 deletions(-)
diffs (53 lines):
diff -r 9ea5da8995c0 -r 71439bcd00a6 sys/dev/i2c/sdtemp.c
--- a/sys/dev/i2c/sdtemp.c Thu Jan 09 16:08:46 2014 +0000
+++ b/sys/dev/i2c/sdtemp.c Thu Jan 09 16:51:05 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdtemp.c,v 1.22 2013/07/22 13:46:20 soren Exp $ */
+/* $NetBSD: sdtemp.c,v 1.23 2014/01/09 16:51:05 mlelstv Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.22 2013/07/22 13:46:20 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.23 2014/01/09 16:51:05 mlelstv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -120,6 +120,12 @@
"STmicroelectronics STTS424E" },
{ STTS_MANUFACTURER_ID, STTS_424_DEVICE_ID, STTS_424_MASK, 2,
"STmicroelectronics STTS424" },
+ { STTS_MANUFACTURER_ID, STTS_2002_DEVICE_ID, STTS_2002_MASK, 2,
+ "STmicroelectronics STTS2002" },
+ { STTS_MANUFACTURER_ID, STTS_2004_DEVICE_ID, STTS_2004_MASK, 2,
+ "STmicroelectronics STTS2002" },
+ { STTS_MANUFACTURER_ID, STTS_3000_DEVICE_ID, STTS_3000_MASK, 2,
+ "STmicroelectronics STTS3000" },
{ CAT_MANUFACTURER_ID, CAT_34TS02_DEVICE_ID, CAT_34TS02_MASK, 4,
"Catalyst CAT34TS02/CAT6095" },
{ IDT_MANUFACTURER_ID, IDT_TS3000B3_DEVICE_ID, IDT_TS3000B3_MASK, 4,
diff -r 9ea5da8995c0 -r 71439bcd00a6 sys/dev/i2c/sdtemp_reg.h
--- a/sys/dev/i2c/sdtemp_reg.h Thu Jan 09 16:08:46 2014 +0000
+++ b/sys/dev/i2c/sdtemp_reg.h Thu Jan 09 16:51:05 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdtemp_reg.h,v 1.6 2013/08/07 19:38:45 soren Exp $ */
+/* $NetBSD: sdtemp_reg.h,v 1.7 2014/01/09 16:51:05 mlelstv Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -124,6 +124,12 @@
#define STTS_424_MASK 0xFFFF
#define STTS_424E_DEVICE_ID 0x0000
#define STTS_424E_MASK 0xFFFE
+#define STTS_3000_DEVICE_ID 0x0200
+#define STTS_3000_MASK 0xFFFF
+#define STTS_2002_DEVICE_ID 0x0300
+#define STTS_2002_MASK 0xFFFF
+#define STTS_2004_DEVICE_ID 0x2201
+#define STTS_2004_MASK 0xFFFF
/* According to datasheets, both the CAT6095 and CAT34TS02 have the same ID */
Home |
Main Index |
Thread Index |
Old Index