Changeset 6041
- Timestamp:
- 04/18/12 09:20:04 (13 months ago)
- Files:
-
- 1 modified
-
i2c-tools/trunk/eeprom/decode-dimms (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c-tools/trunk/eeprom/decode-dimms
r5929 r6041 526 526 } 527 527 528 # Common to SDR and DDRSDRAM528 # Common to SDR, DDR and DDR2 SDRAM 529 529 sub sdram_module_configuration_type($) 530 530 { 531 my @types = ( 532 "No Parity", # 0 533 "Parity", # 1 534 "ECC", # 2 535 ); 536 537 return ($_[0] < @types) ? $types[$_[0]] : "Undefined!"; 531 my $byte = $_[0] & 0x07; 532 my @edc; 533 534 return "No Parity" if $byte == 0; 535 536 # Data ECC includes Data Parity so don't print both 537 push @edc, "Data Parity" if ($byte & 0x03) == 0x01; 538 push @edc, "Data ECC" if ($byte & 0x02); 539 # New in DDR2 specification 540 push @edc, "Address/Command Parity" if ($byte & 0x04); 541 542 return join ", ", @edc; 538 543 } 539 544 … … 1019 1024 printl("Voltage Interface Level", 1020 1025 sdram_voltage_interface_level($bytes->[8])); 1026 1027 printl("Module Configuration Type", 1028 sdram_module_configuration_type($bytes->[11])); 1021 1029 1022 1030 printl("Refresh Rate", ddr2_refresh_rate($bytes->[12]));
