Skip to content

Commit

Permalink
Introduce exp_getidec HWP
Browse files Browse the repository at this point in the history
This hardware procedure is used to read out the chipId and the EC
level of a given explorer ocmb. The chipId is an IBM standard that
provides information about what kind of chip it is and where it was
made. The EC is the write level of the chip. The initial plan was to
read all of this info from the CHIP_INFO register but we found that the
2nd nibble of the EC level , which represents the "minor" ec level, was
not populated correctly so we must instead read that value from the
EFUSE_OUT3 regsiter.

Change-Id: Id3dca4449c010ad42f7f3d55428b4efb3f6dfbf0
RTC: 214627
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82712
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Reviewed-by: Mark Pizzutillo <mark.pizzutillo@ibm.com>
Reviewed-by: Jennifer A Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82783
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
  • Loading branch information
crgeddes authored and RAJA DAS committed Aug 28, 2019
1 parent 3225e80 commit 50895b9
Showing 1 changed file with 16 additions and 0 deletions.
Expand Up @@ -171,6 +171,22 @@ enum ecid_consts
ATTR_ECID_SIZE = 2,
};

///
/// @brief constants for getidec procedure
///
enum idec_consts
{
EXPLR_CHIP_INFO_REG = 0x2134,
MAJOR_EC_BIT_START = 32,
MAJOR_EC_BIT_LENGTH = 4,
LOCATION_BIT_START = 44,
LOCATION_BIT_LENGTH = 4,
CHIPID_BIT_START = 56,
CHIPID_BIT_LENGTH = 8,
};



///
/// @brief generic explorer constants
///
Expand Down

0 comments on commit 50895b9

Please sign in to comment.