summaryrefslogtreecommitdiffstats
path: root/src/import
diff options
context:
space:
mode:
authorStephen Glancy <sglancy@us.ibm.com>2018-08-02 16:35:37 -0500
committerRaja Das <rajadas2@in.ibm.com>2019-07-26 00:52:09 -0500
commit856ef301ba842e7ac87c705ab1864677858bf334 (patch)
tree7962088a1f8a6b1a8def3dce4b4ff30643b764fb /src/import
parent5fb7dbd2217c2e57346709ef7d30515527c9970f (diff)
downloadtalos-sbe-856ef301ba842e7ac87c705ab1864677858bf334.tar.gz
talos-sbe-856ef301ba842e7ac87c705ab1864677858bf334.zip
Moves conversions to be in the generic code space
Change-Id: Icb3869f524ad57bc64136cca160e3bb5c361662d Original-Change-Id: Id0270a97066a06615b165ccd8c84e444d134394e Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/63845 Dev-Ready: STEPHEN GLANCY <sglancy@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'src/import')
-rw-r--r--src/import/generic/memory/lib/utils/shared/mss_generic_consts.H66
1 files changed, 48 insertions, 18 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 356179a7..8c3498c2 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
@@ -43,20 +43,6 @@ namespace mss
{
///
-/// @brief Common conversions
-///
-enum conversions
-{
- CONVERT_PS_IN_A_NS = 1000, ///< 1000 pico in an nano
- CONVERT_PS_IN_A_US = 1000000, ///< 1000000 picos in a micro
- MHZ_TO_KHZ = 1000,
- SEC_IN_HOUR = 60 * 60, ///< seconds in an hour, used for scrub times
- NIBBLES_PER_BYTE = 2,
- BITS_PER_NIBBLE = 4,
- BITS_PER_BYTE = 8,
-};
-
-///
/// @brief FFDC generic codes
///
enum generic_ffdc_codes
@@ -93,8 +79,8 @@ enum generic_ffdc_codes
TWTR_L_MIN = 0x101A,
DEVICE_TYPE = 0x101B,
BASE_MODULE_TYPE = 0x101C,
- BAD_SPD_DATA = 0x101C,
- SET_FIELD = 0x101D,
+ BAD_SPD_DATA = 0x101D,
+ SET_FIELD = 0x101E,
};
///
@@ -107,10 +93,22 @@ enum proc_type
};
///
-/// @brief JEDEC supported DDR4 speeds
+/// @brief Supported memory controller types
+///
+enum class mc_type
+{
+ NIMBUS,
+ CENTAUR,
+ EXPLORER,
+};
+
+///
+/// @brief JEDEC supported DDR speeds
+/// @note Includes DDR4 and DDR5 only
///
-enum ddr4_dimm_speeds
+enum ddr_dimm_speeds
{
+ // Supported frequencies
DIMM_SPEED_1600 = 1600,
DIMM_SPEED_1866 = 1866,
DIMM_SPEED_2133 = 2133,
@@ -118,6 +116,16 @@ enum ddr4_dimm_speeds
DIMM_SPEED_2666 = 2666,
DIMM_SPEED_2933 = 2933,
DIMM_SPEED_3200 = 3200,
+ DIMM_SPEED_3600 = 3600,
+ DIMM_SPEED_4000 = 4000,
+ DIMM_SPEED_4400 = 4400,
+ DIMM_SPEED_4800 = 4800,
+
+ // Max/Mins for specific generations here
+ DDR4_MIN_SPEED = 1600,
+ DDR4_MAX_SPEED = 3200,
+ DDR5_MIN_SPEED = 3200,
+ DDR5_MAX_SPEED = 4800,
};
namespace spd
@@ -182,6 +190,28 @@ enum guard_band : uint16_t
};
}// spd
+
+enum conversions
+{
+ NIBBLES_PER_BYTE = 2,
+ BITS_PER_NIBBLE = 4,
+ BITS_PER_BYTE = 8,
+
+ CONVERT_PS_IN_A_NS = 1000, ///< 1000 pico in an nano
+ CONVERT_PS_IN_A_US = 1000000, ///< 1000000 picos in a micro
+
+ DELAY_1NS = 1,
+ DELAY_10NS = 10 , ///< general purpose 10 ns delay for HW mode
+ DELAY_100NS = 100, ///< general purpose 100 ns delay for HW mode
+ DELAY_1US = 1000, ///< general purpose 1 usec delay for HW mode
+ DELAY_10US = 10000, ///< general purpose 1 usec delay for HW mode
+ DELAY_100US = 100000, ///< general purpose 100 usec delay for HW mode
+ DELAY_1MS = 1000000, ///< general purpose 1 ms delay for HW mode
+
+ MHZ_TO_KHZ = 1000,
+ SEC_IN_HOUR = 60 * 60, ///< seconds in an hour, used for scrub times
+};
+
}// mss
#endif
OpenPOWER on IntegriCloud