Skip to content

Commit

Permalink
Move the mcbist lab library to generic folder
Browse files Browse the repository at this point in the history
Change-Id: I8fd2d1d1c48e08d4f34aecde34803a9126ac6b4d
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75283
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-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: STEPHEN GLANCY <sglancy@us.ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/81004
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Tested-by: RAJA DAS <rajadas2@in.ibm.com>
  • Loading branch information
alvintpwang authored and RAJA DAS committed Jul 25, 2019
1 parent a19089e commit 37a8bf5
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions src/import/generic/memory/lib/utils/shared/mss_generic_consts.H
Expand Up @@ -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,
};

///
Expand Down Expand Up @@ -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
{

Expand Down

0 comments on commit 37a8bf5

Please sign in to comment.