From 13627efca35d5049af0bafc72982deb4ac21bd5e Mon Sep 17 00:00:00 2001 From: Christian Geddes Date: Wed, 24 Oct 2018 10:47:24 -0500 Subject: Add exp_i2c_scom driver that will be consumed by HB/SBE platforms This commit adds a new exp_i2c_scom.H file which contains two functions, i2c_get_scom and i2c_put_scom. These functions will take in a fapi2 OCMB target, an address and a buffer that either contains scom data to write or space for scom data to be written to. The functions use the fapi2::puti2c / fapi2::geti2c interfaces to perform the scoms. Change-Id: I92ac697e9ec4d392e1f382e057fbbf8915b78212 Original-Change-Id: I4de680e187258cbfc57dd71f698dc1fc8760cefb RTC:196806 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67949 Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: Louis Stermole Reviewed-by: STEPHEN GLANCY Reviewed-by: Jennifer A. Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/86610 Tested-by: FSP CI Jenkins Reviewed-by: RAJA DAS --- .../xml/error_info/exp_i2c_scom_errors.xml | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/import/chips/ocmb/explorer/procedures/xml/error_info/exp_i2c_scom_errors.xml diff --git a/src/import/chips/ocmb/explorer/procedures/xml/error_info/exp_i2c_scom_errors.xml b/src/import/chips/ocmb/explorer/procedures/xml/error_info/exp_i2c_scom_errors.xml new file mode 100644 index 00000000..0f90f2b8 --- /dev/null +++ b/src/import/chips/ocmb/explorer/procedures/xml/error_info/exp_i2c_scom_errors.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + RC_I2C_GET_SCOM_INVALID_READ_SIZE + + First Byte data returned from the i2c register read contains + the size of the remaining bytes returned. This should match + the number of bytes we requested. + + TARGET + ADDRESS + SIZE_RETURNED + SIZE_REQUESTED + + + + RC_I2C_SCOM_EXPECTED_IBM_INDICATOR + + First Byte of the address passed to i2c_scom operation did not match + what was required for IBM scom. I2c scoms associated with 64 bits of + are assumed to be IBM scoms and must have 0x08 set in the first byte + of the address. + + TARGET + ADDRESS + + + + RC_I2C_SCOM_UNEXPECTED_IBM_INDICATOR + + First Byte of the address passed to i2c_scom operation had 0x08 set which + indicates IBM scom. But the data associated with the address does not + match IBM scom data size. + + TARGET + ADDRESS + + + -- cgit v1.2.1