From 5b33e7a86d459dde90a4b4d9f50c121f7932e95e Mon Sep 17 00:00:00 2001 From: Tim Lee Date: Fri, 12 Apr 2024 14:39:28 +0800 Subject: 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 Change-Id: Ida4c42497d60d0b1b5cce8a5e712104929ffc887 --- .../recipes-phosphor/configuration/entity-manager/blacklist.json | 3 +++ .../recipes-phosphor/configuration/entity-manager_%.bbappend | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/entity-manager/blacklist.json create mode 100644 meta-nuvoton/meta-evb-npcm845/recipes-phosphor/configuration/entity-manager_%.bbappend 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 +} -- cgit v1.2.3