meta-quanta: s6q: Enable IPMB
phosphor-ipmi-ipmb: Enable ME communication
Tested:
root@s6q-dev:~# busctl tree xyz.openbmc_project.Ipmi.Channel.Ipmb
`-/xyz
`-/xyz/openbmc_project
`-/xyz/openbmc_project/Ipmi
`-/xyz/openbmc_project/Ipmi/Channel
`-/xyz/openbmc_project/Ipmi/Channel/Ipmb
Use 'busctl call xyz.openbmc_project.Ipmi.Channel.Ipmb \
/xyz/openbmc_project/Ipmi/Channel/Ipmb org.openbmc.Ipmb \
sendRequest yyyyay 1 6 0 0x1 0'
to get device id
Signed-off-by: Tim Chao <Tim.Chao@quantatw.com>
Change-Id: I01af849bbe3c290dda88969267f092c11bf9e8fc
diff --git a/meta-quanta/meta-s6q/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/s6q-ipmb-channels.json b/meta-quanta/meta-s6q/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/s6q-ipmb-channels.json
new file mode 100644
index 0000000..c215d09
--- /dev/null
+++ b/meta-quanta/meta-s6q/recipes-phosphor/ipmi/phosphor-ipmi-ipmb/s6q-ipmb-channels.json
@@ -0,0 +1,10 @@
+{
+ "channels": [
+ {
+ "type": "me",
+ "slave-path": "/dev/ipmb-2",
+ "bmc-addr": 32,
+ "remote-addr": 44
+ }
+ ]
+}
diff --git a/meta-quanta/meta-s6q/recipes-phosphor/ipmi/phosphor-ipmi-ipmb_%.bbappend b/meta-quanta/meta-s6q/recipes-phosphor/ipmi/phosphor-ipmi-ipmb_%.bbappend
new file mode 100644
index 0000000..65af073
--- /dev/null
+++ b/meta-quanta/meta-s6q/recipes-phosphor/ipmi/phosphor-ipmi-ipmb_%.bbappend
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS:prepend:s6q := "${THISDIR}/${PN}:"
+
+SRC_URI:append:s6q = " file://s6q-ipmb-channels.json"
+
+do_install:append:s6q(){
+ install -m 0644 -D ${WORKDIR}/s6q-ipmb-channels.json \
+ ${D}/${datadir}/ipmbbridge/ipmb-channels.json
+}