<p>Nico Huber has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20887">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">mb/lenovo/x1_carbon_gen1: Add 4GiB SPD index 2<br><br>Change-Id: I218fd48c8e29563ef089d60ebde7bc36ac8ab189<br>Signed-off-by: Nico Huber <nico.h@gmx.de><br>---<br>M src/mainboard/lenovo/x1_carbon_gen1/romstage.c<br>M src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc<br>A src/mainboard/lenovo/x1_carbon_gen1/spd/samsung.hex<br>3 files changed, 19 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/87/20887/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/mainboard/lenovo/x1_carbon_gen1/romstage.c b/src/mainboard/lenovo/x1_carbon_gen1/romstage.c<br>index a07df70..458b862 100644<br>--- a/src/mainboard/lenovo/x1_carbon_gen1/romstage.c<br>+++ b/src/mainboard/lenovo/x1_carbon_gen1/romstage.c<br>@@ -109,7 +109,7 @@<br>          */<br> <br>        /* we only support elpida. Because the spd data is missing */<br>-        if (spd_index != 0)<br>+  if (spd_index != 0 && spd_index != 2)<br>                 die("Unsupported Memory. Please add your SPD dump to coreboot.");<br> <br>        memory = get_spd_data(spd_index);<br>diff --git a/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc b/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc<br>index d1cca03..ec6e4f3 100644<br>--- a/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc<br>+++ b/src/mainboard/lenovo/x1_carbon_gen1/spd/Makefile.inc<br>@@ -16,6 +16,8 @@<br> SPD_BIN = $(obj)/spd.bin<br> <br> SPD_SOURCES  = elpida.hex    # 0b0000 Single Channel 2GB<br>+SPD_SOURCES  = samsung.hex   # 0b0001 placeholder<br>+SPD_SOURCES  = samsung.hex   # 0b0010 4GiB<br> SPD_DEPS := $(foreach f, $(SPD_SOURCES), src/mainboard/$(MAINBOARDDIR)/spd/$(f))<br> <br> # Include spd ROM data<br>diff --git a/src/mainboard/lenovo/x1_carbon_gen1/spd/samsung.hex b/src/mainboard/lenovo/x1_carbon_gen1/spd/samsung.hex<br>new file mode 100644<br>index 0000000..2418636<br>--- /dev/null<br>+++ b/src/mainboard/lenovo/x1_carbon_gen1/spd/samsung.hex<br>@@ -0,0 +1,16 @@<br>+92 11 0b 03 04 00 00 0a 03 52 01 08 0c 00 20 00<br>+6c 78 6c 3c 6c 11 20 81 28 08 3c 3c 01 68 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 65 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 75 c6<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>+00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br></pre><p>To view, visit <a href="https://review.coreboot.org/20887">change 20887</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/20887"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I218fd48c8e29563ef089d60ebde7bc36ac8ab189 </div>
<div style="display:none"> Gerrit-Change-Number: 20887 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Nico Huber <nico.h@gmx.de> </div>