Skip to content

Commit f978f41

Browse files
groeckphilmd
authored andcommitted
hw/arm/imx8mp-evk: Temporarily remove unimplemented imx8mp-fspi node from devicetree
The nxp,imx8mp-fspi node triggers a warning backtrace. Remove it from the devicetree file. Signed-off-by: Guenter Roeck <[email protected]> Inspired-by: commit bf1da4b ("hw/arm/raspi4b: Temporarily disable unimplemented rpi4b devices") Signed-off-by: Bernhard Beschow <[email protected]> [Bernhard: split patch, adapt commit message] Message-ID: <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent 764ca3e commit f978f41

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

hw/arm/imx8mp-evk.c

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,22 @@
1919

2020
static void imx8mp_evk_modify_dtb(const struct arm_boot_info *info, void *fdt)
2121
{
22-
int offset;
22+
int i, offset;
23+
24+
/* Temporarily disable following nodes until they are implemented */
25+
const char *nodes_to_remove[] = {
26+
"nxp,imx8mp-fspi",
27+
};
28+
29+
for (i = 0; i < ARRAY_SIZE(nodes_to_remove); i++) {
30+
const char *dev_str = nodes_to_remove[i];
31+
32+
offset = fdt_node_offset_by_compatible(fdt, -1, dev_str);
33+
while (offset >= 0) {
34+
fdt_nop_node(fdt, offset);
35+
offset = fdt_node_offset_by_compatible(fdt, offset, dev_str);
36+
}
37+
}
2338

2439
/* Remove cpu-idle-states property from CPU nodes */
2540
offset = fdt_node_offset_by_compatible(fdt, -1, "arm,cortex-a53");

0 commit comments

Comments
 (0)