summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLisa Liu <liuyj19@lenovo.com>2019-06-25 10:09:23 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-07-09 05:25:02 +0300
commit6d5764b338d98771cf2abc24ce528b7c047ab903 (patch)
tree52ade08cee6a7225fcc1e89a3daee10a497f1486
parent1d96fe518c01fbb0f760ce84dd64a7c712c9c75e (diff)
downloadopenbmc-6d5764b338d98771cf2abc24ce528b7c047ab903.tar.xz
meta-lenovo: obmc-libobmc-intf: Add hr855xg2 GPIO definitions
Add GPIO definitions for the hr855xg2 machine. Tested: Built hr855xg2 machine and checked that the file /etc/default/obmc/gpio/gpio_defs.json was correct for hr855xg2 machine. (From meta-lenovo rev: a325e2489b6c482c48deb822b063c15231af2b93) Signed-off-by: Lisa Liu <liuyj19@lenovo.com> Change-Id: I2192a5ec39ced50a46a2e62eb3f15ddd445c4f4b Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--meta-lenovo/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json35
-rw-r--r--meta-lenovo/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend4
2 files changed, 39 insertions, 0 deletions
diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json b/meta-lenovo/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json
new file mode 100644
index 000000000..d8213fdae
--- /dev/null
+++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json
@@ -0,0 +1,35 @@
+{
+ "gpio_configs": {
+
+ "power_config": {
+ "power_good_in": "PGOOD",
+ "power_up_outs": [
+ ],
+ "reset_outs": [
+ ]
+ }
+ },
+
+ "gpio_definitions": [
+ {
+ "name": "PGOOD",
+ "pin": "H7",
+ "direction": "in"
+ },
+ {
+ "name": "POWER_BUTTON",
+ "pin": "I1",
+ "direction": "both"
+ },
+ {
+ "name": "RESET_BUTTON",
+ "pin": "R0",
+ "direction": "both"
+ },
+ {
+ "name": "ID_BTN",
+ "pin": "Y2",
+ "direction": "both"
+ }
+ ]
+}
diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend b/meta-lenovo/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend
new file mode 100644
index 000000000..41eb4e204
--- /dev/null
+++ b/meta-lenovo/meta-hr855xg2/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_hr855xg2 := "${THISDIR}/${PN}:"