summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTao Xia <xiatao5@huaqin.corp-partner.google.com>2020-12-08 14:43:31 +0800
committerHung-Te Lin <hungte@chromium.org>2020-12-21 02:37:39 +0000
commitf20151dfaa4ffbee9b58aa86d77320c45bd81707 (patch)
tree41c6d05706cf59bc1efa3f8750c6814301327dff
parent8dad8248d46e6c5d4b4708cff93789719ca7c4ee (diff)
mb/google/dedede/var/storo: Generate SPD ID for supported memory parts
Add supported memory parts in the mem_parts_used.txt and generate the SPD ID for the memory parts. The memory parts being added are: MT53E512M32D2NP-046 WT:E H9HCNNNBKMMLXR-NEE MT53E1G32D2NP-046 WT:A H9HCNNNCPMMLXR-NEE BUG=None TEST=Build the storo board. Signed-off-by: Tao Xia <xiatao5@huaqin.corp-partner.google.com> Change-Id: Ifd935865927bb9fccf95eb4924ca6986d0c19442 Reviewed-on: https://review.coreboot.org/c/coreboot/+/48447 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org> Reviewed-by: Xuxin Xiong <xuxinxiong@huaqin.corp-partner.google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
-rw-r--r--src/mainboard/google/dedede/variants/storo/memory/Makefile.inc6
-rw-r--r--src/mainboard/google/dedede/variants/storo/memory/dram_id.generated.txt4
-rw-r--r--src/mainboard/google/dedede/variants/storo/memory/mem_parts_used.txt10
3 files changed, 12 insertions, 8 deletions
diff --git a/src/mainboard/google/dedede/variants/storo/memory/Makefile.inc b/src/mainboard/google/dedede/variants/storo/memory/Makefile.inc
index b0ca2223a8..c0e2fffb6b 100644
--- a/src/mainboard/google/dedede/variants/storo/memory/Makefile.inc
+++ b/src/mainboard/google/dedede/variants/storo/memory/Makefile.inc
@@ -1,5 +1,7 @@
## SPDX-License-Identifier: GPL-2.0-or-later
## This is an auto-generated file. Do not edit!!
-## Add memory parts in mem_parts_used.txt and run spd_tools to regenerate.
-SPD_SOURCES = placeholder.spd.hex
+SPD_SOURCES =
+SPD_SOURCES += lp4x-spd-1.hex # ID = 0(0b0000) Parts = MT53E512M32D2NP-046 WT:E, H9HCNNNBKMMLXR-NEE
+SPD_SOURCES += lp4x-spd-4.hex # ID = 1(0b0001) Parts = MT53E1G32D2NP-046 WT:A
+SPD_SOURCES += lp4x-spd-3.hex # ID = 2(0b0010) Parts = H9HCNNNCPMMLXR-NEE
diff --git a/src/mainboard/google/dedede/variants/storo/memory/dram_id.generated.txt b/src/mainboard/google/dedede/variants/storo/memory/dram_id.generated.txt
index fa247902ee..ad6374dcce 100644
--- a/src/mainboard/google/dedede/variants/storo/memory/dram_id.generated.txt
+++ b/src/mainboard/google/dedede/variants/storo/memory/dram_id.generated.txt
@@ -1 +1,5 @@
DRAM Part Name ID to assign
+MT53E512M32D2NP-046 WT:E 0 (0000)
+H9HCNNNBKMMLXR-NEE 0 (0000)
+MT53E1G32D2NP-046 WT:A 1 (0001)
+H9HCNNNCPMMLXR-NEE 2 (0010)
diff --git a/src/mainboard/google/dedede/variants/storo/memory/mem_parts_used.txt b/src/mainboard/google/dedede/variants/storo/memory/mem_parts_used.txt
index 59381dcf5b..43363e7e0d 100644
--- a/src/mainboard/google/dedede/variants/storo/memory/mem_parts_used.txt
+++ b/src/mainboard/google/dedede/variants/storo/memory/mem_parts_used.txt
@@ -1,6 +1,4 @@
-# This is a CSV file containing a list of memory parts used by this variant.
-# Generate an updated Makefile.inc and dram_id.generated.txt by running the
-# gen_part_id tool from util/spd_tools/lp4x
-# See util/spd_tools/lp4x/README.md for more details and instructions.
-
-# Part Name
+MT53E512M32D2NP-046 WT:E
+H9HCNNNBKMMLXR-NEE
+MT53E1G32D2NP-046 WT:A
+H9HCNNNCPMMLXR-NEE