summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Huang <tony-huang@quanta.corp-partner.google.com>2022-06-10 11:39:34 +0800
committerFelix Held <felix-coreboot@felixheld.de>2022-06-15 13:12:20 +0000
commit211b64eeebc8ae18587d79a0dc9147dbffbd8249 (patch)
treeb1e6bdcbdbb11d57839dc8b7dc6e1f59f827379c
parent354fbef17bddd6d9a150863fceb46c186aa91249 (diff)
mb/google/dedede/var/shotzo: Generate SPD ID for supported parts
Add supported memory parts in the mem_list_variant.txt and generate the SPD ID for the parts. The memory parts being added are: - MT53E512M32D2NP-046 WT:E - H9HCNNNBKMMLXR-NEE - K4U6E3S4AA-MGCR - MT53E512M32D1NP-046 WT:B - H54G46CYRBX267 - K4U6E3S4AB-MGCL - K4U6E3S4AA-MGCL BUG=b:235303242 BRANCH=dedede TEST=build Change-Id: Ie0ffdfed47b1791b990affd9eee262faede4b0c8 Signed-off-by: Tony Huang <tony-huang@quanta.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/65081 Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Henry Sun <henrysun@google.com>
-rw-r--r--src/mainboard/google/dedede/variants/shotzo/memory/Makefile.inc6
-rw-r--r--src/mainboard/google/dedede/variants/shotzo/memory/dram_id.generated.txt12
-rw-r--r--src/mainboard/google/dedede/variants/shotzo/memory/mem_parts_used.txt18
3 files changed, 23 insertions, 13 deletions
diff --git a/src/mainboard/google/dedede/variants/shotzo/memory/Makefile.inc b/src/mainboard/google/dedede/variants/shotzo/memory/Makefile.inc
index eace2e443e..23779f4701 100644
--- a/src/mainboard/google/dedede/variants/shotzo/memory/Makefile.inc
+++ b/src/mainboard/google/dedede/variants/shotzo/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.
+# Generated by:
+# ./util/spd_tools/bin/part_id_gen JSL lp4x src/mainboard/google/dedede/variants/shotzo/memory/ src/mainboard/google/dedede/variants/shotzo/memory/mem_parts_used.txt
-SPD_SOURCES = placeholder
+SPD_SOURCES =
+SPD_SOURCES += spd/lp4x/set-1/spd-1.hex # ID = 0(0b0000) Parts = MT53E512M32D2NP-046 WT:E, H9HCNNNBKMMLXR-NEE, K4U6E3S4AA-MGCR, MT53E512M32D1NP-046 WT:B, H54G46CYRBX267, K4U6E3S4AB-MGCL, K4U6E3S4AA-MGCL
diff --git a/src/mainboard/google/dedede/variants/shotzo/memory/dram_id.generated.txt b/src/mainboard/google/dedede/variants/shotzo/memory/dram_id.generated.txt
index fa247902ee..4ee3c55fbe 100644
--- a/src/mainboard/google/dedede/variants/shotzo/memory/dram_id.generated.txt
+++ b/src/mainboard/google/dedede/variants/shotzo/memory/dram_id.generated.txt
@@ -1 +1,13 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+# This is an auto-generated file. Do not edit!!
+# Generated by:
+# ./util/spd_tools/bin/part_id_gen JSL lp4x src/mainboard/google/dedede/variants/shotzo/memory/ src/mainboard/google/dedede/variants/shotzo/memory/mem_parts_used.txt
+
DRAM Part Name ID to assign
+MT53E512M32D2NP-046 WT:E 0 (0000)
+H9HCNNNBKMMLXR-NEE 0 (0000)
+K4U6E3S4AA-MGCR 0 (0000)
+MT53E512M32D1NP-046 WT:B 0 (0000)
+H54G46CYRBX267 0 (0000)
+K4U6E3S4AB-MGCL 0 (0000)
+K4U6E3S4AA-MGCL 0 (0000)
diff --git a/src/mainboard/google/dedede/variants/shotzo/memory/mem_parts_used.txt b/src/mainboard/google/dedede/variants/shotzo/memory/mem_parts_used.txt
index 96211370d9..4a3e217521 100644
--- a/src/mainboard/google/dedede/variants/shotzo/memory/mem_parts_used.txt
+++ b/src/mainboard/google/dedede/variants/shotzo/memory/mem_parts_used.txt
@@ -1,11 +1,7 @@
-# This is a CSV file containing a list of memory parts used by this variant.
-# One part per line with an optional fixed ID in column 2.
-# Only include a fixed ID if it is required for legacy reasons!
-# Generated IDs are dependent on the order of parts in this file,
-# so new parts must always be added at the end of the file!
-#
-# Generate an updated Makefile.inc and dram_id.generated.txt by running the
-# part_id_gen tool from util/spd_tools.
-# See util/spd_tools/README.md for more details and instructions.
-
-# Part Name
+MT53E512M32D2NP-046 WT:E
+H9HCNNNBKMMLXR-NEE
+K4U6E3S4AA-MGCR
+MT53E512M32D1NP-046 WT:B
+H54G46CYRBX267
+K4U6E3S4AB-MGCL
+K4U6E3S4AA-MGCL