mb/google/skyrim/var/frostflow: Generate RAM IDs for new memory parts
Add new memory parts in the mem_parts_used.txt and generate the
SPD ID for the parts. The memory parts being added are:
DRAM Part Name ID to assign
MT62F512M32D2DR-031 WT:B 0 (0000)
H9JCNNNBK3MLYR-N6E 0 (0000)
MT62F1G32D4DR-031 WT:B 1 (0001)
H9JCNNNCP3MLYR-N6E 1 (0001)
MT62F2G32D8DR-031 WT:B 2 (0010)
H9JCNNNFA5MLYR-N6E 3 (0011)
BUG=b:250470704, b:247683159
BRANCH=None
TEST=FW_NAME=frostflow emerge-skyrim coreboot
Signed-off-by: Frank Wu <frank_wu@compal.corp-partner.google.com>
Change-Id: I34584092c938539c91d65501ebe34b00212b34d4
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68388
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jon Murphy <jpmurphy@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
diff --git a/src/mainboard/google/skyrim/variants/frostflow/Makefile.inc b/src/mainboard/google/skyrim/variants/frostflow/Makefile.inc
new file mode 100644
index 0000000..88e75bd
--- /dev/null
+++ b/src/mainboard/google/skyrim/variants/frostflow/Makefile.inc
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+subdirs-y += ./memory
diff --git a/src/mainboard/google/skyrim/variants/frostflow/memory/Makefile.inc b/src/mainboard/google/skyrim/variants/frostflow/memory/Makefile.inc
new file mode 100644
index 0000000..f6c1d1a
--- /dev/null
+++ b/src/mainboard/google/skyrim/variants/frostflow/memory/Makefile.inc
@@ -0,0 +1,10 @@
+# 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 MDN lp5 src/mainboard/google/skyrim/variants/frostflow/memory src/mainboard/google/skyrim/variants/frostflow/memory/mem_parts_used.txt
+
+SPD_SOURCES =
+SPD_SOURCES += spd/lp5/set-1/spd-1.hex # ID = 0(0b0000) Parts = MT62F512M32D2DR-031 WT:B, H9JCNNNBK3MLYR-N6E
+SPD_SOURCES += spd/lp5/set-1/spd-2.hex # ID = 1(0b0001) Parts = MT62F1G32D4DR-031 WT:B, H9JCNNNCP3MLYR-N6E
+SPD_SOURCES += spd/lp5/set-1/spd-4.hex # ID = 2(0b0010) Parts = MT62F2G32D8DR-031 WT:B
+SPD_SOURCES += spd/lp5/set-1/spd-9.hex # ID = 3(0b0011) Parts = H9JCNNNFA5MLYR-N6E
diff --git a/src/mainboard/google/skyrim/variants/frostflow/memory/dram_id.generated.txt b/src/mainboard/google/skyrim/variants/frostflow/memory/dram_id.generated.txt
new file mode 100644
index 0000000..1384f14
--- /dev/null
+++ b/src/mainboard/google/skyrim/variants/frostflow/memory/dram_id.generated.txt
@@ -0,0 +1,12 @@
+# 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 MDN lp5 src/mainboard/google/skyrim/variants/frostflow/memory src/mainboard/google/skyrim/variants/frostflow/memory/mem_parts_used.txt
+
+DRAM Part Name ID to assign
+MT62F512M32D2DR-031 WT:B 0 (0000)
+H9JCNNNBK3MLYR-N6E 0 (0000)
+MT62F1G32D4DR-031 WT:B 1 (0001)
+H9JCNNNCP3MLYR-N6E 1 (0001)
+MT62F2G32D8DR-031 WT:B 2 (0010)
+H9JCNNNFA5MLYR-N6E 3 (0011)
diff --git a/src/mainboard/google/skyrim/variants/frostflow/memory/mem_parts_used.txt b/src/mainboard/google/skyrim/variants/frostflow/memory/mem_parts_used.txt
new file mode 100644
index 0000000..c1e7c07
--- /dev/null
+++ b/src/mainboard/google/skyrim/variants/frostflow/memory/mem_parts_used.txt
@@ -0,0 +1,6 @@
+MT62F512M32D2DR-031 WT:B,
+H9JCNNNBK3MLYR-N6E,
+MT62F1G32D4DR-031 WT:B,
+H9JCNNNCP3MLYR-N6E,
+MT62F2G32D8DR-031 WT:B,
+H9JCNNNFA5MLYR-N6E,