summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files
diff options
context:
space:
mode:
authorGeorge Hung <george.hung@quantatw.com>2020-05-12 11:56:27 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-06-08 22:24:34 +0300
commit390901315e9a710fba42b20a4287d7e67d3fedb1 (patch)
treeeb7b413d3478396c4c83c0048ab7be013b1a5292 /meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files
parent8bb7af7435fc42f4992748bbed1e6c51822d5ca8 (diff)
downloadopenbmc-390901315e9a710fba42b20a4287d7e67d3fedb1.tar.xz
meta-quanta: gbs: add Hotswap Power Cycle Service
Add a hotswap power cycle service for oem google sys command, "Delay hard reset". Tested: Setting 5 secs delay for delay hard reset: ~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x05 0x00 0x00 0x00 79 2b 00 03 (From meta-quanta rev: 4f20ff8ff1a9ea91f0e2a4f55ec7a2525bfc8a9a) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ib114ba2c47d652cb9c9999b45b503698e7fc5207 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files')
-rw-r--r--meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/hotswap-power-cycle.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/hotswap-power-cycle.service b/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/hotswap-power-cycle.service
new file mode 100644
index 000000000..57724f353
--- /dev/null
+++ b/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/hotswap-power-cycle.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Power Cycle by Hotswap Controller
+
+[Service]
+EnvironmentFile=/run/psu_timedelay
+ExecStartPre=sleep $PSU_HARDRESET_DELAY
+ExecStart=gpioset gpiochip6 26=1
+Restart=no
+Type=oneshot
+RemainAfterExit=true
+StandardOutput=syslog
+
+[Install]
+WantedBy=gbmc-psu-hardreset.target