diff options
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/chassis/obmc-fsi/fsi-enable.service')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/chassis/obmc-fsi/fsi-enable.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/chassis/obmc-fsi/fsi-enable.service b/meta-phosphor/common/recipes-phosphor/chassis/obmc-fsi/fsi-enable.service new file mode 100644 index 000000000..c5b1ea139 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/chassis/obmc-fsi/fsi-enable.service @@ -0,0 +1,10 @@ +[Unit] +Description=Enable FSI +Conflicts=fsi-disable.service +ConditionDirectoryNotEmpty=!/sys/bus/platform/drivers/fsi-master-gpio/fsi-master + +[Service] +ExecStart=/bin/sh -c "echo fsi-master > /sys/bus/platform/drivers/fsi-master-gpio/bind" +ExecStart=/bin/sh -c "echo 1 > /sys/bus/platform/devices/fsi-master/scan" +Type=oneshot +RemainAfterExit=yes |