meta-fii/meta-kudo: PID Fan Control

1- Using PID Fan Control
2- Switch Fan Control from Phosphor PID Control
   to Entity Manager PID

Signed-off-by: mustafa <mustafa.shehabi@fii-na.com>
Change-Id: I29305ba959dd2f4dd2fd0131af324f105d28a7bc
diff --git a/meta-fii/meta-kudo/recipes-phosphor/fans/pwm-init.bb b/meta-fii/meta-kudo/recipes-phosphor/fans/pwm-init.bb
new file mode 100644
index 0000000..c380feb
--- /dev/null
+++ b/meta-fii/meta-kudo/recipes-phosphor/fans/pwm-init.bb
@@ -0,0 +1,29 @@
+SUMMARY = "Initialize PWM sensors"
+DESCRIPTION = "Initialize PWM sensors"
+LICENSE = "CLOSED"
+PR = "r1"
+
+inherit systemd
+
+DEPENDS = "systemd"
+RDEPENDS_${PN} = "bash"
+
+S = "${WORKDIR}"
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+SRC_URI += " \
+    file://pwm_init.service \
+    file://bin/pwm_init.sh \
+    "
+
+SYSTEMD_PACKAGES = "${PN}"
+SYSTEMD_AUTO_ENABLE = "enable"
+SYSTEMD_SERVICE_${PN} += "pwm_init.service"
+
+FILES_${PN} += "${bindir}/* ${systemd_system_unitdir}/*"
+
+do_install_append() {
+    install -d ${D}${bindir}
+    install -m 0755 ${S}/bin/* ${D}${bindir}/
+    install -d ${D}${systemd_system_unitdir}
+    install -m 0644 ${S}/*.service ${D}${systemd_system_unitdir}
+}