commit | 09696fc31cb5ddbcc5b19d8bdb491a08c5db55e9 | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Thu Apr 07 13:23:44 2022 -0700 |
committer | William A. Kennington III <wak@google.com> | Sat Apr 16 00:30:29 2022 +0000 |
tree | bddfa43b3647f9eff670b9ba5f38a8c9f62aad4f | |
parent | ff50d27fb7f718805e15c5cdc586a6e65b929540 [diff] |
meta-quanta: Add hotswap ordering We want it to be possible to order units prior to the powercycle event if state needs to be persisted prior to a powercycle. We can also remove the time_delay functionality as this is now provided globally by the gbmc-psu-hardreset.target. Change-Id: I15b33e120be0246dd821d0dfe9d61b5aae7d1492 Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/hotswap-power-cycle/files/hotswap-power-cycle.service b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/hotswap-power-cycle/files/hotswap-power-cycle.service index a682eb2..d1082a7 100644 --- a/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/hotswap-power-cycle/files/hotswap-power-cycle.service +++ b/meta-quanta/meta-olympus-nuvoton/recipes-olympus-nuvoton/hotswap-power-cycle/files/hotswap-power-cycle.service
@@ -1,13 +1,10 @@ [Unit] Description=Power Cycle by Hotswap Controller +After=gbmc-psu-hardreset.target [Service] -EnvironmentFile=/run/psu_timedelay -ExecStartPre=sleep $PSU_HARDRESET_DELAY -ExecStart= i2cset -f -y 8 0x11 0xd9 -Restart=no Type=oneshot -RemainAfterExit=true +ExecStart= i2cset -f -y 8 0x11 0xd9 [Install] WantedBy=gbmc-psu-hardreset.target