meta-zaius: Add PCIE E2B present sensor
The GPIO E7 is used to check if PCIE E2B is connected with a riser card.
Add a sensor for this card and provide IPMI response for the sensor.
Change-Id: Ie63a633c0c4eb5a88039a0087c2fd471e38f87af
Signed-off-by: Lei YU <mine260309@gmail.com>
diff --git a/meta-zaius/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%/config.yaml b/meta-zaius/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%/config.yaml
index 66ec993..a318f53 100755
--- a/meta-zaius/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%/config.yaml
+++ b/meta-zaius/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory%/config.yaml
@@ -154,3 +154,17 @@
assert: true
deassert: false
type: bool
+0xFC:
+ sensorType: 0xCD
+ path: /system/chassis/pcie_e2b_present
+ sensorReadingType: 0x03
+ serviceInterface: xyz.openbmc_project.Inventory.Manager
+ readingType: assertion
+ interfaces:
+ xyz.openbmc_project.Inventory.Item:
+ Present:
+ Offsets:
+ 0x01:
+ assert: true
+ deassert: false
+ type: bool