diff options
author | Mansi Joshi <mansi.joshi@linux.intel.com> | 2021-07-19 12:03:27 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2021-07-20 03:29:05 +0300 |
commit | 11a2f0f0186983d5939351c276c60b054c059c5a (patch) | |
tree | e42e5e104d98cd2fe28d21d647300fe45aea4aa1 /redfish-core/lib/memory.hpp | |
parent | ba95fcc4f762f15c5fd8a20dcfa0cb38c06c86ab (diff) | |
download | bmcweb-11a2f0f0186983d5939351c276c60b054c059c5a.tar.xz |
[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
Diffstat (limited to 'redfish-core/lib/memory.hpp')
-rw-r--r-- | redfish-core/lib/memory.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/redfish-core/lib/memory.hpp b/redfish-core/lib/memory.hpp index 62d5933c08..2d647dcb57 100644 --- a/redfish-core/lib/memory.hpp +++ b/redfish-core/lib/memory.hpp @@ -56,6 +56,10 @@ inline std::string translateMemoryTypeToRedfish(const std::string& memoryType) { 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 @@ inline std::string translateMemoryTypeToRedfish(const std::string& memoryType) // FBD2 // LPDDR_SDRAM // LPDDR2_SDRAM + // LPDDR5_SDRAM return ""; } |