Install witherspoon-reset-fan-watchdog service

This is a witherspoon only service that will
reset the fan watchdog circuit on a poweron, which
would bring the fans out of watchdog control if they
previously were.

The watchdog is reset by toggling a GPIO that feeds
a latch that drives the watchdog signal to the fan
controller.  The GPIO parameters are obtained from
an environment file.

The witherspoon-fan-watchdog.bb recipe will have other
watchdog related services added to it in the future.

Resolves openbmc/openbmc#1687

Change-Id: I103ccf6cb69f8a98fc352fa2fa05e45ecbf2cd23
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/fans/witherspoon-fan-watchdog/witherspoon-reset-fan-watchdog.service b/meta-witherspoon/recipes-phosphor/fans/witherspoon-fan-watchdog/witherspoon-reset-fan-watchdog.service
new file mode 100644
index 0000000..8ac3dd1
--- /dev/null
+++ b/meta-witherspoon/recipes-phosphor/fans/witherspoon-fan-watchdog/witherspoon-reset-fan-watchdog.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Witherspoon Fan Watchdog Reset
+Wants=phosphor-fan-control-init@0.service
+Before=phosphor-fan-control-init@0.service
+Conflicts=obmc-chassis-poweroff@0.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+EnvironmentFile={envfiledir}/obmc/witherspoon-fan-watchdog/witherspoon-reset-fan-watchdog.conf
+ExecStart={sbindir}/phosphor-gpio-util -p ${{GPIO_PATH}} -g ${{GPIO}} -a ${{ACTION}} -d ${{DELAY}}