Add service to monitor the UCD90160 at runtime
This service starts the witherspoon-pseq-monitor application
with the runtime-monitor argument (as opposed to the pgood-monitor
argument). The service will start after PGOOD comes on.
The application monitors for loss of PGOOD at runtime, in which
case it will analyze the UCD90160 power sequencer chip for errors.
It will also poll the chip for the errors that can only be detected
that way.
Resolves openbmc/openbmc#1724
Change-Id: Ieb456f56b6b4223cf9fe7a0635c5a3e725efcb29
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor.service b/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor.service
new file mode 100644
index 0000000..d0ba9a9
--- /dev/null
+++ b/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/witherspoon-pseq-monitor.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Witherspoon Power Sequencer Runtime Monitor
+Wants=obmc-host-start-pre@0.target
+Before=obmc-host-start-pre@0.target
+Wants=vcs_on@0.service
+After=vcs_on@0.service
+Conflicts=obmc-chassis-poweroff@0.target
+
+[Service]
+ExecStart=/usr/bin/env witherspoon-pseq-monitor -a runtime-monitor -i 1
+SyslogIdentifier=witherspoon-pseq-monitor