cpld: lattice: add LCMXO2-4000HC support
Added LatticeLCMXO2_4000HCFirmware with Device ID
{0x01, 0x2b, 0xc0, 0x43}.
Tested:
```
1. Check firmware info: (current version 00020400)
~$ curl -k -u root:0penBmc -X GET https://10.2.230.66/redfish/v1/UpdateService/FirmwareInventory/Catalina_HDD_cpld_825
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Catalina_HDD_cpld_825",
"@odata.type": "#SoftwareInventory.v1_1_0.SoftwareInventory",
"Description": "Other image",
"Id": "Catalina_HDD_cpld_825",
"Name": "Software Inventory",
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
},
"Updateable": true,
"Version": "00020400"
}
2. Trigger Update: (update to version 00020300)
~$ curl -k -u root:0penBmc \
-H "Content-Type:multipart/form-data" \
-X POST \
-F UpdateParameters="{\"Targets\":[\"/redfish/v1/UpdateService/FirmwareInventory/Catalina_HDD_cpld_825\"],\"@Redfish.OperationApplyTime\":\"OnReset\"};type=application/json" \
-F "UpdateFile=@catalina-hdd-cpld_00020300.pldm;type=application/octet-stream" \
https://10.2.230.66/redfish/v1/UpdateService/update-multipart
{
"@odata.id": "/redfish/v1/TaskService/Tasks/0",
"@odata.type": "#Task.v1_4_3.Task",
"HidePayload": false,
"Id": "0",
"Messages": [
{
"@odata.type": "#Message.v1_1_1.Message",
"Message": "The task with Id '0' has started.",
"MessageArgs": [
"0"
],
"MessageId": "TaskEvent.1.0.TaskStarted",
"MessageSeverity": "OK",
"Resolution": "None."
}
],
"Name": "Task 0",
"Payload": {
"HttpHeaders": [],
"HttpOperation": "POST",
"TargetUri": "/redfish/v1/UpdateService/update-multipart"
},
"PercentComplete": 0,
"StartTime": "2025-09-17T13:44:59+00:00",
"TaskMonitor": "/redfish/v1/TaskService/TaskMonitors/0",
"TaskState": "Running",
"TaskStatus": "OK"
}
3. After AC cycle check firmware info again:
~$ curl -k -u root:0penBmc -X GET https://10.2.230.66/redfish/v1/UpdateService/FirmwareInventory/Catalina_HDD_cpld_8961
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Catalina_HDD_cpld_8961",
"@odata.type": "#SoftwareInventory.v1_1_0.SoftwareInventory",
"Description": "Other image",
"Id": "Catalina_HDD_cpld_8961",
"Name": "Software Inventory",
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
},
"Updateable": true,
"Version": "00020300"
}
```
Change-Id: I5bdb68187b96737e8f2dac11340306f58cdc34a5
Signed-off-by: Cosmo Chou <cosmo.chou@quantatw.com>
diff --git a/cpld/lattice/lattice.hpp b/cpld/lattice/lattice.hpp
index 8df7d84..acb13f8 100644
--- a/cpld/lattice/lattice.hpp
+++ b/cpld/lattice/lattice.hpp
@@ -13,7 +13,8 @@
};
const std::map<std::string, cpldInfo> supportedDeviceMap = {
- {"LatticeLCMXO3D_9400Firmware", {"LCMXO3D-9400", {0x21, 0x2e, 0x30, 0x43}}},
+ {"LatticeLCMXO2_4000HCFirmware",
+ {"LCMXO2-4000HC", {0x01, 0x2b, 0xc0, 0x43}}},
{"LatticeLCMXO3LF_2100CFirmware",
{"LCMXO3LF-2100C", {0x61, 0x2b, 0xb0, 0x43}}},
{"LatticeLCMXO3LF_4300CFirmware",