summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Lee <timlee660101@gmail.com>2024-04-12 09:39:28 +0300
committerTim Lee <chli30@nuvoton.com>2024-04-22 04:04:26 +0300
commit5b33e7a86d459dde90a4b4d9f50c121f7932e95e (patch)
tree648a36c3fa10d8b76456f53d359e584ba14b3055
parentbe1677ad3d782743b1f6d84c3ce58703cc724a9c (diff)
downloadopenbmc-5b33e7a86d459dde90a4b4d9f50c121f7932e95e.tar.xz
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
-rw-r--r--meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/entity-manager/blacklist.json3
-rw-r--r--meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/entity-manager_%.bbappend9
2 files changed, 12 insertions, 0 deletions
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 0000000000..5fa4180145
--- /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 0000000000..025d7c0282
--- /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
+}