meta-lenovo: hr855xg2: add IPMI configurations
1. Add some autoconfigure parameters for phosphor-ipmi-flash.
2. Add some sensor and FRU definitions for ipmi.
3. Add IPMI device id configuration.
Tested:
This has been tested on hr855xg2 machine via ipmitool from host.
(From meta-lenovo rev: 1d57596f3206006189166000e8bfd351b3935aca)
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: Ib387c38ba70df53b6320138993912eb900069bc1
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend
new file mode 100644
index 0000000..41eb4e2
--- /dev/null
+++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-config.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}:"
diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-config/dcmi_sensors.json b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-config/dcmi_sensors.json
new file mode 100644
index 0000000..0c53f57
--- /dev/null
+++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-config/dcmi_sensors.json
@@ -0,0 +1,11 @@
+{
+ "inlet": [
+
+ ],
+ "baseboard": [
+
+ ],
+ "cpu": [
+
+ ]
+}
diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-config/dev_id.json b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-config/dev_id.json
new file mode 100644
index 0000000..071c45b
--- /dev/null
+++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-config/dev_id.json
@@ -0,0 +1,2 @@
+{"id": 32, "revision": 1, "addn_dev_support": 141,
+ "manuf_id": 19046, "prod_id": 502 , "aux": 5}
diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-flash_%.bbappend b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-flash_%.bbappend
new file mode 100644
index 0000000..229e26d
--- /dev/null
+++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-flash_%.bbappend
@@ -0,0 +1,5 @@
+#"Copyright (c) 2019-present Lenovo
+#Licensed under BSD-3, see COPYING.BSD file for details."
+
+FILESEXTRAPATHS_prepend_hr855xg2 := "${THISDIR}/${PN}:"
+EXTRA_OECONF_append_hr855xg2 = " --enable-static-layout --enable-lpc-bridge --enable-aspeed-lpc --enable-reboot-update MAPPED_ADDRESS=0x98000000"
diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-fru_%.bbappend b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-fru_%.bbappend
new file mode 100644
index 0000000..fcc0afb
--- /dev/null
+++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-fru_%.bbappend
@@ -0,0 +1,9 @@
+#"Copyright (c) 2019-present Lenovo
+#Licensed under BSD-3, see COPYING.BSD file for details."
+
+DEPENDS_append_hr855xg2 = " hr855xg2-yaml-config"
+
+EXTRA_OECONF_append_hr855xg2 = " \
+ YAML_GEN=${STAGING_DIR_HOST}${datadir}/hr855xg2-yaml-config/ipmi-fru-read.yaml \
+ PROP_YAML=${STAGING_DIR_HOST}${datadir}/hr855xg2-yaml-config/ipmi-extra-properties.yaml \
+ "
diff --git a/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend
new file mode 100644
index 0000000..98129d5
--- /dev/null
+++ b/meta-lenovo/meta-hr855xg2/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend
@@ -0,0 +1,9 @@
+#"Copyright (c) 2019-present Lenovo
+#Licensed under BSD-3, see COPYING.BSD file for details."
+
+DEPENDS_append_hr855xg2 = " hr855xg2-yaml-config"
+
+EXTRA_OECONF_append_hr855xg2 = " \
+ SENSOR_YAML_GEN=${STAGING_DIR_HOST}${datadir}/hr855xg2-yaml-config/ipmi-sensors.yaml \
+ FRU_YAML_GEN=${STAGING_DIR_HOST}${datadir}/hr855xg2-yaml-config/ipmi-fru-read.yaml \
+ "