summaryrefslogtreecommitdiff
path: root/util/intelp2m/config
diff options
context:
space:
mode:
authorFilip Lewiński <filip.lewinski@3mdeb.com>2024-04-15 16:46:04 +0200
committerMartin L Roth <gaumless@gmail.com>2024-05-12 18:53:31 +0000
commit7898594b7c96a0330cb7e0a77beb1caa31d58532 (patch)
treeafe3a0cfc99ad32a582c143f08c5ea2f59c99d4f /util/intelp2m/config
parentc42e28f077cbf108085dff8d847a74d23782d703 (diff)
util/intelp2m: add Meteor Lake support
Enables parsing Meteor Lake inteltool output into gpio.h pad macros. Change-Id: Iaebd51d587507e68c6f263b92dc61cb6c0411bf8 Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81916 Reviewed-by: Maxim <max.senia.poliak@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Michał Kopeć <michal.kopec@3mdeb.com>
Diffstat (limited to 'util/intelp2m/config')
-rw-r--r--util/intelp2m/config/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/intelp2m/config/config.go b/util/intelp2m/config/config.go
index 62242b916c..051c5803b4 100644
--- a/util/intelp2m/config/config.go
+++ b/util/intelp2m/config/config.go
@@ -31,6 +31,7 @@ const (
TigerType uint8 = 4
AlderType uint8 = 5
JasperType uint8 = 6
+ MeteorType uint8 = 7
)
var key uint8 = SunriseType
@@ -43,6 +44,7 @@ var platform = map[string]uint8{
"tgl": TigerType,
"adl": AlderType,
"jsl": JasperType,
+ "mtl": MeteorType,
}
func PlatformSet(name string) int {
if platformType, valid := platform[name]; valid {
@@ -75,6 +77,9 @@ func IsPlatformTigerLake() bool {
func IsPlatformAlderLakeH() bool {
return IsPlatform(AlderType)
}
+func IsPlatformMeteorLake() bool {
+ return IsPlatform(MeteorType)
+}
var InputRegDumpFile *os.File = nil
var OutputGenFile *os.File = nil