linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] decode-dimms: Print DDR2 equivalent speed of tCK max
@ 2012-10-22 11:39 Jean Delvare
  0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2012-10-22 11:39 UTC (permalink / raw)
  To: Linux I2C

Print DDR2 equivalent speed of tCK max.
---
 eeprom/decode-dimms |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

--- i2c-tools.orig/eeprom/decode-dimms	2012-10-22 12:39:45.000000000 +0200
+++ i2c-tools/eeprom/decode-dimms	2012-10-22 12:42:11.723525497 +0200
@@ -1186,9 +1186,11 @@ sub decode_ddr2_sdram($)
 
 	printl_cond(defined $cycle_time, "Minimum Cycle Time", $cycle_time);
 	printl_cond(defined $access_time, "Maximum Access Time", $access_time);
-
-	printl("Maximum Cycle Time (tCK max)",
-	       tns(ddr2_sdram_ctime($bytes->[43])));
+	$temp = ddr2_sdram_ctime($bytes->[43]);
+	printl_cond(($bytes->[43] & 0xf0) && $bytes->[43] != 0xff,
+		    "Maximum Cycle Time (tCK max)",
+		    $temp == 0 ? "" : # Can't happen, prevent div by 0
+		    tns($temp)." (DDR2-".int(2000 / $temp).")");
 
 # more timing information
 	prints("Timing Parameters");


-- 
Jean Delvare

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-22 11:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-22 11:39 [PATCH 1/3] decode-dimms: Print DDR2 equivalent speed of tCK max Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).