From 35e9ffe8cc306a767794106137f40ef123c8fb89 Mon Sep 17 00:00:00 2001 From: Tyler Wang Date: Thu, 13 Jul 2023 14:21:56 +0800 Subject: [PATCH] mb/google/rex/var/karis: Generate SPD ID for supported memory part Add karis supported memory parts in mem_parts_used.txt, generate SPD id. 1. MICRON MT62F1G32D2DS-023 WT:B 2. HYNIX H9JCNNNBK3MLYR-N6E 3. HYNIX H58G56BK8BX068 4. SAMSUNG K3KL8L80CM-MGCT BUG=b:291018417 TEST=Use part_id_gen to generate related settings Change-Id: I87c2c4f59454dec84d29590ee91379c9fa60ddcf Signed-off-by: Tyler Wang Reviewed-on: https://review.coreboot.org/c/coreboot/+/76443 Reviewed-by: Subrata Banik Reviewed-by: David Wu Reviewed-by: Kapil Porwal Tested-by: build bot (Jenkins) --- .../google/rex/variants/karis/memory/Makefile.inc | 8 ++++++-- .../rex/variants/karis/memory/dram_id.generated.txt | 9 +++++++++ .../google/rex/variants/karis/memory/mem_parts_used.txt | 4 ++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/mainboard/google/rex/variants/karis/memory/Makefile.inc b/src/mainboard/google/rex/variants/karis/memory/Makefile.inc index eace2e443e..a37b32ff01 100644 --- a/src/mainboard/google/rex/variants/karis/memory/Makefile.inc +++ b/src/mainboard/google/rex/variants/karis/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/bin/part_id_gen MTL lp5 src/mainboard/google/rex/variants/karis/memory/ src/mainboard/google/rex/variants/karis/memory/mem_parts_used.txt -SPD_SOURCES = placeholder +SPD_SOURCES = +SPD_SOURCES += spd/lp5/set-0/spd-11.hex # ID = 0(0b0000) Parts = MT62F1G32D2DS-023 WT:B, H58G56BK8BX068 +SPD_SOURCES += spd/lp5/set-0/spd-1.hex # ID = 1(0b0001) Parts = H9JCNNNBK3MLYR-N6E +SPD_SOURCES += spd/lp5/set-0/spd-7.hex # ID = 2(0b0010) Parts = K3KL8L80CM-MGCT diff --git a/src/mainboard/google/rex/variants/karis/memory/dram_id.generated.txt b/src/mainboard/google/rex/variants/karis/memory/dram_id.generated.txt index fa247902ee..a34678eeb7 100644 --- a/src/mainboard/google/rex/variants/karis/memory/dram_id.generated.txt +++ b/src/mainboard/google/rex/variants/karis/memory/dram_id.generated.txt @@ -1 +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 MTL lp5 src/mainboard/google/rex/variants/karis/memory/ src/mainboard/google/rex/variants/karis/memory/mem_parts_used.txt + DRAM Part Name ID to assign +MT62F1G32D2DS-023 WT:B 0 (0000) +H9JCNNNBK3MLYR-N6E 1 (0001) +H58G56BK8BX068 0 (0000) +K3KL8L80CM-MGCT 2 (0010) diff --git a/src/mainboard/google/rex/variants/karis/memory/mem_parts_used.txt b/src/mainboard/google/rex/variants/karis/memory/mem_parts_used.txt index 96211370d9..e92b0a3d46 100644 --- a/src/mainboard/google/rex/variants/karis/memory/mem_parts_used.txt +++ b/src/mainboard/google/rex/variants/karis/memory/mem_parts_used.txt @@ -9,3 +9,7 @@ # See util/spd_tools/README.md for more details and instructions. # Part Name +MT62F1G32D2DS-023 WT:B +H9JCNNNBK3MLYR-N6E +H58G56BK8BX068 +K3KL8L80CM-MGCT