meta-quanta: runbmc-nuvoton: ipmb: configure IPMB channel
The IPMB channel communicates with ME from the host.
(From meta-quanta rev: 34964359eca0e4e924b4c7191aea411e3aa7f3e4)
Signed-off-by: kfting <kfting@nuvoton.com>
Change-Id: Iac56c5feb455c66b7ae322ba33806b575972495b
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/ipmb-runbmc-channels.json b/meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/ipmb-runbmc-channels.json
new file mode 100644
index 0000000..45100bd
--- /dev/null
+++ b/meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/ipmb-runbmc-channels.json
@@ -0,0 +1,11 @@
+{
+ "channels": [
+ {
+ "type": "me",
+ "master-path": "/dev/i2c-5",
+ "slave-path": "/sys/bus/i2c/devices/5-1010/slave-mqueue",
+ "bmc-addr": 32,
+ "remote-addr": 44
+ }
+ ]
+}
diff --git a/meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-ipmb_%.bbappend b/meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-ipmb_%.bbappend
new file mode 100644
index 0000000..ef0838e
--- /dev/null
+++ b/meta-quanta/meta-runbmc-nuvoton/recipes-phosphor/ipmi/phosphor-ipmi-ipmb_%.bbappend
@@ -0,0 +1,11 @@
+FILESEXTRAPATHS_prepend_runbmc-nuvoton := "${THISDIR}/${PN}:"
+
+SRC_URI_append_runbmc-nuvoton = " file://ipmb-runbmc-channels.json"
+FILES_${PN}_append_runbmc-nuvoton = " ${datadir}/ipmbbridge/ipmb-channels.json"
+
+do_install_append_runbmc-nuvoton() {
+ install -d ${D}${datadir}/ipmbbridge
+ install -m 0644 -D ${WORKDIR}/ipmb-runbmc-channels.json \
+ ${D}${datadir}/ipmbbridge/ipmb-channels.json
+}
+