mb/google/nissa/var/rull: Add 6W and 15W DPTF parameters
[coreboot2.git] / util / intelp2m / platforms / snr / template.go
blob2a5dfc364392866bd354fc862645ce9214a8df9f
1 package snr
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_F", "GPP_C", "GPP_D", "GPP_E", "GPD", "GPP_I", "GPP_J",
13 "GPP_K", "GPP_G", "GPP_H", "GPP_L")
16 // KeywordCheck - This function is used to filter parsed lines of the configuration file and
17 // returns true if the keyword is contained in the line.
18 // line : string from the configuration file
19 // Returns false if no word was found, or true otherwise
20 func (PlatformSpecific) KeywordCheck(line string) bool {
21 isIncluded, _ := common.KeywordsCheck(line, "GPP_", "GPD")
22 return isIncluded