3rdparty/fsp: Update submodule to upstream master
[coreboot2.git] / util / intelp2m / platforms / adl / template.go
blob672be8407029052c47293c60b1ae2240dc5be6bd
1 package adl
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_A", "GPP_B", "GPP_C", "GPP_D", "GPP_E", "GPP_F", "GPP_G",
13 "GPP_H", "GPP_I", "GPP_J", "GPP_K", "GPP_R", "GPP_S", "GPP_T",
14 "GPD", "VGPIO_USB", "VGPIO_PCIE")
18 // KeywordCheck - This function is used to filter parsed lines of the configuration file and
19 // returns true if the keyword is contained in the line.
20 // line : string from the configuration file
21 func (PlatformSpecific) KeywordCheck(line string) bool {
22 isIncluded, _ := common.KeywordsCheck(line, "GPP_", "GPD", "VGPIO")
23 return isIncluded