Add GPIO based chassis intrusion sensor config
Use "Bind*" and "Class" to support both PCH/I2C and GPIO in one "Type"
Tested-by: Intrusion status can be read via readfish on both
WFP (PCH/I2C solution) and STP(GPIO solution)
Change-Id: Ib371e91278270ca74c6db759158ffe016e5c3232
Signed-off-by: Qiang XU <qiang.xu@linux.intel.com>
diff --git a/configurations/STP Baseboard.json b/configurations/STP Baseboard.json
index 8a91d55..a01ea9d 100644
--- a/configurations/STP Baseboard.json
+++ b/configurations/STP Baseboard.json
@@ -829,6 +829,19 @@
}
],
"Type": "SkylakeCPU"
+ },
+ {
+ "Direction": "Input",
+ "Index": 143,
+ "Polarity": "Low",
+ "Name": "Chassis Intrusion GPIO",
+ "Type": "Gpio"
+ },
+ {
+ "Class": "Gpio",
+ "BindGpioIntrusion": "Chassis Intrusion GPIO",
+ "Name": "Chassis Intrusion Sensor",
+ "Type": "ChassisIntrusionSensor"
}
],
"Name": "STP Baseboard",