mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
rpi: Only add frame buffer node if CONFIG_FDT_SIMPLEFB is set
The functions fdt_simplefb_add_node and fdt_simplefb_enable_and_mem_rsv are only available if CONFIG_FDT_SIMPLEFB is enabled. Signed-off-by: Martin Stolpe <martin.stolpe@gmail.com> Acked-by: Matthias Brugger <mbrugger@suse.com> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
This commit is contained in:
parent
27e0160320
commit
2d75c46be9
1 changed files with 7 additions and 5 deletions
|
@ -604,11 +604,13 @@ int ft_board_setup(void *blob, struct bd_info *bd)
|
|||
|
||||
update_fdt_from_fw(blob, (void *)fw_dtb_pointer);
|
||||
|
||||
node = fdt_node_offset_by_compatible(blob, -1, "simple-framebuffer");
|
||||
if (node < 0)
|
||||
fdt_simplefb_add_node(blob);
|
||||
else
|
||||
fdt_simplefb_enable_and_mem_rsv(blob);
|
||||
if (CONFIG_IS_ENABLED(FDT_SIMPLEFB)) {
|
||||
node = fdt_node_offset_by_compatible(blob, -1, "simple-framebuffer");
|
||||
if (node < 0)
|
||||
fdt_simplefb_add_node(blob);
|
||||
else
|
||||
fdt_simplefb_enable_and_mem_rsv(blob);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_EFI_LOADER
|
||||
/* Reserve the spin table */
|
||||
|
|
Loading…
Add table
Reference in a new issue