Add fb-powerctrl to Facebook Tiogapass
Added a new module fb-powerctrl to comtrol host power. It
includes power-util which controls power on and off of
given host server.
Tested: Build Facebook TiogaPass board and load on the
target hardware. Ensured that power on and off features
works as expected.
(From meta-facebook rev: 67abf96e04c1aab15c90480eca2b00bf9b5c51ab)
Change-Id: I21090bbe461111c15e404c544f303615fbf62c9b
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/host-poweron.service b/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/host-poweron.service
new file mode 100644
index 0000000..b070eda
--- /dev/null
+++ b/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/host-poweron.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Poweron Host Server
+Requires=host-gpio.service
+After=host-gpio.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/power-util mb 1 on
+SyslogIdentifier=power-util
+
+[Install]
+WantedBy=basic.target