From 25ec5f7bf0d0a6c3bb3485c5e78560722433c6a3 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 25 Oct 2012 11:58:14 +0000 Subject: [PATCH] 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 --- CHANGES | 1 + eeprom/decode-dimms | 8 +++++--- 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");