control:configs: rainier-1s4u floor updates

If the model value of the first processor is 5CF9, use a different
mapped_floor table with higher floors.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I2ebea798e3c5e5bf60aa82d12b4139239f383a72
diff --git a/control/config_files/p10bmc/ibm,rainier-1s4u/events.json b/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
index 520e0cb..75e87af 100644
--- a/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
+++ b/control/config_files/p10bmc/ibm,rainier-1s4u/events.json
@@ -1043,9 +1043,9 @@
                 "property": { "name": "Value" }
             },
             {
-                "name": "power mode",
-                "interface": "xyz.openbmc_project.Control.Power.Mode",
-                "property": { "name": "PowerMode" }
+                "name": "cpu 0 inventory",
+                "interface": "xyz.openbmc_project.Inventory.Decorator.Asset",
+                "property": { "name": "Model" }
             }
         ],
         "triggers": [
@@ -1074,6 +1074,9 @@
             {
                 "name": "mapped_floor",
                 "key_group": "ambient temp",
+                "condition_group": "cpu 0 inventory",
+                "condition_value": "5CF9",
+                "condition_op": "not_equal",
                 "fan_floors": [
                     {
                         // Entry valid for ambient temp < 27
@@ -1140,6 +1143,79 @@
                         ]
                     }
                 ]
+            },
+            {
+                "name": "mapped_floor",
+                "key_group": "ambient temp",
+                "condition_group": "cpu 0 inventory",
+                "condition_value": "5CF9",
+                "condition_op": "equal",
+                "fan_floors": [
+                    {
+                        // Entry valid for ambient temp < 27
+                        "key": 27,
+                        "default_floor": 5000,
+                        "floor_offset_parameter": "altitude_offset",
+                        "floors": [
+                            {
+                                "parameter": "pcie_floor_index",
+                                "floors": [
+                                    { "value": 1, "floor": 7000 },
+                                    { "value": 2, "floor": 8000 },
+                                    { "value": 3, "floor": 9000 }
+                                ]
+                            }
+                        ]
+                    },
+                    {
+                        // Entry valid for ambient temp < 32
+                        "key": 32,
+                        "default_floor": 6000,
+                        "floor_offset_parameter": "altitude_offset",
+                        "floors": [
+                            {
+                                "parameter": "pcie_floor_index",
+                                "floors": [
+                                    { "value": 1, "floor": 8000 },
+                                    { "value": 2, "floor": 9000 },
+                                    { "value": 3, "floor": 9500 }
+                                ]
+                            }
+                        ]
+                    },
+                    {
+                        // Entry valid for ambient temp < 37
+                        "key": 37,
+                        "default_floor": 7000,
+                        "floor_offset_parameter": "altitude_offset",
+                        "floors": [
+                            {
+                                "parameter": "pcie_floor_index",
+                                "floors": [
+                                    { "value": 1, "floor": 9000 },
+                                    { "value": 2, "floor": 9500 },
+                                    { "value": 3, "floor": 10400 }
+                                ]
+                            }
+                        ]
+                    },
+                    {
+                        // Entry valid for ambient temp < 42
+                        "key": 42,
+                        "default_floor": 8000,
+                        "floor_offset_parameter": "altitude_offset",
+                        "floors": [
+                            {
+                                "parameter": "pcie_floor_index",
+                                "floors": [
+                                    { "value": 1, "floor": 9500 },
+                                    { "value": 2, "floor": 10400 },
+                                    { "value": 3, "floor": 10400 }
+                                ]
+                            }
+                        ]
+                    }
+                ]
             }
         ]
     }
diff --git a/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json b/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json
index a018567..491aff2 100644
--- a/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json
+++ b/control/config_files/p10bmc/ibm,rainier-1s4u/groups.json
@@ -33,6 +33,12 @@
         ]
     },
     {
+        "name": "cpu 0 inventory",
+        "members": [
+            "/xyz/openbmc_project/inventory/system/chassis/motherboard/dcm0/cpu0"
+        ]
+    },
+    {
         "name": "occ objects",
         "service": "org.open_power.OCC.Control",
         "members": [
@@ -369,10 +375,5 @@
             "/xyz/openbmc_project/inventory/system/chassis/motherboard/pcieslot10",
             "/xyz/openbmc_project/inventory/system/chassis/motherboard/pcieslot11"
         ]
-    },
-    {
-        "name": "power mode",
-        "service": "org.open_power.OCC.Control",
-        "members": ["/xyz/openbmc_project/control/host0/power_mode"]
     }
 ]