meta-ampere: mtmitchell: handle power sequence failure

This commit supports log the power on sequence to analyze power on
failure. This would include:
- PSU power good monitoring to indicate PSU is powered on.
- System power good monitoring to indicate CPU is powered on.

Tested:
1. Power on Host, check the Event logs identify the system
   /redfish/v1/Systems/system/LogServices/EventLog/Entries
   "Message": "Host firmware boots with 1 Processor",
2. Check the Event logs in case power on failure.

Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com>
Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
Change-Id: I15237d5f6be454b628529fce43424514bf445d53
diff --git a/meta-ampere/meta-mitchell/recipes-ampere/host/ampere-hostctrl.bbappend b/meta-ampere/meta-mitchell/recipes-ampere/host/ampere-hostctrl.bbappend
new file mode 100644
index 0000000..6a3bf86
--- /dev/null
+++ b/meta-ampere/meta-mitchell/recipes-ampere/host/ampere-hostctrl.bbappend
@@ -0,0 +1,16 @@
+FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
+
+SRC_URI += " \
+                file://ampere_power_on_failure_check.sh \
+                file://ampere-host-on-host-check-override.conf \
+           "
+
+FILES:${PN} += "${systemd_system_unitdir}/ampere-host-on-host-check@0.service.d"
+
+do_install:append() {
+     install -m 0755 ${WORKDIR}/ampere_power_on_failure_check.sh ${D}/${sbindir}/
+
+     install -d ${D}${systemd_system_unitdir}/ampere-host-on-host-check@0.service.d
+     install -m 644 ${WORKDIR}/ampere-host-on-host-check-override.conf \
+        ${D}${systemd_system_unitdir}/ampere-host-on-host-check@0.service.d
+}