diff options
author | Christian Geddes <crgeddes@us.ibm.com> | 2018-12-18 15:59:07 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-01-11 09:40:39 -0600 |
commit | caa8eda59c2c9adfdf42285cec38eae64f560916 (patch) | |
tree | e9f349c9995fabe3ef25d89a6b6e234550c898ac /src/include/usr/i2c | |
parent | b95e95e56ed7bbaa981b0bf4a861a1b305711c4e (diff) | |
download | talos-hostboot-caa8eda59c2c9adfdf42285cec38eae64f560916.tar.gz talos-hostboot-caa8eda59c2c9adfdf42285cec38eae64f560916.zip |
Add presence detection for i2c mux targets
This commit removes the ddimm.C file that had the deviceFramework
routing for OCMB presence detection and replaces it with a new file
in src/usr/i2c/i2cTargetPres.C that is more generic for any target
that has the FAPI_I2C_CONTROLLER_INFO attribute. The i2c_mux target
also now uses this same code for its presence detection.
As a result of this change the src/usr/i2c/mux_i2c.* files have
also been removed. When getting rid of the ddimm.C file I had to put
the IDEC device routing somewhere else so I moved it to the hwasPlat
code where the other IDEC device routes are registered.
RTC: 196805
Change-Id: I27e5e3e8d0fe107c3d44a450e20efa6f50fa0c5f
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69944
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Roland Veloz <rveloz@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/i2c')
-rw-r--r-- | src/include/usr/i2c/i2creasoncodes.H | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/usr/i2c/i2creasoncodes.H b/src/include/usr/i2c/i2creasoncodes.H index e17b057ef..6b08aefc2 100644 --- a/src/include/usr/i2c/i2creasoncodes.H +++ b/src/include/usr/i2c/i2creasoncodes.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2018 */ +/* Contributors Listed Below - COPYRIGHT 2011,2019 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -65,6 +65,7 @@ enum i2cModuleId FAPI_I2C_PERFORM_OP = 0x0F, READ_I2C_ATTRIBUTES = 0x10, I2C_ACCESS_MUX = 0x11, + I2C_GENERIC_PRES_DETECT = 0x12, }; @@ -98,6 +99,8 @@ enum i2cReasonCode INVALID_MASTER_TARGET = I2C_COMP_ID | 0x13, // Master I2C target not valid I2C_MUX_TARGET_NOT_FOUND = I2C_COMP_ID | 0x14, // The MUX target is not valid (null) I2C_MUX_TARGET_NON_FUNCTIONAL = I2C_COMP_ID | 0x15, // The MUX target is non functional + I2C_INVALID_LENGTH = I2C_COMP_ID | 0x16, // Invalid data buffer length passed to function + I2C_NULL_MASTER_TARGET = I2C_COMP_ID | 0x17, // Target Service's toPath() returned nullptr for target }; |