summaryrefslogtreecommitdiffstats
path: root/src/import/chips
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2019-08-22 17:56:05 -0500
committerRAJA DAS <rajadas2@in.ibm.com>2019-08-28 11:35:21 -0500
commit50895b93a8e4390b0990ee22824c8a5ee28ea9f8 (patch)
tree080af7d661c812144c3317dbb25d4adaae7e6e9d /src/import/chips
parent3225e80ab2f6392120b2874b5255d4eeb8306498 (diff)
downloadtalos-sbe-50895b93a8e4390b0990ee22824c8a5ee28ea9f8.tar.gz
talos-sbe-50895b93a8e4390b0990ee22824c8a5ee28ea9f8.zip
Introduce exp_getidec HWP
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>
Diffstat (limited to 'src/import/chips')
-rw-r--r--src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H
index 37a6f25b..a3c621fc 100644
--- a/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H
+++ b/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/shared/exp_consts.H
@@ -172,6 +172,22 @@ enum ecid_consts
};
///
+/// @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
///
enum generic_consts
OpenPOWER on IntegriCloud