Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Print operable voltage with aprint_verbose(). OK'...
details: https://anonhg.NetBSD.org/src/rev/a767322101be
branches: trunk
changeset: 338229:a767322101be
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri May 15 08:44:24 2015 +0000
description:
Print operable voltage with aprint_verbose(). OK'ed by pgoyette@.
diffstat:
sys/dev/ic/spdmem.c | 17 +++++++++++++++--
sys/dev/ic/spdmemvar.h | 4 ++--
2 files changed, 17 insertions(+), 4 deletions(-)
diffs (56 lines):
diff -r 1544b5d19906 -r a767322101be sys/dev/ic/spdmem.c
--- a/sys/dev/ic/spdmem.c Fri May 15 08:44:15 2015 +0000
+++ b/sys/dev/ic/spdmem.c Fri May 15 08:44:24 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmem.c,v 1.13 2015/04/20 02:55:14 pgoyette Exp $ */
+/* $NetBSD: spdmem.c,v 1.14 2015/05/15 08:44:24 msaitoh Exp $ */
/*
* Copyright (c) 2007 Nicolas Joly
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spdmem.c,v 1.13 2015/04/20 02:55:14 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spdmem.c,v 1.14 2015/05/15 08:44:24 msaitoh Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -763,6 +763,19 @@
s->sm_ddr3.ddr3_tCKmin);
#undef __DDR3_CYCLES
+
+ /* For DDR3, Voltage is written in another area */
+ if (!s->sm_ddr3.ddr3_NOT15V || s->sm_ddr3.ddr3_135V
+ || s->sm_ddr3.ddr3_125V) {
+ aprint_verbose("%s:", device_xname(self));
+ if (!s->sm_ddr3.ddr3_NOT15V)
+ aprint_verbose(" 1.5V");
+ if (s->sm_ddr3.ddr3_135V)
+ aprint_verbose(" 1.35V");
+ if (s->sm_ddr3.ddr3_125V)
+ aprint_verbose(" 1.25V");
+ aprint_verbose(" operable\n");
+ }
}
static void
diff -r 1544b5d19906 -r a767322101be sys/dev/ic/spdmemvar.h
--- a/sys/dev/ic/spdmemvar.h Fri May 15 08:44:15 2015 +0000
+++ b/sys/dev/ic/spdmemvar.h Fri May 15 08:44:24 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmemvar.h,v 1.6 2015/04/20 07:51:36 ozaki-r Exp $ */
+/* $NetBSD: spdmemvar.h,v 1.7 2015/05/15 08:44:24 msaitoh Exp $ */
/*
* Copyright (c) 2007 Paul Goyette
@@ -437,7 +437,7 @@
SPD_BITFIELD( \
uint8_t ddr3_NOT15V:1, \
uint8_t ddr3_135V:1, \
- uint8_t ddr3_12XV:1, \
+ uint8_t ddr3_125V:1, \
uint8_t ddr3_unused2:5 \
);
/* chipwidth in bits offset by 2: 0 = X4, 1 = X8, 2 = X16 */
Home |
Main Index |
Thread Index |
Old Index