aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2022-06-14 08:02:03 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-06-19 15:53:09 +0200
commit68edbed454b863dbcd197e19e1ab26a0a05c7d85 (patch)
treebe48c4913994853278537ab895d4cfc42a4bf231 /include
parente05bd68ed5fcbcd857f5a072f469886fb627fe97 (diff)
downloadu-boot-68edbed454b863dbcd197e19e1ab26a0a05c7d85.zip
u-boot-68edbed454b863dbcd197e19e1ab26a0a05c7d85.tar.gz
u-boot-68edbed454b863dbcd197e19e1ab26a0a05c7d85.tar.bz2
efi_loader: initialize console size late
If CONFIG_VIDEO_DM=n we query the display size from the serial console. Especially when using a remote console the response can be so late that it interferes with autoboot. Only query the console size when running an EFI binary. Add debug output showing the determined console size. Reported-by: Fabio Estevam <festevam@gmail.com> Fixes: a57ad20d07e8 ("efi_loader: split efi_init_obj_list() into two stages") Fixes: a9bf024b2933 ("efi_loader: disk: a helper function to create efi_disk objects from udevice") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Tested-by: Fabio Estevam <festevam@denx.de> Tested-by: Heiko Thiery <heiko.thiery@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/efi_loader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index f6651e2..c1e00eb 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -499,6 +499,8 @@ extern struct list_head efi_register_notify_events;
int efi_init_early(void);
/* Initialize efi execution environment */
efi_status_t efi_init_obj_list(void);
+/* Set up console modes */
+void efi_setup_console_size(void);
/* Install device tree */
efi_status_t efi_install_fdt(void *fdt);
/* Run loaded UEFI image */