summaryrefslogtreecommitdiff
path: root/meta-ibm/recipes-phosphor/fans
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2020-05-13 00:28:00 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-05-27 00:33:35 +0300
commitd57ffb9bbeb828519c9ffe88ecaac460fde3de92 (patch)
tree835a5c140a2b8b22b80cc201084a4fff2f4900ea /meta-ibm/recipes-phosphor/fans
parenta08d5da9fcb0f378d5bead60ccae1ae58775199f (diff)
downloadopenbmc-d57ffb9bbeb828519c9ffe88ecaac460fde3de92.tar.xz
rainier: Add fan watchdog BMC protection
Configure and include the fan watchdog services to drive the fans to 100% PWM if the BMC loses communication to the fan controller chip at any time (i.e. BMC reset while powered on). (From meta-ibm rev: 1264216bc2f10cf08f697bc1c95f10237c95515a) Change-Id: I18865bdc06c1a2be0c2a83d5e83402b9316ee845 Signed-off-by: Matthew Barth <msbarth@us.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-ibm/recipes-phosphor/fans')
-rw-r--r--meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/fan-watchdog.conf3
-rw-r--r--meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/reset-fan-watchdog.conf4
2 files changed, 7 insertions, 0 deletions
diff --git a/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/fan-watchdog.conf b/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/fan-watchdog.conf
new file mode 100644
index 000000000..ce7824ccb
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/fan-watchdog.conf
@@ -0,0 +1,3 @@
+TIMEOUT=5
+INTERVAL=1
+DEVICE=/dev/watchdog0
diff --git a/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/reset-fan-watchdog.conf b/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/reset-fan-watchdog.conf
new file mode 100644
index 000000000..98cb60288
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/fans/fan-watchdog/rainier/obmc/fan-watchdog/reset-fan-watchdog.conf
@@ -0,0 +1,4 @@
+GPIO_PATH=/dev/gpiochip0
+GPIO=114
+DELAY=1
+ACTION=low_high