psu-ng: Implement gpio write function

Implement a gpio write function to allow writing to gpios via the
libgpiod bindings. The bindings allow to set the desired gpio value by
passing it to the line request call.

Add the ability to pass flags as defined in gpiod.hpp so that the caller
can specify options such as FLAG_OPEN_DRAIN.

Change-Id: Ia7329a17c46f4f1fda0b66f795f123c8524a1be5
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/phosphor-power-supply/util_base.hpp b/phosphor-power-supply/util_base.hpp
index ade43ef..b5086f4 100644
--- a/phosphor-power-supply/util_base.hpp
+++ b/phosphor-power-supply/util_base.hpp
@@ -4,6 +4,8 @@
 
 #include <sdbusplus/bus/match.hpp>
 
+#include <bitset>
+
 namespace phosphor::power::psu
 {
 
@@ -43,6 +45,7 @@
     virtual ~GPIOInterfaceBase() = default;
 
     virtual int read() = 0;
+    virtual void write(int value, std::bitset<32> flags) = 0;
     virtual std::string getName() const = 0;
 };