meta-ibm: system1: add in basic chassis power control

Need to eventually get full chassis power support in but for now, to
allow BMC Ready, just put in the basic skeleton power control.

Change-Id: I8647b11acb472662a40b986f23d28aa3e6a4d8d5
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-ibm/meta-system1/conf/machine/system1.conf b/meta-ibm/meta-system1/conf/machine/system1.conf
index 5040036..38475fa 100644
--- a/meta-ibm/meta-system1/conf/machine/system1.conf
+++ b/meta-ibm/meta-system1/conf/machine/system1.conf
@@ -13,6 +13,10 @@
 require conf/machine/include/obmc-bsp-common.inc
 include conf/distro/include/extra-dev-debug-tools.inc
 
+MACHINE_FEATURES += "\
+      obmc-phosphor-chassis-mgmt \
+      "
+
 OBMC_POWER_SUPPLY_INSTANCES = "0 1 2 3"
 FLASH_SIZE = "16777216"
 SERIAL_CONSOLES = "115200;ttyS0"
diff --git a/meta-ibm/meta-system1/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend b/meta-ibm/meta-system1/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend
index 9a25a84..09c05d3 100644
--- a/meta-ibm/meta-system1/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend
+++ b/meta-ibm/meta-system1/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend
@@ -1,8 +1,18 @@
 PACKAGES += " \
     ${PN}-system \
+    ${PN}-chassis \
     "
 PROVIDES += " \
     virtual/obmc-system-mgmt \
+    virtual/obmc-chassis-mgmt \
     "
 
 RPROVIDES:${PN}-system += "virtual-obmc-system-mgmt"
+RPROVIDES:${PN}-chassis += "virtual-obmc-chassis-mgmt"
+
+# TODO - use skeleton power implementation until full power
+# code for system1 can be brought in
+SUMMARY:${PN}-chassis = "OpenPOWER Chassis"
+RDEPENDS:${PN}-chassis = " \
+        phosphor-skeleton-control-power \
+"
diff --git a/meta-ibm/recipes-phosphor/skeleton/obmc-libobmc-intf/system1/gpio_defs.json b/meta-ibm/recipes-phosphor/skeleton/obmc-libobmc-intf/system1/gpio_defs.json
new file mode 100644
index 0000000..b5c9aa1
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/skeleton/obmc-libobmc-intf/system1/gpio_defs.json
@@ -0,0 +1,20 @@
+{
+    "gpio_configs": {
+
+        "power_config": {
+            "power_good_in": "PGOOD",
+            "power_up_outs": [
+            ],
+            "reset_outs": [
+            ]
+        }
+    },
+
+    "gpio_definitions": [
+        {
+            "name": "PGOOD",
+            "pin": "V3",
+            "direction": "in"
+        }
+    ]
+}