From b8bba6519ee0411010eaadc0589144d4fea4c67b Mon Sep 17 00:00:00 2001 From: Malik_Hsu Date: Tue, 22 Jun 2021 15:26:03 +0800 Subject: mb/google/brya/variants/primus: add dram part id This change adds mem_parts_uesd.txt that contains the only memory parts used by primus for Proto build and Makefile.inc generated by gen_part_id.go using mem_parts_used.txt. BUG=b:186091208,b:189169995 Signed-off-by: Malik_Hsu Change-Id: I423fd9ad4349c51c6e6b166734ae706509d6ac3e Reviewed-on: https://review.coreboot.org/c/coreboot/+/55748 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak Reviewed-by: Nick Vaccaro --- .../google/brya/variants/primus/memory/Makefile.inc | 6 ++++-- .../brya/variants/primus/memory/dram_id.generated.txt | 4 ++++ .../google/brya/variants/primus/memory/mem_parts_used.txt | 15 ++++----------- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/mainboard/google/brya/variants/primus/memory/Makefile.inc b/src/mainboard/google/brya/variants/primus/memory/Makefile.inc index b0ca2223a8..34944e3b3b 100644 --- a/src/mainboard/google/brya/variants/primus/memory/Makefile.inc +++ b/src/mainboard/google/brya/variants/primus/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 = H9HCNNNBKMMLXR-NEE, K4U6E3S4AA-MGCR +SPD_SOURCES += lp4x-spd-2.hex # ID = 1(0b0001) Parts = H9HCNNNFAMMLXR-NEE +SPD_SOURCES += lp4x-spd-3.hex # ID = 2(0b0010) Parts = H9HCNNNCPMMLXR-NEE diff --git a/src/mainboard/google/brya/variants/primus/memory/dram_id.generated.txt b/src/mainboard/google/brya/variants/primus/memory/dram_id.generated.txt index fa247902ee..2166331ba0 100644 --- a/src/mainboard/google/brya/variants/primus/memory/dram_id.generated.txt +++ b/src/mainboard/google/brya/variants/primus/memory/dram_id.generated.txt @@ -1 +1,5 @@ DRAM Part Name ID to assign +H9HCNNNBKMMLXR-NEE 0 (0000) +H9HCNNNFAMMLXR-NEE 1 (0001) +H9HCNNNCPMMLXR-NEE 2 (0010) +K4U6E3S4AA-MGCR 0 (0000) diff --git a/src/mainboard/google/brya/variants/primus/memory/mem_parts_used.txt b/src/mainboard/google/brya/variants/primus/memory/mem_parts_used.txt index 9cff262f6d..95bc596e30 100644 --- a/src/mainboard/google/brya/variants/primus/memory/mem_parts_used.txt +++ b/src/mainboard/google/brya/variants/primus/memory/mem_parts_used.txt @@ -1,11 +1,4 @@ -# 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 -# gen_part_id tool from util/spd_tools/lp4x. -# See util/spd_tools/lp4x/README.md for more details and instructions. - -# Part Name +H9HCNNNBKMMLXR-NEE +H9HCNNNFAMMLXR-NEE +H9HCNNNCPMMLXR-NEE +K4U6E3S4AA-MGCR -- cgit v1.2.3