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>
This commit is contained in:
committed by
Martin L Roth
parent
c42e28f077
commit
7898594b7c
@@ -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
|
||||
|
Reference in New Issue
Block a user