summaryrefslogtreecommitdiffstats
path: root/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H
diff options
context:
space:
mode:
authorAndre Marin <aamarin@us.ibm.com>2017-03-27 23:52:06 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-04-02 14:56:58 -0400
commit6a9cd8f6f1156c592429c84eaf8d04438977e050 (patch)
tree75d87d47a526d38b24c98f0f59bd42f6c88a9656 /src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H
parent3e8219fc02716052fd25528dd4541646bc5078ff (diff)
downloadtalos-hostboot-6a9cd8f6f1156c592429c84eaf8d04438977e050.tar.gz
talos-hostboot-6a9cd8f6f1156c592429c84eaf8d04438977e050.zip
Change base decoder, add ddr4 namespace, and common API btw modules
Change-Id: I78b8b929e3136e3edec646321e0d8bb32229911d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38506 Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Brian R. Silver <bsilver@us.ibm.com> Reviewed-by: JACOB L. HARVEY <jlharvey@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38507 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H')
-rw-r--r--src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H b/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H
index 32d4c6245..5f85c7105 100644
--- a/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H
+++ b/src/import/generic/memory/lib/spd/lrdimm/ddr4/lrdimm_decoder_ddr4.H
@@ -24,7 +24,7 @@
/* IBM_PROLOG_END_TAG */
///
-/// @file lrdimm_decoder.H
+/// @file lrdimm_decoder_ddr4.H
/// @brief LRDIMM module SPD decoder declarations
///
// *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com>
@@ -34,8 +34,8 @@
// *HWP Consumed by: HB:FSP
-#ifndef _MSS_LRDIMM_DECODER_H_
-#define _MSS_LRDIMM_DECODER_H_
+#ifndef _MSS_LRDIMM_DECODER_DDR4_H_
+#define _MSS_LRDIMM_DECODER_DDR4_H_
#include <fapi2.H>
#include <vector>
@@ -45,6 +45,8 @@ namespace mss
{
namespace spd
{
+namespace ddr4
+{
namespace lrdimm
{
@@ -57,6 +59,11 @@ class decoder_v1_0 : public dimm_module_decoder
const fapi2::Target<fapi2::TARGET_TYPE_DIMM> iv_target;
+ public:
+
+ // First field - SPD byte
+ // Second field - start bit
+ // Third field - bit length
constexpr static field_t MODULE_NOMINAL_HEIGHT{128, 3, 5};
constexpr static field_t RAW_CARD_EXTENSION{128, 0, 3};
@@ -97,7 +104,6 @@ class decoder_v1_0 : public dimm_module_decoder
constexpr static field_t DATA_BUFFER_GAIN_ADJUST{156, 7, 1};
constexpr static field_t DATA_BUFFER_DFE{156, 6, 1};
- public:
// Allows injection of errors for testing
// TK - Consider API change to use setter/getters
// for this instance variable, RDIMM decoder
@@ -664,7 +670,9 @@ class decoder_v1_2 : public decoder_v1_1
};
}// lrdimm
+}// ddr4
}// spd
}// mss
-#endif //_MSS_LRDIMM_DECODER_H_
+
+#endif //_MSS_LRDIMM_DECODER_DDR4_H_
OpenPOWER on IntegriCloud