summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/import/generic/memory/lib/utils/shared/mss_generic_consts.H48
1 files changed, 48 insertions, 0 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 2a896753..8f787b52 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
@@ -76,6 +76,15 @@ enum mcbist_common_consts
BG_SCRUB_IN_HOURS = 12,
CMD_TIMEBASE = 8192, ///< Represents the timebase multiplier for the MCBIST inter cmd gap
MAX_CMD_GAP = 4095, ///< Represents the maximum (non-multplied) time for MCBIST inter cmd gap
+
+
+ // MCBIST polling constant for actual HW
+ // The specific value here is not important, only that it is very large to avoid polling timeouts,
+ // but not to avoid any actual hardware timeouts
+ // Note: ~0 is not used as that would cause MCBIST to never timeout even if the hardware is in an infinite loop
+ // You can't get greater than ~0, so you'd never timeout
+ // TODO RTC:166340 - Clean up MCBIST polling
+ OVERLY_LARGE_NUMBER_OF_POLLS = 5000000000000,
};
///
@@ -263,6 +272,45 @@ enum states
NO_CHIP_SELECT_ACTIVE = 0xFF,
};
+
+enum port_select
+{
+ // Port selects for MCBIST and CCS
+ // Select for 1 port
+ PORT0 = 0b1000,
+ PORT1 = 0b0100,
+ PORT2 = 0b0010,
+ PORT3 = 0b0001,
+ // Selects for 2 port combinations
+ PORT01 = PORT0 | PORT1,
+ PORT02 = PORT0 | PORT2,
+ PORT03 = PORT0 | PORT3,
+ PORT12 = PORT1 | PORT2,
+ PORT13 = PORT1 | PORT3,
+ PORT23 = PORT2 | PORT3,
+ // Selects for 3 port combinations
+ PORT012 = PORT0 | PORT1 | PORT2,
+ PORT013 = PORT0 | PORT1 | PORT3,
+ PORT023 = PORT0 | PORT2 | PORT3,
+ PORT123 = PORT1 | PORT2 | PORT3,
+ // Select all
+ PORT0123 = PORT0 | PORT1 | PORT2 | PORT3,
+ // Maybe a better name for disabling all
+ PORT_NONE = 0b0000,
+};
+
+enum dimm_select
+{
+ // Dimm selects for MCBIST and CCS
+ // Select for 1 dimm
+ DIMM0 = 0b10,
+ DIMM1 = 0b01,
+ // Selects for 2 dimm combinations
+ DIMM01 = DIMM0 | DIMM1,
+ // Maybe a better name for disabling all
+ DIMM_NONE = 0b00,
+};
+
namespace mcbist
{
OpenPOWER on IntegriCloud