summaryrefslogtreecommitdiffstats
path: root/meta-openpower/common/recipes-phosphor/host/op-host-control/cfam_override@.service
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openpower/common/recipes-phosphor/host/op-host-control/cfam_override@.service')
-rw-r--r--meta-openpower/common/recipes-phosphor/host/op-host-control/cfam_override@.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-openpower/common/recipes-phosphor/host/op-host-control/cfam_override@.service b/meta-openpower/common/recipes-phosphor/host/op-host-control/cfam_override@.service
new file mode 100644
index 000000000..e6bc9389c
--- /dev/null
+++ b/meta-openpower/common/recipes-phosphor/host/op-host-control/cfam_override@.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=Applies user CFAM register overrides from file
+Wants=obmc-host-start-pre@%i.target
+Before=obmc-host-start-pre@%i.target
+Wants=obmc-power-on@%i.target
+After=obmc-power-on@%i.target
+Wants=fsi-scan@%i.service
+After=fsi-scan@%i.service
+Conflicts=obmc-chassis-poweroff@%i.target
+ConditionPathExists=!/run/openbmc/chassis@%i-on
+ConditionPathExists=/var/lib/obmc/cfam_overrides
+
+[Service]
+ExecStart=/usr/bin/env openpower-proc-control CFAMOverride
+SyslogIdentifier=openpower-proc-control
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=obmc-chassis-poweron@%i.target
OpenPOWER on IntegriCloud