Install events yaml for fan control

Updated the fan control recipe files to include the events config yaml
file. For witherspoon, an events yaml file was added initially
supporting the fan degraded events of missing or containing a
nonfunctional fan resulting in the fans running at full speed.

Resolves openbmc/openbmc#944

Change-Id: I5cbc69694d2a05ec2d5daab55f045e1e28764828
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/events.yaml b/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/events.yaml
new file mode 100644
index 0000000..94e55bb
--- /dev/null
+++ b/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/events.yaml
@@ -0,0 +1,53 @@
+groups:
+    - name: zone0_fans
+      description: Group of fan inventory objects for zone 0
+      type: inventory
+      members:
+          - /system/chassis/motherboard/fan0
+          - /system/chassis/motherboard/fan1
+          - /system/chassis/motherboard/fan2
+          - /system/chassis/motherboard/fan3
+
+actions:
+    - name: count_state_before_speed
+      description: Set the speed when a number of properties at a state
+      parameters:
+          - count
+          - property
+          - speed
+
+events:
+    - name: missing_before_high_speed
+      zone_conditions:
+          - name: air_cooled_chassis
+            zones:
+                - 0
+      group: zone0_fans
+      interface: xyz.openbmc_project.Inventory.Item
+      property:
+          name: Present
+          type: bool
+      action:
+          name: count_state_before_speed
+          count: 1
+          property: false
+          speed:
+              value: 10500
+              type: uint64_t
+    - name: fails_before_high_speed
+      zone_conditions:
+          - name: air_cooled_chassis
+            zones:
+                - 0
+      group: zone0_fans
+      interface: xyz.openbmc_project.State.Decorator.OperationalStatus
+      property:
+          name: Functional
+          type: bool
+      action:
+          name: count_state_before_speed
+          count: 1
+          property: false
+          speed:
+              value: 10500
+              type: uint64_t