peppy: Duplicate SPD data for 2GB configurations.
Peppy SPD table has 4GB configurations followed by 2GB configurations. Current implementation does remapping to point 2GB configuration to the same SPD index as the 4GB. This is different than Falco, which simply duplicates the SPD data for all configurations. To simplify probing in mosys, copy the Falco implementation of duplicating SPD data. BUG=chrome-os-partner:20891. TEST="mosys memory spd print all" on 2GB Falco, verify data is correct. Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: Idb185a437f3cf4f40d2dae1ae59c30235df8f489 Reviewed-on: https://gerrit.chromium.org/gerrit/61847 Reviewed-by: Dave Parker <dparker@chromium.org> Reviewed-by: Jay Kim <yongjaek@chromium.org> Commit-Queue: Shawn Nematbakhsh <shawnn@chromium.org> Tested-by: Shawn Nematbakhsh <shawnn@chromium.org>
This commit is contained in:
parent
6577d1932a
commit
d1a49946ad
2 changed files with 7 additions and 6 deletions
|
|
@ -28,9 +28,13 @@ smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c
|
|||
SPD_BIN = $(obj)/spd.bin
|
||||
|
||||
# Order of names in SPD_SOURCES is important!
|
||||
SPD_SOURCES = Micron_4KTF25664HZ
|
||||
SPD_SOURCES += Hynix_HMT425S6AFR6A
|
||||
SPD_SOURCES += Elpida_EDJ4216EFBG
|
||||
SPD_SOURCES = Micron_4KTF25664HZ # 0: 4GB / CH0 + CH1
|
||||
SPD_SOURCES += Hynix_HMT425S6AFR6A # 1: 4GB / CH0 + CH1
|
||||
SPD_SOURCES += Elpida_EDJ4216EFBG # 2: 4GB / CH0 + CH1
|
||||
SPD_SOURCES += Micron_4KTF25664HZ # 3: Reserved / place holder
|
||||
SPD_SOURCES += Micron_4KTF25664HZ # 4: 2GB / CH0 + CH1
|
||||
SPD_SOURCES += Hynix_HMT425S6AFR6A # 5: 2GB / CH0 + CH1
|
||||
SPD_SOURCES += Elpida_EDJ4216EFBG # 6: 2GB / CH0 + CH1
|
||||
|
||||
SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/$(f).spd.hex)
|
||||
|
||||
|
|
|
|||
|
|
@ -97,10 +97,7 @@ static void copy_spd(struct pei_data *peid)
|
|||
/* Index 0-2 are 4GB config with both CH0 and CH1.
|
||||
* Index 4-6 are 2GB config with CH0 only. */
|
||||
if (spd_index > 3)
|
||||
{
|
||||
peid->dimm_channel1_disabled = 3;
|
||||
spd_index &= 0x03;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue