Skip to content
Snippets Groups Projects
Commit ef565a53 authored by Simon Glass's avatar Simon Glass
Browse files

x86: bootstage: Add time measurement for vesa start-up


Since we must run a PCI BIOS ROM, and this can take a calamitous amount of
time, measure it using bootstage.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent bc17d8f4
No related branches found
No related tags found
No related merge requests found
...@@ -42,8 +42,10 @@ void *video_hw_init(void) ...@@ -42,8 +42,10 @@ void *video_hw_init(void)
printf("no card detected\n"); printf("no card detected\n");
return NULL; return NULL;
} }
bootstage_start(BOOTSTAGE_ID_ACCUM_LCD, "vesa display");
ret = pci_run_vga_bios(dev, NULL, PCI_ROM_USE_NATIVE | ret = pci_run_vga_bios(dev, NULL, PCI_ROM_USE_NATIVE |
PCI_ROM_ALLOW_FALLBACK); PCI_ROM_ALLOW_FALLBACK);
bootstage_accum(BOOTSTAGE_ID_ACCUM_LCD);
if (ret) { if (ret) {
printf("failed to run video BIOS: %d\n", ret); printf("failed to run video BIOS: %d\n", ret);
return NULL; return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment