From eace166aa1ef265712798d84f10782f7bc430be7 Mon Sep 17 00:00:00 2001 From: Mike Baiocchi Date: Thu, 12 Sep 2019 11:12:10 -0500 Subject: Support GPIO Physical Presence Detect Devices This commit makes the necessary changes to support the GPIO devices used for physical presence detection: - New attribute GPIO_INFO_PHYS_PRES - Enable GPIO Device Driver by default - GPIO Device Driver updated to support new device type - Added new GPIO PCA9551 layer to sit on top of GPIO Device Driver Change-Id: I952007503eb5d9fe873adea2eaaeccff21ae18a6 RTC:211220 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/84655 Reviewed-by: Ilya Smirnov Reviewed-by: Christopher J Engel Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Nicholas E Bofferding --- .../common/xmltohb/attribute_types_hb.xml | 72 ++++++++++++++++++++++ .../targeting/common/xmltohb/target_types_hb.xml | 3 + 2 files changed, 75 insertions(+) (limited to 'src/usr/targeting/common') diff --git a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml index 3e651b498..8be123d99 100755 --- a/src/usr/targeting/common/xmltohb/attribute_types_hb.xml +++ b/src/usr/targeting/common/xmltohb/attribute_types_hb.xml @@ -325,6 +325,78 @@ + + GPIO_INFO_PHYS_PRES + Information needed to address GPIO device that corresponds + to the Physical Presence Detect circuit + + Structure to define the addessing for an I2C + slave device. + + i2cMasterPath + Entity path to the chip that contains the I2C + master + EntityPath + physical:sys-0/node-0/proc-0 + + + port + Port from the I2C Master device. This is a 6-bit + value. + uint8_t + 0 + + + devAddr + Device address on the I2C bus. This is a 7-bit value, + but then shifted 1 bit left. + uint8_t + 0xC0 + + + engine + I2C master engine. This is a 2-bit + value. + uint8_t + 2 + + + windowOpenPin + Logical GPIO pin number used to open or close the physcial + presence window + uint8_t + 0 + + + physicalPresencePin + Logical GPIO pin number used to determine if physical + presence was asserted + uint8_t + 1 + + + + 0xFF + Determines which of the N selectable buses the mux + will connect to. OxFF indicates no mux present + or N/A. + i2cMuxBusSelector + uint8_t + + + + + physical:sys-0 + Entity path to the I2C mux for this device. + i2cMuxPath + EntityPath + + + non-volatile + + + diff --git a/src/usr/targeting/common/xmltohb/target_types_hb.xml b/src/usr/targeting/common/xmltohb/target_types_hb.xml index 26cf81f6f..080fbecae 100644 --- a/src/usr/targeting/common/xmltohb/target_types_hb.xml +++ b/src/usr/targeting/common/xmltohb/target_types_hb.xml @@ -115,6 +115,9 @@ FSI_SCOM_MUTEX + + GPIO_INFO_PHYS_PRES + HBRT_HYP_ID -- cgit v1.2.1