diff options
author | Andre Marin <aamarin@us.ibm.com> | 2019-01-07 16:10:52 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-02-05 17:01:13 -0600 |
commit | 605baad67443c4c282d322115e4d5edbaf118d3a (patch) | |
tree | 4bfa268e3a1710a2dbf7b9c2cd2ade435c1a0d8c /src/import/generic/memory/lib/utils/shared/mss_generic_consts.H | |
parent | 79fc8b675dfdca19c0f271d938c16dc2aa8911e4 (diff) | |
download | talos-hostboot-605baad67443c4c282d322115e4d5edbaf118d3a.tar.gz talos-hostboot-605baad67443c4c282d322115e4d5edbaf118d3a.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/69423
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/generic/memory/lib/utils/shared/mss_generic_consts.H')
-rw-r--r-- | src/import/generic/memory/lib/utils/shared/mss_generic_consts.H | 33 |
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 25d4c5c37..c9049b7f6 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 @@ -123,8 +123,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, @@ -132,6 +130,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, }; /// @@ -255,6 +259,31 @@ enum nibble_mask }; +/// +/// @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 |