summaryrefslogtreecommitdiffstats
path: root/util/intelp2m/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/intelp2m/config/config.go')
-rw-r--r--util/intelp2m/config/config.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/intelp2m/config/config.go b/util/intelp2m/config/config.go
index 9f0b75772c55..724de8caa62e 100644
--- a/util/intelp2m/config/config.go
+++ b/util/intelp2m/config/config.go
@@ -27,6 +27,7 @@ const (
SunriseType uint8 = 0
LewisburgType uint8 = 1
ApolloType uint8 = 2
+ CannonType uint8 = 3
)
var key uint8 = SunriseType
@@ -34,7 +35,8 @@ var key uint8 = SunriseType
var platform = map[string]uint8{
"snr": SunriseType,
"lbg": LewisburgType,
- "apl": ApolloType}
+ "apl": ApolloType,
+ "cnl": CannonType}
func PlatformSet(name string) int {
if platformType, valid := platform[name]; valid {
key = platformType
@@ -57,6 +59,9 @@ func IsPlatformSunrise() bool {
func IsPlatformLewisburg() bool {
return IsPlatform(LewisburgType)
}
+func IsPlatformCannonLake() bool {
+ return IsPlatform(CannonType)
+}
var InputRegDumpFile *os.File = nil
var OutputGenFile *os.File = nil