From 5eeead2d73d2daa2361d0272db41e85e1de79a6c Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Sun, 9 Aug 2020 14:13:56 -0500 Subject: util/intelp2m: Add support for Cannonlake-LP SoCs Add support for Cannonlake-LP SoCs (Whiskeylake-U, Coffeelake-U, Cometlake-U) as a separate parsing profile, copying the existing 'Sunrise' profile and adjusting for differences in reset mapping and GPIO macro generation Test: convert inteltool GPIO log dump into coreboot macros for an out-of-tree CML-U board. Change-Id: I86296697ee892af7aa0818fb608b6d68fad2f307 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/44457 Tested-by: build bot (Jenkins) Reviewed-by: Maxim Polyakov --- util/intelp2m/config/config.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'util/intelp2m/config') diff --git a/util/intelp2m/config/config.go b/util/intelp2m/config/config.go index 9f0b75772c..724de8caa6 100644 --- a/util/intelp2m/config/config.go +++ b/util/intelp2m/config/config.go @@ -27,6 +27,7 @@ const ( SunriseType uint8 = 0 LewisburgType uint8 = 1 ApolloType uint8 = 2 + CannonType uint8 = 3 ) var key uint8 = SunriseType @@ -34,7 +35,8 @@ var key uint8 = SunriseType var platform = map[string]uint8{ "snr": SunriseType, "lbg": LewisburgType, - "apl": ApolloType} + "apl": ApolloType, + "cnl": CannonType} func PlatformSet(name string) int { if platformType, valid := platform[name]; valid { key = platformType @@ -57,6 +59,9 @@ func IsPlatformSunrise() bool { func IsPlatformLewisburg() bool { return IsPlatform(LewisburgType) } +func IsPlatformCannonLake() bool { + return IsPlatform(CannonType) +} var InputRegDumpFile *os.File = nil var OutputGenFile *os.File = nil -- cgit v1.2.3