Find the path for the GPIO device
This path is required to access a GPIO later.
Change-Id: I4ec64adbf939c5f0eaa12b7e18345d0fa2247a7d
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/power-sequencer/ucd90160.hpp b/power-sequencer/ucd90160.hpp
index 8bb152b..09a3abf 100644
--- a/power-sequencer/ucd90160.hpp
+++ b/power-sequencer/ucd90160.hpp
@@ -1,6 +1,7 @@
#pragma once
#include <algorithm>
+#include <experimental/filesystem>
#include <map>
#include <vector>
#include "device.hpp"
@@ -57,6 +58,11 @@
private:
/**
+ * Finds the GPIO device path for this device
+ */
+ void findGPIODevice();
+
+ /**
* Checks for VOUT faults on the device.
*
* This device can monitor voltages of its dependent
@@ -147,6 +153,12 @@
bool accessError = false;
/**
+ * The path to the GPIO device used to read
+ * the GPI (PGOOD) status
+ */
+ std::experimental::filesystem::path gpioDevice;
+
+ /**
* Map of device instance to the instance specific data
*/
static const ucd90160::DeviceMap deviceMap;