meta-ibm: Mihawk fan control support GPU thermal sensor

Mihawk can use GPU, so fan control must support GPU thermal sensor.

Tested: Fan speed is automatically controlled when using GPU

(From meta-ibm rev: 2ecdfbd9911c5df8909089d87774a768cfb06716)

Change-Id: I7a62dd349a72c1c3fb6dc314e7a011afb51e75b1
Signed-off-by: Ben Pai <Ben_Pai@wistron.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml b/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml
index bce2037..ec63490 100644
--- a/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml
+++ b/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config/mihawk/events.yaml
@@ -134,6 +134,18 @@
           - /temperature/p1_vdn_temp
           - /temperature/p0_vdd_temp
           - /temperature/p1_vdd_temp
+    - name: zone0_gpu
+      description: Group of gpu temperature sensors for zone 0
+      type: /xyz/openbmc_project/sensors
+      members:
+          - /temperature/gpu0
+          - /temperature/gpu1
+          - /temperature/gpu2
+          - /temperature/gpu3
+          - /temperature/gpu4
+          - /temperature/gpu5
+          - /temperature/gpu6
+          - /temperature/gpu7
 matches:
     - name: propertiesChanged
       parameters:
@@ -473,6 +485,11 @@
                     property:
                         name: Value
                         type: int64_t
+                  - name: zone0_gpu
+                    interface: xyz.openbmc_project.Sensor.Value
+                    property:
+                        name: Value
+                        type: int64_t
               triggers:
                   - name: init
                     method: getProperties
@@ -663,3 +680,36 @@
                     delta:
                         value: 3
                         type: uint64_t
+                  # Speed changes based on gpu temps
+                  - name: set_net_increase_speed
+                    groups:
+                        - name: zone0_gpu
+                          interface: xyz.openbmc_project.Sensor.Value
+                          property:
+                              name: Value
+                              type: int64_t
+                    property:
+                        value: 70
+                        type: int64_t
+                    factor:
+                        value: 1
+                        type: int64_t
+                    delta:
+                        value: 13
+                        type: uint64_t
+                  - name: set_net_decrease_speed
+                    groups:
+                        - name: zone0_gpu
+                          interface: xyz.openbmc_project.Sensor.Value
+                          property:
+                              name: Value
+                              type: int64_t
+                    property:
+                        value: 67
+                        type: int64_t
+                    factor:
+                        value: 4
+                        type: int64_t
+                    delta:
+                        value: 5
+                        type: uint64_t