wspoon: Inhibit mrw fan-control fan config

Use a hardcoded config file for the Witherspoon fan presence
configuration.

Hopefully a somewhat temporary workaround of missing tags in the
Witherspoon MRW.

Change-Id: I28525d69ac340371b96d09390c7f2800d89fca5c
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/conf/machine/witherspoon.conf b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/conf/machine/witherspoon.conf
index e8eef10..3c67257 100644
--- a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/conf/machine/witherspoon.conf
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/conf/machine/witherspoon.conf
@@ -21,3 +21,7 @@
 # Inhibit phosphor-fan-presence-mrw-native
 PREFERRED_PROVIDER_virtual/phosphor-fan-presence-config = \
     "phosphor-fan-presence-config-native"
+
+# Inhibit phosphor-fan-control-fan-config-mrw-native
+PREFERRED_PROVIDER_virtual/phosphor-fan-control-fan-config = \
+    "phosphor-fan-control-fan-config-native"
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-fan-config%.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-fan-config%.bbappend
new file mode 100644
index 0000000..72d991c
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-fan-config%.bbappend
@@ -0,0 +1 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-fan-config%/fans.yaml b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-fan-config%/fans.yaml
new file mode 100755
index 0000000..8ad72d8
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-fan-config%/fans.yaml
@@ -0,0 +1,21 @@
+fans:
+  - inventory: /system/chassis/motherboard/fan2
+    cooling_zone: 0
+    cooling_profile: all
+    sensors:
+      - fan2
+  - inventory: /system/chassis/motherboard/fan0
+    cooling_zone: 0
+    cooling_profile: all
+    sensors:
+      - fan0
+  - inventory: /system/chassis/motherboard/fan1
+    cooling_zone: 0
+    cooling_profile: air
+    sensors:
+      - fan1
+  - inventory: /system/chassis/motherboard/fan3
+    cooling_zone: 0
+    cooling_profile: all
+    sensors:
+      - fan3