3rdparty/fsp: Update submodule to upstream master
[coreboot2.git] / util / intelp2m / platforms / mtl / template.go
blob76a65f3f181c66c07611ee26d575e6847de52ca2
1 package mtl
3 import "review.coreboot.org/coreboot.git/util/intelp2m/platforms/common"
5 // GroupNameExtract - This function extracts the group ID, if it exists in a row
6 // line : string from the configuration file
7 // return
8 // bool : true if the string contains a group identifier
9 // string : group identifier
10 func (PlatformSpecific) GroupNameExtract(line string) (bool, string) {
11 return common.KeywordsCheck(line,
12 "GPP_V", "GPP_C", "GPP_A", "GPP_E", "GPP_H", "GPP_F", "GPP_S",
13 "GPP_B", "GPP_D", "GPD", "VGPIO_USB", "VGPIO_PCIE")
17 // KeywordCheck - This function is used to filter parsed lines of the configuration file and
18 // returns true if the keyword is contained in the line.
19 // line : string from the configuration file
20 func (PlatformSpecific) KeywordCheck(line string) bool {
21 isIncluded, _ := common.KeywordsCheck(line, "GPP_", "GPD", "VGPIO")
22 return isIncluded