diff options
author | Allen.Wang <Allen_Wang@quantatw.com> | 2021-12-15 08:41:18 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2021-12-29 06:40:08 +0300 |
commit | 4a0948d0184e35770ca24cd591e9a29fd5ff44a6 (patch) | |
tree | 7c320dd7a07df7ec61d63a5e17a930acbb5242ed /meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/host-poweroff@.service | |
parent | d58f23c78a2501d4b6ed36a74c23de28595d4f78 (diff) | |
download | openbmc-4a0948d0184e35770ca24cd591e9a29fd5ff44a6.tar.xz |
meta-bletchley: Add services to control step motor
For Bletchley platform, we can only power on system by step motor to press power key.
Add tools and service to initialize step motor and control system power
by motor.
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
Change-Id: Ic75352a037566d701b2e362743c527c370b0c2e5
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/host-poweroff@.service')
-rw-r--r-- | meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/host-poweroff@.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/host-poweroff@.service b/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/host-poweroff@.service new file mode 100644 index 000000000..50cd53283 --- /dev/null +++ b/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/host-poweroff@.service @@ -0,0 +1,10 @@ +[Unit] +Description=Power off System in Sled%i by Step Motor +Requires=motor-init-calibration@%i.service +After=motor-init-calibration@%i.service + +[Service] +Type=oneshot +ExecStart=/usr/sbin/power-ctrl sled%i off +SyslogIdentifier=power-ctrl + |