blob: 3e8564875ebcf313595f036fd96271092f9c529c [file] [log] [blame]
Matt Spinlerd09f7502017-04-07 14:21:33 -05001[Unit]
2Description=Bind FSI Driver
3Wants=obmc-power-on@%i.target
4After=obmc-power-on@%i.target
5Wants=obmc-host-start-pre@%i.target
6Before=obmc-host-start-pre@%i.target
7Wants=fsi-scan@%i.service
8Before=fsi-scan@%i.service
Josh D. King9d5d7f42017-04-06 14:43:46 -05009Conflicts=obmc-chassis-poweroff@%i.target
Matt Spinlerd09f7502017-04-07 14:21:33 -050010ConditionDirectoryNotEmpty=!/sys/bus/platform/drivers/fsi-master-gpio/fsi-master
Edward A. Jamesc4e17bb2017-04-25 16:20:23 -050011ConditionDirectoryNotEmpty=!/sys/bus/platform/drivers/fsi-master-gpio/gpio-fsi
Matt Spinlerd09f7502017-04-07 14:21:33 -050012
13[Service]
Edward A. Jamesc4e17bb2017-04-25 16:20:23 -050014ExecStart=/bin/sh -c "echo fsi-master > /sys/bus/platform/drivers/fsi-master-gpio/bind || echo gpio-fsi > /sys/bus/platform/drivers/fsi-master-gpio/bind"
Matt Spinlerd09f7502017-04-07 14:21:33 -050015Type=oneshot
16RemainAfterExit=yes
17
18[Install]
Josh D. King9d5d7f42017-04-06 14:43:46 -050019RequiredBy=obmc-chassis-poweron@%i.target