IPMI Sensor: Adding the replacable interface for GPU sensor

Presently host doesn't send the GPU as a write FRU command,
It sends the sensor data for GPU and we create the object
in the inventory.

Till now this is the first instance where host is not sending the
FRU data for a FRU but it sends the sensor data for that FRU.

To make GPU as a FRU we implement the replacable interface.

Resolves openbmc/openbmc#2898

Change-Id: I8b84238e1a78468f55d42078a165eb91b2a8e5af
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml b/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml
index 9d8f136..6ca7c0e 100644
--- a/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml
+++ b/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw-config/config.yaml
@@ -182,6 +182,16 @@
             type: "bool"
             assert: true
             deassert: false
+# Field replacable doesn't come as a sensor data
+# but we know that GPU is Field replacable so setting
+# true in both cases.
+    xyz.openbmc_project.Inventory.Decorator.Replaceable:
+      FieldReplaceable:
+        Offsets:
+          0x07:
+            type: "bool"
+            assert: true
+            deassert: true
 
 host_auto_reboot_control_sensor:
   path: /xyz/openbmc_project/control/host0/auto_reboot