[bmcweb] Add DDR5 support in bmcweb
Memory Device Type support wasn't there for DDR5 type dimm.
Added code for the same as per latest SMBIOS spec DSP0134
version 3.4.0.
Tested:
Get of https://BMC-IP/redfish/v1/Systems/system/Memory/dimm gives
correct values.
"MemoryDeviceType": "DDR5",
"MemoryType": "DRAM"
Signed-off-by: Mansi Joshi <mansi.joshi@linux.intel.com>
Change-Id: I7c3590f3f0a1e17ea9f44736ced8a4f22d211411
diff --git a/redfish-core/lib/memory.hpp b/redfish-core/lib/memory.hpp
index 62d5933..2d647dc 100644
--- a/redfish-core/lib/memory.hpp
+++ b/redfish-core/lib/memory.hpp
@@ -56,6 +56,10 @@
{
return "DDR4E_SDRAM";
}
+ if (memoryType == "xyz.openbmc_project.Inventory.Item.Dimm.DeviceType.DDR5")
+ {
+ return "DDR5";
+ }
if (memoryType ==
"xyz.openbmc_project.Inventory.Item.Dimm.DeviceType.LPDDR4_SDRAM")
{
@@ -134,6 +138,7 @@
// FBD2
// LPDDR_SDRAM
// LPDDR2_SDRAM
+ // LPDDR5_SDRAM
return "";
}