meta-facebook: tiogapass: Add system reset unit
Added system reset unit file for Facebook tiogapass platform
(From meta-facebook rev: c1fda3ae1ec53c4b5867834b935db87509a09ce4)
Change-Id: I5d585cd59243ec52e31ec6795caa74f3fed56d35
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-facebook/recipes-x86/chassis/x86-power-control/tiogapass/chassis-system-reset.service b/meta-facebook/recipes-x86/chassis/x86-power-control/tiogapass/chassis-system-reset.service
new file mode 100644
index 0000000..42d1936
--- /dev/null
+++ b/meta-facebook/recipes-x86/chassis/x86-power-control/tiogapass/chassis-system-reset.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=System unit to hard reset or system reset chassis
+
+[Service]
+Type=oneshot
+RemainAfterExit=no
+ExecStart=i2cset -y 7 0x45 0xd9 c
+
+[Install]
+WantedBy=chassis-system-reset.target
diff --git a/meta-facebook/recipes-x86/chassis/x86-power-control_%.bbappend b/meta-facebook/recipes-x86/chassis/x86-power-control_%.bbappend
new file mode 100644
index 0000000..72d991c
--- /dev/null
+++ b/meta-facebook/recipes-x86/chassis/x86-power-control_%.bbappend
@@ -0,0 +1 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"