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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user