summaryrefslogtreecommitdiffstats
path: root/src/import/chips/ocmb/explorer/procedures/hwp/memory/lib
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2019-08-22 17:56:05 -0500
committerChristian R Geddes <crgeddes@us.ibm.com>2019-08-29 10:45:04 -0500
commit3bbc07ee063d5d884708b25c888f7dc9e5a0e812 (patch)
treef69259c12be6ac69c2f3bba5bc8a864685feff05 /src/import/chips/ocmb/explorer/procedures/hwp/memory/lib
parent6c4acfedfe4f7ef3a00dd9457b4ad15eca1003ce (diff)
downloadtalos-hostboot-3bbc07ee063d5d884708b25c888f7dc9e5a0e812.tar.gz
talos-hostboot-3bbc07ee063d5d884708b25c888f7dc9e5a0e812.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/82784 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/chips/ocmb/explorer/procedures/hwp/memory/lib')
-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 dab2bbf2a..e788d8bcd 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