Add method to turn off UCD90160 hardware accesses

As the fault monitoring functionality is going in toward
the end of a release, a flag is being provided to quickly
turn off the hardware accesses while still leaving the
ability to create general errors on PGOOD fails, as
well as issuing a shutdown on a runtime PGOOD fail.

This is meant to used if it turns out there are problems
with the hardware that end up taking a lot of time to debug.

The flag is --enable-turn-off-ucd90160-access.

Change-Id: I03f0ab5dc4010bf20ef2871f2e737ce310b4398f
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/power-sequencer/pgood_monitor.cpp b/power-sequencer/pgood_monitor.cpp
index 2cafee6..9e8abba 100644
--- a/power-sequencer/pgood_monitor.cpp
+++ b/power-sequencer/pgood_monitor.cpp
@@ -15,6 +15,7 @@
  */
 #include <phosphor-logging/log.hpp>
 #include <xyz/openbmc_project/Power/Fault/error.hpp>
+#include "config.h"
 #include "elog-errors.hpp"
 #include "pgood_monitor.hpp"
 #include "utility.hpp"
@@ -84,7 +85,9 @@
 
     if (pgoodPending())
     {
+#ifdef UCD90160_DEVICE_ACCESS
         device->onFailure();
+#endif
         report<PowerOnFailure>();
     }