device/dram/ddr3: fix debug output
Add missing punctuation and align output. No functionality is changed. Old logging output: Revision: 11 Type : b Key : 2 Banks : 8 Capacity: 4 Gb Supported voltages: 1.5V SDRAM width : 8 Bus extension : 0 bits Bus width : 64 Optional features : DLL-Off_mode RZQ/7 RZQ/6 Thermal features : ASR ext_temp_range Thermal sensor : no Standard SDRAM : yes DIMM Rank1 Address bits mirrored!!! DIMM Reference card B DIMM Manufacturer ID cd04 DIMM Part number F3-1866C9-8GSR XMP Profile 1 Max DIMMs per channel: 4 XMP Revision: 1.3 Requested voltage: 1500 mV New logging output: Revision : 11 Type : b Key : 2 Banks : 8 Capacity : 4 Gb Supported voltages : 1.5V SDRAM width : 8 Bus extension : 0 bits Bus width : 64 Optional features : DLL-Off_mode RZQ/7 RZQ/6 Thermal features : ASR ext_temp_range Thermal sensor : no Standard SDRAM : yes Rank1 Address bits : mirrored DIMM Reference card: B Manufacturer ID : cd04 Part number : F3-1866C9-8GSR XMP Profile : 1 Max DIMMs/channel : 4 XMP Revision : 1.3 Requested voltage : 1500 mV Change-Id: Iee4d7a7c0e1070706fb60d7316fad49813963b51 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/14083 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
57dbbbb596
commit
66a98ee967
|
@ -137,7 +137,7 @@ int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd)
|
|||
ret = SPD_STATUS_CRC_ERROR;
|
||||
};
|
||||
|
||||
printram(" Revision: %x\n", spd[1]);
|
||||
printram(" Revision : %x\n", spd[1]);
|
||||
printram(" Type : %x\n", spd[2]);
|
||||
printram(" Key : %x\n", spd[3]);
|
||||
|
||||
|
@ -157,9 +157,9 @@ int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd)
|
|||
ret = SPD_STATUS_INVALID_FIELD;
|
||||
}
|
||||
if (capacity_shift < 0x02) {
|
||||
printram(" Capacity: %u Mb\n", 256 << capacity_shift);
|
||||
printram(" Capacity : %u Mb\n", 256 << capacity_shift);
|
||||
} else {
|
||||
printram(" Capacity: %u Gb\n", 1 << (capacity_shift - 2));
|
||||
printram(" Capacity : %u Gb\n", 1 << (capacity_shift - 2));
|
||||
}
|
||||
|
||||
reg8 = spd[5];
|
||||
|
@ -180,7 +180,7 @@ int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd)
|
|||
|
||||
/* Module nominal voltage */
|
||||
reg8 = spd[6];
|
||||
printram(" Supported voltages:");
|
||||
printram(" Supported voltages :");
|
||||
if (reg8 & (1 << 2)) {
|
||||
dimm->flags.operable_1_25V = 1;
|
||||
dimm->voltage = 1250;
|
||||
|
@ -335,18 +335,19 @@ int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd)
|
|||
|
||||
if (spd[63] & 0x01) {
|
||||
dimm->flags.pins_mirrored = 1;
|
||||
printram(" DIMM Rank1 Address bits mirrored!!!\n");
|
||||
}
|
||||
printram(" Rank1 Address bits : %s\n",
|
||||
(spd[63] & 0x01) ? "mirrored" : "normal");
|
||||
|
||||
dimm->reference_card = spd[62] & 0x1f;
|
||||
printram(" DIMM Reference card %c\n", 'A' + dimm->reference_card);
|
||||
printram(" DIMM Reference card: %c\n", 'A' + dimm->reference_card);
|
||||
|
||||
dimm->manufacturer_id = (spd[118] << 8) | spd[117];
|
||||
printram(" DIMM Manufacturer ID %x\n", dimm->manufacturer_id);
|
||||
printram(" Manufacturer ID : %x\n", dimm->manufacturer_id);
|
||||
|
||||
dimm->part_number[16] = 0;
|
||||
memcpy(dimm->part_number, &spd[128], 16);
|
||||
printram(" DIMM Part number %s\n", dimm->part_number);
|
||||
printram(" Part number : %s\n", dimm->part_number);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -397,7 +398,8 @@ int spd_xmp_decode_ddr3(dimm_attr *dimm,
|
|||
dimm->dram_type = SPD_MEMORY_TYPE_UNDEFINED;
|
||||
return SPD_STATUS_INVALID;
|
||||
}
|
||||
printram(" XMP Profile 1\n");
|
||||
|
||||
printram(" XMP Profile : 1\n");
|
||||
xmp = &spd[185];
|
||||
|
||||
/* Medium Timebase =
|
||||
|
@ -412,7 +414,7 @@ int spd_xmp_decode_ddr3(dimm_attr *dimm,
|
|||
dimm->dram_type = SPD_MEMORY_TYPE_UNDEFINED;
|
||||
return SPD_STATUS_INVALID;
|
||||
}
|
||||
printram(" XMP Profile 2\n");
|
||||
printram(" XMP Profile : 2\n");
|
||||
xmp = &spd[220];
|
||||
|
||||
/* Medium Timebase =
|
||||
|
@ -422,16 +424,18 @@ int spd_xmp_decode_ddr3(dimm_attr *dimm,
|
|||
|
||||
dimm->dimms_per_channel = ((spd[178] >> 4) & 0x3) + 1;
|
||||
}
|
||||
printram(" Max DIMMs per channel: %u\n",
|
||||
|
||||
printram(" Max DIMMs/channel : %u\n",
|
||||
dimm->dimms_per_channel);
|
||||
|
||||
printram(" XMP Revision: %u.%u\n", spd[179] >> 4, spd[179] & 0xf);
|
||||
printram(" XMP Revision : %u.%u\n", spd[179] >> 4, spd[179] & 0xf);
|
||||
|
||||
/* calculate voltage in mV */
|
||||
dimm->voltage = (xmp[0] & 1) * 50;
|
||||
dimm->voltage += ((xmp[0] >> 1) & 0xf) * 100;
|
||||
dimm->voltage += ((xmp[0] >> 5) & 0x3) * 1000;
|
||||
printram(" Requested voltage: %u mV\n", dimm->voltage);
|
||||
|
||||
printram(" Requested voltage : %u mV\n", dimm->voltage);
|
||||
|
||||
/* SDRAM Minimum Cycle Time (tCKmin) */
|
||||
dimm->tCK = xmp[1] * mtb;
|
||||
|
|
Loading…
Reference in New Issue