From 31021b372049de6fbf5cd4aea66899def741d13a Mon Sep 17 00:00:00 2001 From: John Su Date: Fri, 13 May 2022 14:10:06 +0800 Subject: mb/google/brya/var/mithrax: Generate RAM ID and SPD file Add the support RAM parts for mithrax. Here is the ram part number list: DRAM Part Name ID to assign K4U6E3S4AA-MGCR 0 (0000) K4UBE3D4AA-MGCR 1 (0001) H9HCNNNBKMMLXR-NEE 0 (0000) MT53E1G32D2NP-046 WT:A 2 (0010) MT53E1G32D2NP-046 WT:B 1 (0001) BUG=b:229191897 BRANCH=None TEST=emerge-brya coreboot Signed-off-by: John Su Change-Id: I2d19721a44f0176365a81da30d2f49b68a14df7c Reviewed-on: https://review.coreboot.org/c/coreboot/+/64317 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Subrata Banik Reviewed-by: Frank Wu --- .../google/brya/variants/mithrax/memory/Makefile.inc | 8 ++++++-- .../brya/variants/mithrax/memory/dram_id.generated.txt | 10 ++++++++++ .../brya/variants/mithrax/memory/mem_parts_used.txt | 16 +++++----------- 3 files changed, 21 insertions(+), 13 deletions(-) (limited to 'src/mainboard/google/brya/variants/mithrax') diff --git a/src/mainboard/google/brya/variants/mithrax/memory/Makefile.inc b/src/mainboard/google/brya/variants/mithrax/memory/Makefile.inc index eace2e443e..538bcba065 100644 --- a/src/mainboard/google/brya/variants/mithrax/memory/Makefile.inc +++ b/src/mainboard/google/brya/variants/mithrax/memory/Makefile.inc @@ -1,5 +1,9 @@ # 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/src/part_id_gen/part_id_gen ADL lp4x src/mainboard/google/brya/variants/mithrax/memory src/mainboard/google/brya/variants/mithrax/memory/mem_parts_used.txt -SPD_SOURCES = placeholder +SPD_SOURCES = +SPD_SOURCES += spd/lp4x/set-0/spd-1.hex # ID = 0(0b0000) Parts = K4U6E3S4AA-MGCR, H9HCNNNBKMMLXR-NEE +SPD_SOURCES += spd/lp4x/set-0/spd-3.hex # ID = 1(0b0001) Parts = K4UBE3D4AA-MGCR, MT53E1G32D2NP-046 WT:B +SPD_SOURCES += spd/lp4x/set-0/spd-4.hex # ID = 2(0b0010) Parts = MT53E1G32D2NP-046 WT:A diff --git a/src/mainboard/google/brya/variants/mithrax/memory/dram_id.generated.txt b/src/mainboard/google/brya/variants/mithrax/memory/dram_id.generated.txt index fa247902ee..6e153c20b8 100644 --- a/src/mainboard/google/brya/variants/mithrax/memory/dram_id.generated.txt +++ b/src/mainboard/google/brya/variants/mithrax/memory/dram_id.generated.txt @@ -1 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# This is an auto-generated file. Do not edit!! +# Generated by: +# util/spd_tools/src/part_id_gen/part_id_gen ADL lp4x src/mainboard/google/brya/variants/mithrax/memory src/mainboard/google/brya/variants/mithrax/memory/mem_parts_used.txt + DRAM Part Name ID to assign +K4U6E3S4AA-MGCR 0 (0000) +K4UBE3D4AA-MGCR 1 (0001) +H9HCNNNBKMMLXR-NEE 0 (0000) +MT53E1G32D2NP-046 WT:A 2 (0010) +MT53E1G32D2NP-046 WT:B 1 (0001) diff --git a/src/mainboard/google/brya/variants/mithrax/memory/mem_parts_used.txt b/src/mainboard/google/brya/variants/mithrax/memory/mem_parts_used.txt index 96211370d9..7aadba9dbd 100644 --- a/src/mainboard/google/brya/variants/mithrax/memory/mem_parts_used.txt +++ b/src/mainboard/google/brya/variants/mithrax/memory/mem_parts_used.txt @@ -1,11 +1,5 @@ -# 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 +K4U6E3S4AA-MGCR +K4UBE3D4AA-MGCR +H9HCNNNBKMMLXR-NEE +MT53E1G32D2NP-046 WT:A +MT53E1G32D2NP-046 WT:B -- cgit v1.2.3