Move FSI recipe and services to meta-openpower
FSI is an OpenPower concept.
Change-Id: I0043d6d7b4783179b0893bbf7995aa229df2463f
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/common/recipes-phosphor/fsi/op-fsi/fsi-scan@.service b/common/recipes-phosphor/fsi/op-fsi/fsi-scan@.service
new file mode 100644
index 0000000..8f94e28
--- /dev/null
+++ b/common/recipes-phosphor/fsi/op-fsi/fsi-scan@.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Scan FSI devices
+Wants=obmc-power-on@%i.target
+After=obmc-power-on@%i.target
+Wants=obmc-host-start-pre@%i.target
+Before=obmc-host-start-pre@%i.target
+Conflicts=obmc-power-chassis-off@%i.target
+
+[Service]
+ExecStart=/bin/sh -c "echo 1 > /sys/bus/platform/devices/fsi-master/scan"
+Type=oneshot
+RemainAfterExit=yes
+
+[Install]
+RequiredBy=obmc-power-chassis-on@%i.target