meta-facebook: yosemite4: Add initial GPIO setting
Summary:
To initial GPIO setting by following yosemite4 hardware setting
Tested:
Check GPIO using devmem
Change-Id: I706ecfc8a41dcc12e4bd0f293c5ae38f5943d377
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/meta-facebook/meta-yosemite4/recipes-yosemite4/plat-svc/plat-svc_0.1.bb b/meta-facebook/meta-yosemite4/recipes-yosemite4/plat-svc/plat-svc_0.1.bb
new file mode 100644
index 0000000..65a3824
--- /dev/null
+++ b/meta-facebook/meta-yosemite4/recipes-yosemite4/plat-svc/plat-svc_0.1.bb
@@ -0,0 +1,24 @@
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+inherit allarch systemd obmc-phosphor-systemd
+
+RDEPENDS:${PN} += "bash"
+RDEPENDS:${PN} += "libgpiod-tools"
+RDEPENDS:${PN} += "yosemite4-common-functions"
+
+SRC_URI += " \
+ file://yosemite4-sys-init.service \
+ file://yosemite4-early-sys-init \
+ "
+
+SYSTEMD_PACKAGES = "${PN}"
+SYSTEMD_SERVICE:${PN}:append = " \
+ yosemite4-sys-init.service \
+ "
+
+do_install() {
+ install -d ${D}${libexecdir}
+ install -m 0755 ${WORKDIR}/yosemite4-early-sys-init ${D}${libexecdir}
+}
+