Commit acc6987e authored by Ivan T. Ivanov's avatar Ivan T. Ivanov Committed by Matthias Brugger
Browse files

rpi: Conditionally add simple-framebuffer node

It appears that RPi firmware has already added framebuffer
node under /chosen, at least on RPi 2 versions. So check
for this and don't add duplicate node.
Signed-off-by: default avatarIvan T. Ivanov <>
Signed-off-by: Matthias Brugger's avatarMatthias Brugger <>
parent d28e1271
......@@ -497,12 +497,11 @@ void *board_fdt_blob_setup(void)
int ft_board_setup(void *blob, struct bd_info *bd)
* For now, we simply always add the simplefb DT node. Later, we
* should be more intelligent, and e.g. only do this if no enabled DT
* node exists for the "real" graphics driver.
int node;
node = fdt_node_offset_by_compatible(blob, -1, "simple-framebuffer");
if (node < 0)
/* Reserve the spin table */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment