summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common
diff options
context:
space:
mode:
authorChristian Geddes <crgeddes@us.ibm.com>2019-10-16 10:10:34 -0500
committerWilliam G Hoffa <wghoffa@us.ibm.com>2019-11-01 15:41:41 -0500
commit632582f105da7a546708c4f9705761948d7688fa (patch)
treef76238e3071d6d7b39459b17eb83796aca6c95a1 /src/usr/targeting/common
parent3f41702fbfd6a5c4f4de9eabedf1d8acb801ae20 (diff)
downloadtalos-hostboot-632582f105da7a546708c4f9705761948d7688fa.tar.gz
talos-hostboot-632582f105da7a546708c4f9705761948d7688fa.zip
Allow dynmic i2c device addresses and set up PMIC targets to do this
Depending on which vendor made a given OCMB the i2c device address of the PMIC targets on the OCMB will be different. To account for this we have added a new DYNAMIC_DEVICE_ADDRESS attribute. This attribute is filled out on the PMIC target by looking at the SPD on parent OCMB chip. This means that we must do presence detection on the OCMB prior to the the PMIC targets. While doing i2c operations if a given target has the DYNAMIC_DEVICE_ADDRESS we will use that over the devAddr in the any complex i2c attribute for that target. Change-Id: I22a185a65c064a1514751dd5828547c57af98df1 RTC: 209714 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/85394 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: Daniel M Crowell <dcrowell@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: William G Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common')
-rwxr-xr-xsrc/usr/targeting/common/xmltohb/attribute_types_hb.xml15
-rw-r--r--src/usr/targeting/common/xmltohb/target_types_hb.xml8
2 files changed, 23 insertions, 0 deletions
diff --git a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
index 4910ca681..3e651b498 100755
--- a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
+++ b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml
@@ -175,6 +175,21 @@
</attribute>
<attribute>
+ <id>DYNAMIC_I2C_DEVICE_ADDRESS</id>
+ <description>
+ This attribute is used when a given target could have different
+ i2c device addresses depending on which manufacture's device we
+ are using.
+ </description>
+ <simpleType>
+ <uint8_t/>
+ </simpleType>
+ <persistency>volatile-zeroed</persistency>
+ <readable/>
+ <writeable/>
+ </attribute>
+
+ <attribute>
<id>EARLY_TESTCASES_ISTEP</id>
<description>
Indicates which istep we should execute the CXX testcases after, if
diff --git a/src/usr/targeting/common/xmltohb/target_types_hb.xml b/src/usr/targeting/common/xmltohb/target_types_hb.xml
index 03ae7a01d..26cf81f6f 100644
--- a/src/usr/targeting/common/xmltohb/target_types_hb.xml
+++ b/src/usr/targeting/common/xmltohb/target_types_hb.xml
@@ -266,6 +266,14 @@
</targetTypeExtension>
<targetTypeExtension>
+ <id>pmic</id>
+ <attribute>
+ <id>DYNAMIC_I2C_DEVICE_ADDRESS</id>
+ <default>0</default>
+ </attribute>
+ </targetTypeExtension>
+
+ <targetTypeExtension>
<id>sys-sys-power9</id>
<attribute>
<id>ALLOW_ATTR_OVERRIDES_IN_SECURE_MODE</id>
OpenPOWER on IntegriCloud