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
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html