summaryrefslogtreecommitdiff
path: root/util/intelp2m/config
diff options
context:
space:
mode:
authorFabian Meyer <fabian.meyer@student.kit.edu>2024-05-06 16:54:48 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-06-17 14:30:28 +0000
commit92e372bb3510fecb1cf280c7a705ce9c69773d7b (patch)
treedfaaf1f08ede2cb7f46a8b561504f605e9c60b85 /util/intelp2m/config
parent2fb6eec811e6421392442ef0e5902f55fd34d0e4 (diff)
util/intelp2m: Add support for Emmitsburg macro generation
Test: Generated GPIO for ASRock Rack SPC741D8-2L2T/BCM. Change-Id: Ib7ded47fb1c0b87ebb3cecaf3e41319ac552b797 Signed-off-by: Fabian Meyer <fabian.meyer@student.kit.edu> Co-authored-by: Yussuf Khalil <yussuf.khalil@kit.edu> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82204 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Maxim <max.senia.poliak@gmail.com>
Diffstat (limited to 'util/intelp2m/config')
-rw-r--r--util/intelp2m/config/config.go21
1 files changed, 13 insertions, 8 deletions
diff --git a/util/intelp2m/config/config.go b/util/intelp2m/config/config.go
index 051c5803b4..5578a05853 100644
--- a/util/intelp2m/config/config.go
+++ b/util/intelp2m/config/config.go
@@ -24,14 +24,15 @@ func TemplateGet() int {
}
const (
- SunriseType uint8 = 0
- LewisburgType uint8 = 1
- ApolloType uint8 = 2
- CannonType uint8 = 3
- TigerType uint8 = 4
- AlderType uint8 = 5
- JasperType uint8 = 6
- MeteorType uint8 = 7
+ SunriseType uint8 = 0
+ LewisburgType uint8 = 1
+ ApolloType uint8 = 2
+ CannonType uint8 = 3
+ TigerType uint8 = 4
+ AlderType uint8 = 5
+ JasperType uint8 = 6
+ MeteorType uint8 = 7
+ EmmitsburgType uint8 = 8
)
var key uint8 = SunriseType
@@ -45,6 +46,7 @@ var platform = map[string]uint8{
"adl": AlderType,
"jsl": JasperType,
"mtl": MeteorType,
+ "ebg": EmmitsburgType,
}
func PlatformSet(name string) int {
if platformType, valid := platform[name]; valid {
@@ -80,6 +82,9 @@ func IsPlatformAlderLakeH() bool {
func IsPlatformMeteorLake() bool {
return IsPlatform(MeteorType)
}
+func IsPlatformEmmitsburg() bool {
+ return IsPlatform(EmmitsburgType)
+}
var InputRegDumpFile *os.File = nil
var OutputGenFile *os.File = nil