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 <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44457 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Maxim Polyakov <max.senia.poliak@gmail.com>
This commit is contained in:
committed by
Patrick Georgi
parent
ceb409a2a6
commit
5eeead2d73
@ -10,6 +10,7 @@ import (
|
||||
import "../platforms/snr"
|
||||
import "../platforms/lbg"
|
||||
import "../platforms/apl"
|
||||
import "../platforms/cnl"
|
||||
import "../config"
|
||||
|
||||
// PlatformSpecific - platform-specific interface
|
||||
@ -141,6 +142,9 @@ func (parser *ParserData) PlatformSpecificInterfaceSet() {
|
||||
InheritanceTemplate : snr.PlatformSpecific{},
|
||||
},
|
||||
config.ApolloType : apl.PlatformSpecific{},
|
||||
config.CannonType : cnl.PlatformSpecific{
|
||||
InheritanceTemplate : snr.PlatformSpecific{},
|
||||
},
|
||||
}
|
||||
parser.platform = platform[config.PlatformGet()]
|
||||
}
|
||||
@ -198,7 +202,7 @@ func (parser *ParserData) padOwnershipExtract() bool {
|
||||
// padConfigurationExtract - reads GPIO configuration registers and returns true if the
|
||||
// information from the inteltool log was successfully parsed.
|
||||
func (parser *ParserData) padConfigurationExtract() bool {
|
||||
// Only for Sunrise PCH and only for inteltool.log file template
|
||||
// Only for Sunrise or CannonLake, and only for inteltool.log file template
|
||||
if config.TemplateGet() != config.TempInteltool || config.IsPlatformApollo() {
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user