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
tree: 3cc2d4bbfbeebc7c74cd00a494a0ce7258c3d6aa
  1. power-sequencer/
  2. xyz/
  3. .gitignore
  4. argument.hpp
  5. bootstrap.sh
  6. configure.ac
  7. device.hpp
  8. device_monitor.hpp
  9. elog-errors.hpp
  10. event.hpp
  11. file.hpp
  12. LICENSE
  13. Makefile.am
  14. pmbus.cpp
  15. pmbus.hpp
  16. README.md
  17. timer.cpp
  18. timer.hpp
  19. utility.cpp
  20. utility.hpp
README.md

Code for detecting and analyzing power faults on Witherspoon.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.