Add GPIO class
This class will be used for accessing GPIOs off of the
UCD90160 to check for PGOOD faults, and also later for
isolating GPU overtemps and PGOOD faults down to the specific
GPU that failed.
The FileDescriptor class is used by the GPIO class to manage
the lifetime of the GPIO file handles.
The class only supports reading a GPIO value. At this point
there is no requirement for doing writes.
This class was copied from phosphor-gpio-monitor/gpio-util.
Change-Id: Iee276aed67e1cba549c3070c08238ab5f621c320
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/power-sequencer/Makefile.am b/power-sequencer/Makefile.am
index 9309999..485ae3e 100644
--- a/power-sequencer/Makefile.am
+++ b/power-sequencer/Makefile.am
@@ -6,6 +6,7 @@
witherspoon_pseq_monitor_SOURCES = \
argument.cpp \
+ gpio.cpp \
main.cpp \
pgood_monitor.cpp \
ucd90160.cpp \