[Concept,v2,19/22] efi: app: Add a simplefb node to the devicetree
Commit Message
From: Simon Glass <sjg@chromium.org>
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>
---
(no changes since v1)
configs/efi-arm_app64_defconfig | 1 +
lib/efi_client/efi_app.c | 7 +++++++
2 files changed, 8 insertions(+)
@@ -15,6 +15,7 @@ CONFIG_FIT=y
CONFIG_BOOTSTD_FULL=y
CONFIG_SHOW_BOOT_PROGRESS=y
CONFIG_OF_SYSTEM_SETUP=y
+CONFIG_FDT_SIMPLEFB=y
CONFIG_USE_BOOTARGS=y
CONFIG_BOOTCOMMAND="bootflow scan -lbp"
CONFIG_SYS_PBSIZE=532
@@ -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,12 @@ int ft_system_setup(void *fdt, struct bd_info *bd)
return ret;
}
+ ret = fdt_simplefb_add_node(fdt);
+ if (ret) {
+ printf("failed to set up simplefb\n");
+ return ret;
+ }
+
free(map);
return 0;