From d0d41f28d3d83978aa2d0e2768290fdec1232269 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Thu, 8 Aug 2024 13:41:42 +0530 Subject: util/spd_tools: Add Intel Panther Lake (PTL) platform This patch add support for PTL platform to the `spd_tools`. This would be useful to create dynamic SPD for fatcat variants. BUG=b:347669091 TEST=Able to generate SPD for LP5 DRAM part. Change-Id: I55c3f49439fb1ad961c6866f03594431e54279b9 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/83822 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) Reviewed-by: Ravishankar Sarawadi --- util/spd_tools/src/part_id_gen/part_id_gen.go | 1 + util/spd_tools/src/spd_gen/lp5.go | 2 +- util/spd_tools/src/spd_gen/spd_gen.go | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'util/spd_tools') diff --git a/util/spd_tools/src/part_id_gen/part_id_gen.go b/util/spd_tools/src/part_id_gen/part_id_gen.go index 719cfd5306..de92612b9b 100644 --- a/util/spd_tools/src/part_id_gen/part_id_gen.go +++ b/util/spd_tools/src/part_id_gen/part_id_gen.go @@ -43,6 +43,7 @@ var supportedPlatforms = [...]string{ "MDN", "MTL", "PHX", + "PTL", } var supportedMemTechs = [...]string{ diff --git a/util/spd_tools/src/spd_gen/lp5.go b/util/spd_tools/src/spd_gen/lp5.go index 65a7a57c60..f3586c7539 100644 --- a/util/spd_tools/src/spd_gen/lp5.go +++ b/util/spd_tools/src/spd_gen/lp5.go @@ -176,7 +176,7 @@ const ( /* ------------------------------------------------------------------------------------------ */ var LP5PlatformSetMap = map[int][]int{ - 0: {PlatformMTL, PlatformADL}, + 0: {PlatformPTL, PlatformMTL, PlatformADL}, 1: {PlatformPHX, PlatformMDN}, } diff --git a/util/spd_tools/src/spd_gen/spd_gen.go b/util/spd_tools/src/spd_gen/spd_gen.go index 9f9c6f5e0c..5c7ed79b15 100644 --- a/util/spd_tools/src/spd_gen/spd_gen.go +++ b/util/spd_tools/src/spd_gen/spd_gen.go @@ -75,6 +75,7 @@ const ( PlatformMDN PlatformMTL PlatformPHX + PlatformPTL PlatformMax ) @@ -96,6 +97,7 @@ var platformNames = map[int]string{ PlatformMDN: "MDN", PlatformMTL: "MTL", PlatformPHX: "PHX", + PlatformPTL: "PTL", } var memTechMap = map[string]memTech{ -- cgit v1.2.3