presence: Add gpio presence sensor
Add a gpio presence implementation of the PresenceSensor
interface.
The gpio sensor simply maps the on off state of a gpio
directly to the xyz.openbmc_project.Inventory.Item
Present property.
Change-Id: I071dd475bebb15372edb59506352746c20542eff
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/presence/Makefile.am b/presence/Makefile.am
index 2ea4929..2a5976c 100644
--- a/presence/Makefile.am
+++ b/presence/Makefile.am
@@ -6,6 +6,7 @@
phosphor_fan_presence_tach_SOURCES = \
fan.cpp \
+ gpio.cpp \
tach.cpp \
fan_enclosure.cpp \
tach_sensor.cpp \