meta-ampere: phosphor-fan: Use monitor package configurations

This commit enables package configurations delay-host-control=20
and monitor-use-host-state, in order to delay and rescan before
turning host off when fan sensors are not detected after power state
changes from Off to On; and use CurrentHostState to decide host state
for phosphor-fan-monitor instead of pgood state.

Tested:

1. Host is ON, reboot BMC
=> Host is not turned off unexpectedly during BMC boot up
2. Power cycle host
=> fan sensors are not marked as non-functional

Signed-off-by: Chau Ly <chaul@amperecomputing.com>
Change-Id: Iea6ed195a42e41bee23066e670b67c19bcfda722
diff --git a/meta-ampere/meta-common/recipes-phosphor/fans/phosphor-fan_%.bbappend b/meta-ampere/meta-common/recipes-phosphor/fans/phosphor-fan_%.bbappend
new file mode 100644
index 0000000..5a3a678
--- /dev/null
+++ b/meta-ampere/meta-common/recipes-phosphor/fans/phosphor-fan_%.bbappend
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS:append := "${THISDIR}/${PN}:"
+
+# To delay turning off host when fan sensors are not detected yet
+# To use CurrentHostState to decide host state for phosphor-fan-monitor
+
+PACKAGECONFIG:append = " delay-host-control monitor-use-host-state"
+PACKAGECONFIG[delay-host-control] = "-Ddelay-host-control=20"
+PACKAGECONFIG[monitor-use-host-state] = "-Dmonitor-use-host-state=enabled"