diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-02-19 23:21:10 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-02-19 23:21:10 +0000 |
commit | d431e7e31a5923c6177ad8e3dd4d423cbc098035 (patch) | |
tree | 892fc15c689bdfc94580de4de0c47ca38a343904 /sys | |
parent | 65a2121963fb441986a20849a0d53e7507410edf (diff) |
Indicate if a thermal sensor is present on ddr3 modules.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/i2c/spdmem.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/i2c/spdmem.c b/sys/dev/i2c/spdmem.c index 5daef8c66ff..7cf2de4d78a 100644 --- a/sys/dev/i2c/spdmem.c +++ b/sys/dev/i2c/spdmem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spdmem.c,v 1.29 2009/02/19 23:09:17 jsg Exp $ */ +/* $OpenBSD: spdmem.c,v 1.30 2009/02/19 23:21:09 jsg Exp $ */ /* $NetBSD: spdmem.c,v 1.3 2007/09/20 23:09:59 xtraeme Exp $ */ /* @@ -192,10 +192,12 @@ #define SPDMEM_DDR3_MTB_DIVIDEND 0x07 #define SPDMEM_DDR3_MTB_DIVISOR 0x08 #define SPDMEM_DDR3_TCKMIN 0x09 +#define SPDMEM_DDR3_THERMAL 0x1d #define SPDMEM_DDR3_DENSITY_CAPMASK 0x0f #define SPDMEM_DDR3_DATAWIDTH_ECCMASK (1 << 3) #define SPDMEM_DDR3_DATAWIDTH_PRIMASK 0x07 +#define SPDMEM_DDR3_THERMAL_PRESENT (1 << 7) #define SPDMEM_DDR3_RDIMM 0x01 #define SPDMEM_DDR3_UDIMM 0x02 @@ -681,6 +683,9 @@ spdmem_ddr3_decode(struct spdmem_softc *sc, struct spdmem *s) printf(" Mini-DIMM"); break; } + + if (s->sm_data[SPDMEM_DDR3_THERMAL] & SPDMEM_DDR3_THERMAL_PRESENT) + printf(" with thermal sensor"); } void |