summaryrefslogtreecommitdiffstats
path: root/src/import/generic/memory/lib/utils/shared
diff options
context:
space:
mode:
authorAndre Marin <aamarin@us.ibm.com>2019-01-07 16:10:52 -0600
committerRAJA DAS <rajadas2@in.ibm.com>2019-07-25 04:22:35 -0500
commit4338c9dbae87e12409dd6e531db6d8222fedf5a4 (patch)
tree8a4846c0d171cef5fa75d4a32f391e4d3d974154 /src/import/generic/memory/lib/utils/shared
parent0f8b9522c20f04d8dfd3bcbebeacb87d7f4ddb54 (diff)
downloadtalos-sbe-4338c9dbae87e12409dd6e531db6d8222fedf5a4.tar.gz
talos-sbe-4338c9dbae87e12409dd6e531db6d8222fedf5a4.zip
Generalize set fields in pre_data_init
Added a definition file for data engine traits for specialization purposes. Moved pre_data_engine definitions into a common templated version. Change-Id: Ifb204da9cc6eb9d5d36b6eaeb1e1a5e99c97544e Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69411 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Dev-Ready: ANDRE A. MARIN <aamarin@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80975 Reviewed-by: RAJA DAS <rajadas2@in.ibm.com> Tested-by: RAJA DAS <rajadas2@in.ibm.com>
Diffstat (limited to 'src/import/generic/memory/lib/utils/shared')
-rw-r--r--src/import/generic/memory/lib/utils/shared/mss_generic_consts.H33
1 files changed, 31 insertions, 2 deletions
diff --git a/src/import/generic/memory/lib/utils/shared/mss_generic_consts.H b/src/import/generic/memory/lib/utils/shared/mss_generic_consts.H
index 3feba0d2..b40ea052 100644
--- a/src/import/generic/memory/lib/utils/shared/mss_generic_consts.H
+++ b/src/import/generic/memory/lib/utils/shared/mss_generic_consts.H
@@ -130,8 +130,6 @@ enum generic_ffdc_codes
BASE_MODULE_TYPE = 0x101C,
BAD_SPD_DATA = 0x101D,
SET_FIELD = 0x101E,
-
- // mss_freq functions
SELECT_SUPPORTED_FREQ = 0x101F,
FREQ_SCOREBOARD_REMOVE_FREQS_ABOVE_LIMIT = 0x1020,
FREQ_SCOREBOARD_REMOVE_FREQS_ABOVE_LIMIT_VECTOR = 0x1021,
@@ -139,6 +137,12 @@ enum generic_ffdc_codes
FREQ_SCOREBOARD_MAX_SUPPORTED_FREQ = 0x1023,
FREQ_SCOREBOARD_SUPPORTED_FREQS = 0x1024,
LIMIT_FREQ_BY_VPD = 0x1025,
+ SET_DIMM_TYPE = 0x1026,
+ SET_DRAM_GEN = 0x1027,
+ SET_HYBRID = 0x1027,
+ SET_HYBRID_MEDIA = 0x1028,
+ SET_MRANKS = 0x1029,
+ SET_DIMM_RANKS_CNFG = 0x1039,
};
///
@@ -311,6 +315,31 @@ struct procTraits<proc_type::AXONE>
};
};
+///
+/// @brief Trait classes for proc_type
+///
+template< proc_type P >
+class procTraits;
+
+///
+/// @brief Trait classes for proc_type - NIMBUS specialization
+///
+template< >
+struct procTraits<proc_type::NIMBUS>
+{
+ enum
+ {
+ MC_PER_MODULE = 2,
+ MCS_PER_MC = 2,
+ MCS_PER_PROC = MC_PER_MODULE * MCS_PER_MC,
+ PORTS_PER_MCBIST = 4,
+ PORTS_PER_MCS = 2,
+ DIMMS_PER_PORT = 2,
+ DIMMS_PER_MCS = PORTS_PER_MCS * DIMMS_PER_PORT,
+ DIMMS_PER_MCBIST = PORTS_PER_MCBIST * DIMMS_PER_PORT,
+ };
+};
+
}// mss
#endif
OpenPOWER on IntegriCloud