Skip to content

Commit

Permalink
UCD attribute and targeting updates
Browse files Browse the repository at this point in the history
Change-Id: I6e9f237b421f4eadac8c000784548cf5880582bd
RTC: 201991
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71891
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>
  • Loading branch information
Matt Raybuck authored and dcrowell77 committed Mar 11, 2019
1 parent 4636db0 commit 4b29a11
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 1 deletion.
67 changes: 66 additions & 1 deletion src/usr/targeting/common/xmltohb/attribute_types.xml
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,13 @@
<value>10</value>
</enumerator>
<enumerator>
<name>MAX</name>
<name>ASIC</name>
<value>11</value>
</enumerator>
<enumerator>
<name>MAX</name>
<value>12</value>
</enumerator>
<id>CLASS</id>
</enumerationType>

Expand Down Expand Up @@ -2491,6 +2495,61 @@
</simpleType>
</attribute>

<attribute>
<id>I2C_CONTROL_INFO</id>
<description>Information needed to address an I2C slave device</description>
<complexType>
<description>Structure to define addressing this I2C slave device.
</description>
<field>
<default>physical:sys-0</default>
<description>Entity path to the chip that contains the I2C master
</description>
<name>i2cMasterPath</name>
<type>EntityPath</type>
</field>
<field>
<default>0x80</default>
<description>I2C master engine. This is a 2-bit value.</description>
<name>engine</name>
<type>uint8_t</type>
</field>
<field>
<default>0x80</default>
<description>Port from the I2C Master device. This is a 6-bit value.
</description>
<name>port</name>
<type>uint8_t</type>
</field>
<field>
<default>0x80</default>
<description>Device address on the I2C bus. This is a 7-bit value,
but then shifted 1 bit left.</description>
<name>devAddr</name>
<type>uint8_t</type>
</field>
<field>
<default>0xFF</default>
<description>Determines which of the N selectable buses the I2C mux for
this device
must enable to connect this device to its I2C master, if applicable.
0xFF indicates no I2C mux present or N/A.</description>
<name>i2cMuxBusSelector</name>
<type>uint8_t</type>
</field>
<field>
<!-- NOTE: physical:sys-0 implies that there is no mux in
the bus path for this part. -->
<default>physical:sys-0</default>
<description>Entity path of the I2C mux for this device, if any.</description>
<name>i2cMuxPath</name>
<type>EntityPath</type>
</field>
</complexType>
<persistency>non-volatile</persistency>
<readable/>
</attribute>

<attribute>
<complexType>
<description>Structure which defines which I2C access method to use at
Expand Down Expand Up @@ -3788,6 +3847,12 @@
<enumerator>
<name>PCA9847</name>
</enumerator>
<enumerator>
<name>UCD9090</name>
</enumerator>
<enumerator>
<name>UCD90120A</name>
</enumerator>
<id>MODEL</id>
</enumerationType>

Expand Down
47 changes: 47 additions & 0 deletions src/usr/targeting/common/xmltohb/target_types.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
<!-- -->
<!-- IBM_PROLOG_END_TAG -->
<attributes>
<targetType>
<id>asic</id>
<parent>base</parent>
<attribute>
<id>CLASS</id>
<default>ASIC</default>
</attribute>
</targetType>

<targetType>
<id>base</id>
<attribute>
Expand Down Expand Up @@ -147,6 +156,14 @@
<parent>chip-tpm-cectpm</parent>
</targetType>

<!-- This special UCD target adapts the MRW to Hostboot's specific UCD
target. All attributes should be declared against the parent
target. -->
<targetType>
<id>chip-UCD9090</id>
<parent>ucd9090</parent>
</targetType>

<targetType>
<id>chip-bmc-ast2500</id>
<parent>sp</parent>
Expand Down Expand Up @@ -1109,6 +1126,18 @@
</attribute>
</targetType>

<targetType>
<id>i2c-power-sequencer</id>
<parent>asic</parent>
<attribute>
<id>I2C_CONTROL_INFO</id>
</attribute>
<attribute>
<id>TYPE</id>
<default>POWER_SEQUENCER</default>
</attribute>
</targetType>

<targetType>
<id>i2c_mux_pca9847</id>
<parent>chip</parent>
Expand Down Expand Up @@ -1872,6 +1901,24 @@
</attribute>
</targetType>

<targetType>
<id>ucd90120a</id>
<parent>i2c-power-sequencer</parent>
<attribute>
<id>MODEL</id>
<default>UCD90120A</default>
</attribute>
</targetType>

<targetType>
<id>ucd9090</id>
<parent>i2c-power-sequencer</parent>
<attribute>
<id>MODEL</id>
<default>UCD9090</default>
</attribute>
</targetType>

<targetType>
<id>unit</id>
<parent>base</parent>
Expand Down

0 comments on commit 4b29a11

Please sign in to comment.