meta-facebook: harma: add blacklist
We found that in some buses, due to power sequence issues, there is an I2C lock, resulting in a discover service timeout. Add blacklist to avoid i2c lock.
Change-Id: I216d051ae6c56d7864d70215e7a11fedab05a952
Signed-off-by: Peter Yin <peter.yin@quantatw.com>
diff --git a/meta-facebook/meta-harma/recipes-phosphor/configuration/entity-manager/blacklist.json b/meta-facebook/meta-harma/recipes-phosphor/configuration/entity-manager/blacklist.json
new file mode 100644
index 0000000..a000e68
--- /dev/null
+++ b/meta-facebook/meta-harma/recipes-phosphor/configuration/entity-manager/blacklist.json
@@ -0,0 +1,10 @@
+{
+ "buses": [
+ 8,
+ {
+ "bus": 9,
+ "addresses": ["0x30", "0x31", "0x3F", "0x43", "0x49", "0x4A", "0x4B", "0x4C", "0x71"]
+ },
+ 11
+ ]
+}
diff --git a/meta-facebook/meta-harma/recipes-phosphor/configuration/entity-manager_%.bbappend b/meta-facebook/meta-harma/recipes-phosphor/configuration/entity-manager_%.bbappend
new file mode 100644
index 0000000..03f1c63
--- /dev/null
+++ b/meta-facebook/meta-harma/recipes-phosphor/configuration/entity-manager_%.bbappend
@@ -0,0 +1,9 @@
+FILESEXTRAPATHS:prepend:harma := "${THISDIR}/${PN}:"
+
+SRC_URI:append:harma = " \
+ file://blacklist.json \
+ "
+
+do_install:append:harma () {
+ install -m 0644 -D ${WORKDIR}/blacklist.json ${D}${datadir}/${PN}/blacklist.json
+}