efi: app: Add a simplefb node to the devicetree

Use simplefb on ARM devices so that we see a console earlier, assuming
that 'console=tty0' is passed to Linux.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-15 13:58:09 -06:00
parent a1f2aa6d5f
commit c0e80e8d76
2 changed files with 6 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
#include <efi_api.h>
#include <efi_stub.h>
#include <errno.h>
#include <fdt_simplefb.h>
#include <image.h>
#include <init.h>
#include <malloc.h>
@@ -339,6 +340,10 @@ int ft_system_setup(void *fdt, struct bd_info *bd)
return ret;
}
ret = fdt_simplefb_add_node(fdt);
if (ret)
log_warning("failed to set up simplefb\n");
free(map);
return 0;