meta-quanta: gbs: detect SlimSAS cable presence
Add gpio configuration for SlimSAS cable0~3 and
detect cables connected or not
(From meta-quanta rev: 09b8cd98a953ef96fabd7bc1c8d090bd02c53d88)
Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: Ifee5ebf1a1055943ade8defce6be63b690bea8d2
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-quanta/meta-gbs/recipes-gbs/detect-sas-cable/files/detect-sas-cable.service b/meta-quanta/meta-gbs/recipes-gbs/detect-sas-cable/files/detect-sas-cable.service
new file mode 100644
index 0000000..6575f4f
--- /dev/null
+++ b/meta-quanta/meta-gbs/recipes-gbs/detect-sas-cable/files/detect-sas-cable.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Detect SAS Cable Manager
+Wants=phosphor-gpio-presence@.service
+After=phosphor-gpio-presence@.service
+
+[Service]
+ExecStart=/usr/bin/detect-sas-cable.sh
+StandardOutput=syslog
+Type=simple
+
+[Install]
+WantedBy=multi-user.target