summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2012-10-25 11:58:14 +0000
committerkhali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0>2012-10-25 11:58:14 +0000
commit8de730789b74a6cf9d9d5f5772621e16434487f5 (patch)
treef673237a0dcf3b71e4d2d7972db86725b1efeb96
parentd68f636b26b65ab13907de497df4376e6b49207c (diff)
downloadi2c-tools-8de730789b74a6cf9d9d5f5772621e16434487f5.tar.gz
decode-dimms: Print DDR2 equivalent speed of tCK max.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6080 7894878c-1315-0410-8ee3-d5d059ff63e0
-rw-r--r--CHANGES1
-rwxr-xr-xeeprom/decode-dimms8
2 files changed, 6 insertions, 3 deletions
diff --git a/CHANGES b/CHANGES
index c908e88..8f4d015 100644
--- a/CHANGES
+++ b/CHANGES
@@ -12,6 +12,7 @@ SVN HEAD
Merge cells by default in side-by-side output
Print extra timing values of DDR SDRAM
Print DDR core timings for all supported CAS values
+ Print DDR2 equivalent speed of tCK max
i2cdetect: Do a best effort detection if functionality is missing
i2c-dev.h: Minimize differences with kernel flavor
Move SMBus helper functions to include/i2c/smbus.h
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
index e81cf55..9115ded 100755
--- a/eeprom/decode-dimms
+++ b/eeprom/decode-dimms
@@ -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 ? "" : # Wouldn't be displayed, prevent div by 0
+ tns($temp)." (DDR2-".int(2000 / $temp).")");
# more timing information
prints("Timing Parameters");