meta-lenovo: obmc-libobmc-intf: Add hr630 gpio definitions
Add gpio definitions for the hr630 machine.
Tested: Built hr630 machine and checked that the file
/etc/default/obmc/gpio/gpio_defs.json was correct
for hr630 machine.
(From meta-lenovo rev: 4c930790c1d1bca841bf091dad0b6da694eedd7d)
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: Iae56787f9440c9a7247d4f6de5364613d30350d6
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-lenovo/meta-hr630/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json b/meta-lenovo/meta-hr630/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json
new file mode 100644
index 0000000..d0441a6
--- /dev/null
+++ b/meta-lenovo/meta-hr630/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json
@@ -0,0 +1,25 @@
+{
+ "gpio_configs": {
+
+ "power_config": {
+ "power_good_in": "PGOOD",
+ "power_up_outs": [
+ ],
+ "reset_outs": [
+ ]
+ }
+ },
+
+ "gpio_definitions": [
+ {
+ "name": "PGOOD",
+ "pin": "Z1",
+ "direction": "in"
+ },
+ {
+ "name": "POWER_UP_PIN",
+ "pin": "I0",
+ "direction": "both"
+ }
+ ]
+}
diff --git a/meta-lenovo/meta-hr630/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend b/meta-lenovo/meta-hr630/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend
new file mode 100644
index 0000000..5bb2557
--- /dev/null
+++ b/meta-lenovo/meta-hr630/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend
@@ -0,0 +1,4 @@
+#"Copyright (c) 2019-present Lenovo
+#Licensed under BSD-3, see COPYING.BSD file for details."
+
+FILESEXTRAPATHS_prepend_hr630 := "${THISDIR}/${PN}:"