summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-06-28 15:43:00 +0530
committerFelix Held <felix-coreboot@felixheld.de>2022-07-14 12:50:10 +0000
commit123bcb702a16758eb5cc75346e7bed38339bb44c (patch)
tree82d0c1d8d969b2ee4fbc7870d59749e754f78b11
parenta19bc34430200f34286f3ba5e8b1df569b69fe8b (diff)
util/spd_tools: Add Intel Meteor Lake (MTL) platform
This patch add support for MTL platform to the `spd_tools`. This would be useful to create dynamic SPD for rex variants. BUG=b:224325352 TEST=Able to generate SPD for LP5 DRAM part. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I1db6e3a63d2842c12ef0f256ba1d32b9258670f8 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65473 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tarun Tuli <taruntuli@google.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 356c99aa6f..8fbbd273e7 100644
--- a/spd/lp5/platforms_manifest.generated.txt
+++ b/spd/lp5/platforms_manifest.generated.txt
@@ -2,4 +2,5 @@
# util/spd_tools/bin/spd_gen spd/lp5/memory_parts.json lp5
ADL,set-0
+MTL,set-0
SBR,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 eef7ee3484..e2acbfc43c 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
@@ -41,6 +41,7 @@ var supportedPlatforms = [...]string{
"PCO",
"CZN",
"SBR",
+ "MTL",
}
var supportedMemTechs = [...]string{
diff --git a/util/spd_tools/src/spd_gen/lp5.go b/util/spd_tools/src/spd_gen/lp5.go
index 060cb2ad69..7d355a7afe 100644
--- a/util/spd_tools/src/spd_gen/lp5.go
+++ b/util/spd_tools/src/spd_gen/lp5.go
@@ -172,7 +172,7 @@ const (
/* ------------------------------------------------------------------------------------------ */
var LP5PlatformSetMap = map[int][]int{
- 0: {PlatformADL},
+ 0: {PlatformMTL, PlatformADL},
1: {PlatformSBR},
}
diff --git a/util/spd_tools/src/spd_gen/spd_gen.go b/util/spd_tools/src/spd_gen/spd_gen.go
index 9e939f0fed..f8eb52896b 100644
--- a/util/spd_tools/src/spd_gen/spd_gen.go
+++ b/util/spd_tools/src/spd_gen/spd_gen.go
@@ -73,6 +73,7 @@ const (
PlatformPCO
PlatformCZN
PlatformSBR
+ PlatformMTL
PlatformMax
)
@@ -92,6 +93,7 @@ var platformNames = map[int]string{
PlatformPCO: "PCO",
PlatformCZN: "CZN",
PlatformSBR: "SBR",
+ PlatformMTL: "MTL",
}
var memTechMap = map[string]memTech{