summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2024-08-08 13:41:42 +0530
committerSubrata Banik <subratabanik@google.com>2024-08-09 09:24:18 +0000
commitd0d41f28d3d83978aa2d0e2768290fdec1232269 (patch)
treecc9b5eba1adde90e4590e54d3786dfaed2c3a7a8
parentc57564d38abf7cc7d1edadf4fa6f2b465848565f (diff)
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 <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83822 Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Ravishankar Sarawadi <ravishankar.sarawadi@intel.com>
-rw-r--r--spd/lp5/platforms_manifest.generated.txt1
-rw-r--r--util/spd_tools/src/part_id_gen/part_id_gen.go1
-rw-r--r--util/spd_tools/src/spd_gen/lp5.go2
-rw-r--r--util/spd_tools/src/spd_gen/spd_gen.go2
4 files changed, 5 insertions, 1 deletions
diff --git a/spd/lp5/platforms_manifest.generated.txt b/spd/lp5/platforms_manifest.generated.txt
index a52acdc231..ee0aab92ca 100644
--- a/spd/lp5/platforms_manifest.generated.txt
+++ b/spd/lp5/platforms_manifest.generated.txt
@@ -1,6 +1,7 @@
# Generated by:
# util/spd_tools/bin/spd_gen spd/lp5/memory_parts.json lp5
+PTL,set-0
MTL,set-0
ADL,set-0
PHX,set-1
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{