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>
This commit is contained in:
Subrata Banik 2022-06-28 15:43:00 +05:30 committed by Felix Held
parent a19bc34430
commit 123bcb702a
4 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -41,6 +41,7 @@ var supportedPlatforms = [...]string{
"PCO",
"CZN",
"SBR",
"MTL",
}
var supportedMemTechs = [...]string{

View File

@ -172,7 +172,7 @@ const (
/* ------------------------------------------------------------------------------------------ */
var LP5PlatformSetMap = map[int][]int{
0: {PlatformADL},
0: {PlatformMTL, PlatformADL},
1: {PlatformSBR},
}

View File

@ -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{