Swift: Put in avsbus-enable
As on Witherspoon, some VRMs on Swift need their AVS buses enabled
as part of the power on sequence. The AVS bus connects those VRMs
to the processors so the processors can set voltages.
On Witherspoon, the sequence was
1. Disable the AVS bus
2. Manually set VRM voltages
3. Enable AVS bus
Currently on Swift there is no need to manually set voltages, so
the AVS bus disable service and script isn't required.
Tested: Tested on swift, and ensured both witherspoon and
witherspoon-128 still have all avs scripts and
services installed.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Icc00b16f7fca6d1163d2bb161ffd01b03b28b408
diff --git a/meta-witherspoon/recipes-phosphor/chassis/avsbus-control/swift/avsbus-enable@.service b/meta-witherspoon/recipes-phosphor/chassis/avsbus-control/swift/avsbus-enable@.service
new file mode 100644
index 0000000..45776aa
--- /dev/null
+++ b/meta-witherspoon/recipes-phosphor/chassis/avsbus-control/swift/avsbus-enable@.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Enable the AVS bus on VRMs
+Wants=op-power-start@%i.service
+Before=op-power-start@%i.service
+Conflicts=obmc-chassis-poweroff@%i.target
+ConditionPathExists=!/run/openbmc/chassis@%i-on
+
+[Service]
+ExecStart={bindir}/avsbus-enable.sh
+SyslogIdentifier=avsbus-enable.sh
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=obmc-chassis-poweron@%i.target