summaryrefslogtreecommitdiffstats
path: root/src/import/generic
diff options
context:
space:
mode:
authorAndre Marin <aamarin@us.ibm.com>2017-05-11 11:28:21 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-05-25 15:40:26 -0400
commitc00a806435284d3ffd4eb1e6e1142ac8723a8ab2 (patch)
treef9bcc5b5a2975558553371a1fb3f7d6652858194 /src/import/generic
parent4d9e5a4a231d2a4a14231bc5a01d4590cb88d96d (diff)
downloadtalos-hostboot-c00a806435284d3ffd4eb1e6e1142ac8723a8ab2.tar.gz
talos-hostboot-c00a806435284d3ffd4eb1e6e1142ac8723a8ab2.zip
Remove ZQCAL redundant CCS inst, move to draminit_training
Lab requested to move ZQCL to draminit_training to control (with granularity) all enabled cal steps from an attribute in training. Also removing redundant ZQCAL being sent out for both a-side/b-side and addr_mirroring since this only applies to MRS cmds. Added new attribute proposal for CAL_STEPS_ENABLE to account for LRDIMM training steps and more control bits such as INITIAL_PAT_WR and WR_VRE_LATCH Change-Id: Ibb758af74966a5dd659bf3dda86f283f73956bca Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38648 Reviewed-by: Louis Stermole <stermole@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: JACOB L. HARVEY <jlharvey@us.ibm.com> Reviewed-by: Matt K. Light <mklight@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38650 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/import/generic')
-rw-r--r--src/import/generic/memory/lib/utils/mss_math.H30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/import/generic/memory/lib/utils/mss_math.H b/src/import/generic/memory/lib/utils/mss_math.H
index 2c587384e..b4eca9485 100644
--- a/src/import/generic/memory/lib/utils/mss_math.H
+++ b/src/import/generic/memory/lib/utils/mss_math.H
@@ -22,3 +22,33 @@
/* permissions and limitations under the License. */
/* */
/* IBM_PROLOG_END_TAG */
+// *HWP HWP Owner: Andre Marin <aamarin@us.ibm.com>
+// *HWP HWP Backup: Jacob Harvey <jlharvey@us.ibm.com>
+// *HWP Team: Memory
+// *HWP Level: 3
+// *HWP Consumed by: FSP:HB
+
+#ifndef _MSS_MATH_H_
+#define _MSS_MATH_H_
+
+#include <cstdint>
+
+namespace mss
+{
+///
+/// @brief Calculates inclusive range
+/// @tparam T input and output type
+/// @param[in] i_start starting point
+/// @param[in] i_end ending point
+/// @return inclusive range calculation
+///
+// TODO RTC:174277 - create unit test structure for generic/memory
+template<typename T >
+inline constexpr T inclusive_range( const T i_start, const T i_end)
+{
+ return (i_end - i_start) + 1;
+}
+
+}// mss
+
+#endif
OpenPOWER on IntegriCloud