meta-facebook: tiogapass: Add system reset unit
Added system reset unit file for Facebook tiogapass platform
Change-Id: Idb1fa4b310d46f364fb6632d0cc75fa824ef1871
Signed-off-by: Vijay Khemka <vijaykhemka@fb.com>
diff --git a/recipes-x86/chassis/x86-power-control/tiogapass/chassis-system-reset.service b/recipes-x86/chassis/x86-power-control/tiogapass/chassis-system-reset.service
new file mode 100644
index 0000000..42d1936
--- /dev/null
+++ b/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/recipes-x86/chassis/x86-power-control_%.bbappend b/recipes-x86/chassis/x86-power-control_%.bbappend
new file mode 100644
index 0000000..72d991c
--- /dev/null
+++ b/recipes-x86/chassis/x86-power-control_%.bbappend
@@ -0,0 +1 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"