cpld: define CPLD firmware type using chip name instead of chip group
Previously, the CPLD firmware `type` was defined using the
chip group (family) name, which caused issues for mechanisms
that rely on the full chip identity—such as device ID checks.
This change updates the `type` definition to use the specific
chip name, ensuring more accurate matching and improving
compatibility with hardware-level validation.
Change-Id: I3a20740d09864f8dd1d35092fe767af3a47e0f76
Signed-off-by: Daniel Hsu <Daniel-Hsu@quantatw.com>
diff --git a/configurations/meta/harma_mb.json b/configurations/meta/harma_mb.json
index 47a1b6b..6e7810b 100644
--- a/configurations/meta/harma_mb.json
+++ b/configurations/meta/harma_mb.json
@@ -764,7 +764,7 @@
"VendorIANA": 40981
},
"Name": "Harma_MB_CPLD",
- "Type": "LatticeMachXO3Firmware"
+ "Type": "LatticeLCMXO3LF_4300CFirmware"
},
{
"Address": "0x20",
diff --git a/configurations/meta/harma_mb_vr_infineon.json b/configurations/meta/harma_mb_vr_infineon.json
index 3b3a395..2d952f1 100644
--- a/configurations/meta/harma_mb_vr_infineon.json
+++ b/configurations/meta/harma_mb_vr_infineon.json
@@ -423,7 +423,7 @@
"VendorIANA": 40981
},
"Name": "Harma_MB_CPLD",
- "Type": "LatticeMachXO3Firmware"
+ "Type": "LatticeLCMXO3LF_4300CFirmware"
},
{
"Address": "0x20",
diff --git a/configurations/meta/harma_scm.json b/configurations/meta/harma_scm.json
index bee2770..d3a9601 100644
--- a/configurations/meta/harma_scm.json
+++ b/configurations/meta/harma_scm.json
@@ -179,7 +179,7 @@
"VendorIANA": 40981
},
"Name": "Harma_SCM_CPLD",
- "Type": "LatticeMachXO3Firmware"
+ "Type": "LatticeLCMXO3LF_2100CFirmware"
},
{
"Address": "0x4B",
diff --git a/schemas/cpld.json b/schemas/cpld.json
index f33c22b..df48c51 100644
--- a/schemas/cpld.json
+++ b/schemas/cpld.json
@@ -20,11 +20,10 @@
"type": "string"
},
"Type": {
- "description": "Supported CPLD devices, <vendor name><chip family>CPLD",
+ "description": "Supported CPLD devices, <vendor name><chip name>Firmware",
"enum": [
- "LatticeMachXO2Firmware",
- "LatticeMachXO3Firmware",
- "LatticeMachXO5Firmware"
+ "LatticeLCMXO3LF_2100CFirmware",
+ "LatticeLCMXO3LF_4300CFirmware"
]
}
},