bytedance: g220a: Enable swampd tuning mode

Do not enter the failmode if a temperature sensor's value is
NAN, It's useful for debug. We always want the pid-controler to
run, when debugging.

(From meta-bytedance rev: ae79ff9e289c85498e656172e99d44b11d969109)

Signed-off-by: John Wang <wangzhiqiang.bj@bytedance.com>
Change-Id: I957528b2e2f336bdf3abbd78ec105bdc249e3716
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service
new file mode 100644
index 0000000..659ff3e
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control/phosphor-pid-control.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Phosphor-Pid-Control Margin-based Fan Control Daemon
+After=xyz.openbmc_project.EntityManager.service
+After=xyz.openbmc_project.ObjectMapper.service
+
+[Service]
+Restart=always
+ExecStart={bindir}/swampd -t
+RestartSec=5
+StartLimitInterval=0
+Type=simple
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control_%.bbappend b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control_%.bbappend
new file mode 100644
index 0000000..6664699
--- /dev/null
+++ b/meta-bytedance/meta-g220a/recipes-phosphor/fans/phosphor-pid-control_%.bbappend
@@ -0,0 +1,5 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+inherit obmc-phosphor-systemd
+
+SYSTEMD_SERVICE_${PN} = "phosphor-pid-control.service"