northbridge/amd/amdk8: Improve DIMM detection debugging

Change-Id: I93534082d379369352e367c9c24b213513a543b2
Signed-off-by: Timothy Pearson <tpearson@raptorengineeringinc.com>
Reviewed-on: http://review.coreboot.org/12211
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Timothy Pearson 2015-10-28 03:02:32 -05:00 committed by Patrick Georgi
parent d4bbfe863b
commit 1d941068d8
1 changed files with 2 additions and 0 deletions

View File

@ -1397,6 +1397,7 @@ static unsigned int spd_detect_dimms(const struct mem_controller *ctrl)
if (device) { if (device) {
byte = spd_read_byte(ctrl->channel0[i], SPD_MEM_TYPE); /* Type */ byte = spd_read_byte(ctrl->channel0[i], SPD_MEM_TYPE); /* Type */
if (byte == SPD_MEM_TYPE_SDRAM_DDR2) { if (byte == SPD_MEM_TYPE_SDRAM_DDR2) {
printk_raminit("\tDIMM detected\n");
dimm_mask |= (1 << i); dimm_mask |= (1 << i);
} }
} }
@ -1405,6 +1406,7 @@ static unsigned int spd_detect_dimms(const struct mem_controller *ctrl)
if (device) { if (device) {
byte = spd_read_byte(ctrl->channel1[i], SPD_MEM_TYPE); byte = spd_read_byte(ctrl->channel1[i], SPD_MEM_TYPE);
if (byte == SPD_MEM_TYPE_SDRAM_DDR2) { if (byte == SPD_MEM_TYPE_SDRAM_DDR2) {
printk_raminit("\tDIMM detected\n");
dimm_mask |= (1 << (i + DIMM_SOCKETS)); dimm_mask |= (1 << (i + DIMM_SOCKETS));
} }
} }