meta-ibm:wspoon: Use gpioset in power-supply-sync
The phosphor-gpio-util that was being used was a custom tool that can be
replaced by gpioset. It was also just removed from its repo.
The service now has to be a oneshot because otherwise it isn't allowed
to have multiple ExecStart lines.
Tested:
Powered on multiple times, ensured the power supply input history was
cleared on each power on.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ib181c67b70e2feb109c1a2aabba8d046e7dfe380
diff --git a/meta-ibm/recipes-phosphor/power/witherspoon-power-supply-sync/power-supply-sync.service b/meta-ibm/recipes-phosphor/power/witherspoon-power-supply-sync/power-supply-sync.service
index bf33699..50e1776 100644
--- a/meta-ibm/recipes-phosphor/power/witherspoon-power-supply-sync/power-supply-sync.service
+++ b/meta-ibm/recipes-phosphor/power/witherspoon-power-supply-sync/power-supply-sync.service
@@ -5,9 +5,13 @@
Wants=obmc-chassis-poweron@0.target
Before=obmc-chassis-poweron@0.target
ConditionPathExists=!/run/openbmc/chassis@0-on
+Conflicts=obmc-chassis-poweroff@0.target
[Service]
-ExecStart=/usr/bin/phosphor-gpio-util --gpio=105 --path=/dev/gpiochip0 --delay=5 --action=low_high
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/gpioset -m time -u 5000 /dev/gpiochip0 105=0
+ExecStart=/usr/bin/gpioset /dev/gpiochip0 105=1
[Install]
#RequiredBy=obmc-chassis-poweron@0.target