diff options
author | Tim Lee <timlee660101@gmail.com> | 2019-09-18 11:28:08 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-10-04 13:35:53 +0300 |
commit | c81fcf6553add15eb50622fe1d07bf11c67d36b1 (patch) | |
tree | 60fdb2f52aff6a3bee047dc354d02cf5cb845eee /meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/fans/phosphor-pid-control/fan-reboot-control.service | |
parent | 2b24cd95e45277526f0058157d65c551d1db9123 (diff) | |
download | openbmc-c81fcf6553add15eb50622fe1d07bf11c67d36b1.tar.xz |
meta-quanta: runbmc-nuvoton: pid: enable PID to control FAN tach for RunBMC
Enable phosphor-pid-control to control FAN tach according eight temperature sensors.
There are six FANs in RunBMC and all controlled by PWM1, thus we only define one fan type sensor in .json file.
Consider FAN tach might be stopped then cause RunBMC sever hang, FAN tach will turn into full speed if swampd daemon dead unexpected.
(From meta-quanta rev: 1689d1e7e4ed67560f73eee673a06b25cb346e60)
Signed-off-by: Tim Lee <timlee660101@gmail.com>
Change-Id: I52db7eeff8abd1573ee9b4a61bd6af4a1b624d9a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/fans/phosphor-pid-control/fan-reboot-control.service')
-rw-r--r-- | meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/fans/phosphor-pid-control/fan-reboot-control.service | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/fans/phosphor-pid-control/fan-reboot-control.service b/meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/fans/phosphor-pid-control/fan-reboot-control.service new file mode 100644 index 000000000..3ce2e01b0 --- /dev/null +++ b/meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/fans/phosphor-pid-control/fan-reboot-control.service @@ -0,0 +1,12 @@ +[Unit] +Description=Set Fan to Full Speed as Rebooting +DefaultDependencies=no +After=shutdown.target + +[Service] +Type=oneshot +RemainAfterExit=true +ExecStart=/usr/bin/fan-full-speed.sh + +[Install] +WantedBy=shutdown.target |