blob: f98272a926ee9012967ef1ef35085f3e6edd5ba8 [file] [log] [blame]
Alicja Michalskac45d5c82024-03-29 14:01:23 +01001package tgl
2
3import "review.coreboot.org/coreboot.git/util/intelp2m/platforms/common"
4
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
10func (PlatformSpecific) GroupNameExtract(line string) (bool, string) {
11 return common.KeywordsCheck(line,
12 "GPP_A", "GPP_R", "GPP_B", "GPP_D", "GPP_C", "GPP_S", "GPP_G",
13 "GPD", "GPP_E", "GPP_F", "GPP_H", "GPP_J", "GPP_K", "GPP_I",
14 "VGPIO_USB", "VGPIO_PCIE")
15
16}
17
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
21func (PlatformSpecific) KeywordCheck(line string) bool {
22 isIncluded, _ := common.KeywordsCheck(line, "GPP_", "GPD", "VGPIO")
23 return isIncluded
24}