diff options
author | Bill Schwartz <whs@us.ibm.com> | 2015-12-07 09:10:50 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-12-09 17:50:16 -0600 |
commit | 74e0b5af5c3dea3e748c9383e4b24c2f01a7b1bb (patch) | |
tree | 0c7ed0bc4eb42cf29b1a19267866d32563ea31f0 /src/usr/hwpf/plat | |
parent | cc8eb026f1e16e9b810797d831dc47b614cffc05 (diff) | |
download | talos-hostboot-74e0b5af5c3dea3e748c9383e4b24c2f01a7b1bb.tar.gz talos-hostboot-74e0b5af5c3dea3e748c9383e4b24c2f01a7b1bb.zip |
No RCD CNTRL words for DDR4 RDIMMs
Return 0 for DDR4 RDIMMS for ATTR_SPD_DIMM_RCD_CNTL_WORD_0_15
Change-Id: I15d99e5b87035f30a9a068cdeb52d7db4be37651
RTC: 137707
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22498
Tested-by: Jenkins Server
Tested-by: Jenkins OP Build CI
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: Jenkins OP HW
Tested-by: FSP CI Jenkins
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/plat')
-rw-r--r-- | src/usr/hwpf/plat/fapiPlatAttributeService.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatAttributeService.C b/src/usr/hwpf/plat/fapiPlatAttributeService.C index 82e7afd41..25953f24b 100644 --- a/src/usr/hwpf/plat/fapiPlatAttributeService.C +++ b/src/usr/hwpf/plat/fapiPlatAttributeService.C @@ -1800,6 +1800,26 @@ fapi::ReturnCode fapiPlatGetRCDCntlWord015(const fapi::Target * i_pFapiTarget, if (l_dimmType == ENUM_ATTR_SPD_MODULE_TYPE_RDIMM) { + ATTR_SPD_DRAM_DEVICE_TYPE_Type l_spd_dramtype = + ENUM_ATTR_SPD_DRAM_DEVICE_TYPE_DDR3; + + l_rc = FAPI_ATTR_GET(ATTR_SPD_DRAM_DEVICE_TYPE, + i_pFapiTarget, + l_spd_dramtype); + if (l_rc) + { + FAPI_ERR("fapiPlatGetRCDCntlWord015: Error from get" + " ATTR_SPD_DRAM_DEVICE_TYPE"); + break; + } + + // Not defined for DDR4 + if (ENUM_ATTR_SPD_DRAM_DEVICE_TYPE_DDR4 == l_spd_dramtype) + { + o_val = 0; + break; + } + TARGETING::Target* l_pTarget = NULL; l_rc = getTargetingTarget(i_pFapiTarget, l_pTarget, TARGETING::TYPE_DIMM); if (l_rc) |