meta-nuvoton: evb-npcm845: add blacklist
Add blacklist to avoid i2c lock for evb-npcm845.
Except bus 1 that equip with eeprom for fru.
&i2c1 {
status = "okay";
eeprom@50 {
compatible = "atmel,24c256";
reg = <0x50>;
};
};
Signed-off-by: Tim Lee <timlee660101@gmail.com>
Change-Id: Ida4c42497d60d0b1b5cce8a5e712104929ffc887
diff --git a/meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/entity-manager/blacklist.json b/meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/entity-manager/blacklist.json
new file mode 100644
index 0000000..5fa4180
--- /dev/null
+++ b/meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/entity-manager/blacklist.json
@@ -0,0 +1,3 @@
+{
+ "buses": [0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]
+}
diff --git a/meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/entity-manager_%.bbappend b/meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/entity-manager_%.bbappend
new file mode 100644
index 0000000..025d7c0
--- /dev/null
+++ b/meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/entity-manager_%.bbappend
@@ -0,0 +1,9 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+SRC_URI:append = " \
+ file://blacklist.json \
+ "
+
+do_install:append () {
+ install -m 0644 -D ${WORKDIR}/blacklist.json ${D}${datadir}/${PN}/blacklist.json
+}