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>
5 files changed